THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/05/2012 at 09:16, xxxxxxxx wrote:
I've a loop inside of a python tag that I would like to execute just once, each time the interface refreshes. Is that possible ?
To be more specific, inside the tag I have code that iterates through userdata to check theyre state, and hides/shows other UD according to that. Basically if a checkbox is ON, a specific field will be hidden and viceversa.
This is actually working, I got at this point thanks to ScottA, nux95 and many other posters here and on CGTalk.. but the problem is that the code is looping continuosly (and I have maaaany userdata) hence eating up some processing power.
I was wondering if that loop can be triggered for example only when the checkbox is pressed, or on some other interface update. Or maybe if there is a more efficient way to do the same thing..
I made a simplified version of the file, you can download it from here: http://www.visualtricks.it/screenshots/hide_userdata.c4d.zip