Mar-24-2017, 09:43 PM
Hi all, not so sure where I should post my thread..
Anyways I have 2 ui files -
I have made a simple example in which in both of my Uis, I have a variety of values that I will need to use in order to use the tool functionality as defined by
Some screenshots of the main and sub ui (since I can't post links...):
main_UI : http : //imgur.com/a/mcApj
sub_UI : http : //imgur.com/a/I7PJP
Example
In the Main UI, if I have:
How can I/ what is the best way for me to store such changes so that when I hit the
In
Thought I had let you guys know in advance that I am not very well-versed in using Python yet, so please pardon my codings should it looks out of place.
code:
main_ui_code : http : //pastebin.com/raw/99dSQki2
sub_ui_code : http : //pastebin.com/raw/9NveYCJJ
Anyways I have 2 ui files -
main_ui
and sub_ui
, along with several other files eg. utils.py (that contain common function by other scripts) etc. for manageable purposes.I have made a simple example in which in both of my Uis, I have a variety of values that I will need to use in order to use the tool functionality as defined by
main_tool_btn
.Some screenshots of the main and sub ui (since I can't post links...):
main_UI : http : //imgur.com/a/mcApj
sub_UI : http : //imgur.com/a/I7PJP
Example
In the Main UI, if I have:
- (changed) checked 'Rotate'
- (changed) set all the Max X, Y, Z values to 2
- Threshold is 5
- Using Duplicate
- (changed) Checked 'Preserve Input Connections
- (changed) Checked 'Activate Groupings', using 'Combine into one Group' option
How can I/ what is the best way for me to store such changes so that when I hit the
Tool Mode
in the main UI, it will read in such values?In
creation_funcs()
, I tried using a global variable, while it can work for a small scale code, but as the example I have given is a very simple form, my UI actually has way more than that in which I don't think it is a viable idea to keep using globals?Thought I had let you guys know in advance that I am not very well-versed in using Python yet, so please pardon my codings should it looks out of place.
code:
main_ui_code : http : //pastebin.com/raw/99dSQki2
sub_ui_code : http : //pastebin.com/raw/9NveYCJJ