Function to update ROP context options in Solaris?

   1204   2   0
User Avatar
Member
13 posts
Joined: 12月 2012
Offline
Hi

Is there any function to update the context options in the Solaris Tree based on what's set in a specific ROP?

Example:

I have a renderProduct with a context option in the filename. $HIP/render/`@exportSetting`/$HIPNAME.$F4.exr

Then attached a USD ROP. In this USD ROP I set the context option "exportSetting".

If I open the Solaris Scene Graph Tree and select
/Render/Products/renderproduct, the context options is not updated if I change it.

If I export a .usd file, then it updates the render product.



So, how can I update the context options in the Solaris Tree based on a specific ROP in python?
The issue is that I want to get the output filename of the render product before rendering.




PS: Scene-Wide context options are not a solution.
Edited by schoenberger - 2022年7月29日 11:17:54
User Avatar
スタッフ
4445 posts
Joined: 7月 2005
Offline
What about using an Edit Context Options LOP to set the context option values before the USD ROP? Then you can examine the LOP node to see everything evaluated with the context option values, and the ROP will generate the same result as if the context options were set on the ROP itself.
User Avatar
Member
13 posts
Joined: 12月 2012
Offline
Thanks, I will try that
  • Quick Links