I have a python tag that changes changes the procedural path based on a user data list selection. it works fine, except that if I choose one item, and then go back and choose a previously selected item (such as to compare two assets), it vanishes from the IPR until the IPR is stopped and restarted.
Is there any way to solve this, and if not is there a way to reset the IPR using python? I tried to stop it with a command call, but that didn't seem to work.
It might be a limitation of the current procedural implementation, I'm afraid.
There is a command to start and stop the IPR which you can call from python:
ARNOLD_RENDER_COMMAND = 1038578
# stop the IPR
CallCommand(ARNOLD_RENDER_COMMAND, 2)
# start the IPR
CallCommand(ARNOLD_RENDER_COMMAND, 1)
The subids of the command are:
Cool! Thank you! I am assuming that this is a "CallCommand" argument, and that "allCommand" was a typo?
Yes, CallCommand(). I added the text to a code block element and it seems it does not like the # character, so all messed up. Updated the text.