Hello Marcus
I have an issue with startup routine that manage the uistates, mainly the swicths items. yes again
To help you to understand the problem ,i had create a test plugin so you can see the exact problem i run through.
The plugin ui have 6 switches button.
It creates a memblock at the top level using the [memgetsize] like as it s common to do it.
The main Issue happen when switch from plugin to another, which force zbrush to reexecute the script entirely with the startup Routine.
The Switch doesnāt work correctly, i have to click twice before it get again responsive to my click.
From what i know we need to delete the memoryblock after we change the button state. but when i have the [MemDelete, p_uiSwitchesState] line uncommented
when i click on the switch it tell me āThe Specified memory block couldnāt be found.ā
so i always keep it alive, which is no good at all.
i let you few notes for feedback, so itās easy to see the functioning, but the source for the bug is still invisible for my eyes.
you can dwl the plugin here :
Best Regards
Nicolas