Sorry, doing this from scratch but based on the script bentraje posted.
...I just noticed that your script above doesn’t seem to affect SDS/Hypernurb generators that are placed inside a ‘Null Object’.
I modified the obj_list references (so nested objects don’t get lost during the recursive call and thus hypernurbs inside null objects should be considered).
The old “HN_Switch plugin” I used in R19 also kept all the SDS/Hypernurbs generators “synchronized” when using the script. So if two ‘SDS objects’ were switched OFF and a third was switched ON, before I used the script (hit the Tab key), then the plugin only enabled the two switches that was turned OFF. My next click on the ‘Tab’ key made all the generators turned off (synchronized). Would you have any help of looking at the old plugin to add this functionality also?
I added a (nasty, bad style) global variable to keep the initial state. On first run it gets the state of the first object, on each additional run it negates it. Does this reflect your desired behavior?
Hi Pixelschubser, Sorry for the late late reply, but YES.. your changes seem to work exactly as expected (as the old plugin). Really appreciated! This should be a standard script, so useful when modeling. Many thanks again, of course also to Bentraje who wrote the first script.
/ Frederik