Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

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

3 ANTWORTEN 3
Antworten
Nachricht 1 von 4
Shawn_Kearney1
291 Aufrufe, 3 Antworten

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)
Beschriftungen (2)
3 ANTWORTEN 3
Nachricht 2 von 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)
Nachricht 3 von 4

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

Nachricht 4 von 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.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report