2 Attachment(s)
Dynamically Changing IButton Name v2
I am trying to change the name of a button after it has been clicked but I am running into some problems. I found this thread:
http://www.zbrushcentral.com/showthr...tton-Text-quot
and it was very helpful. HOWEVER.... it seems to only work in the tutorial menu? I got it to work in the tutorial menu but then I tried something similar to this within a scripted menu/plugin and it just duplicated the button.
I have attached the script I am using this for. I am attempting to make a "Favorites" sort of thing where you can store commonly used tools. I have it basically working but I would love to have the "Store" button change its name right after you click it instead of when you restart ZB.
The "RecentFiles_mem.txt" is the script with the code from the above link hacked in. It "works" as expected in the tutorial window but not in a menu.
Any other comments are also welcome if you see I am doing something wrong. I am still pretty new to scripting but learning alot.
Attachment 302660
Attachment 302659