Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Procedurals vanish from IPR when procedural path is modified via c4d python tag

3 REPLIES 3
Reply
Message 1 of 4
Shawn_Kearney1
173 Views, 3 Replies

Procedurals vanish from IPR when procedural path is modified via c4d python tag

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.

Tags (2)
Labels (2)
3 REPLIES 3
Message 2 of 4

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:

  • 1: start an IPR session.
  • 2: stop the IPR session.
  • 3: pause / unpause the IPR.
  • 4: update the IPR (if there are any changes in the scene).
  • 5: start a normal render (still or animation)
Message 3 of 4

Cool! Thank you! I am assuming that this is a "CallCommand" argument, and that "allCommand" was a typo?

Message 4 of 4

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report