Accessing the ROP Fetches Expect Output through Python

   168   2   0
User Avatar
Member
15 posts
Joined: 4月 2013
Offline
Im struggling work out how to achieve this. Ive a python processor attached below a rop fetch and wish to use the rops expected output file path with the file sops Im creating in the processor.

Is there a work item attribute I can grab for this, or should I be accessing the rops sopout parameter? If its the latter, how do I ensure the parameter is evaluated correctly, respecting the pdg attributes?
I'd rather not create channel references on the python processor to achieve this, as it looks sloppy to me.

Dominic
User Avatar
スタッフ
241 posts
Joined: 5月 2014
Offline
I've attached an example that uses a Python Processor to access upstream expected outputs. I've also includes an example of evaluating a Houdini parameter (the ROP Geo's sopoutput) against a particular work item.

Note that per-work item Houdini parm evaluation portion will only work in Houdini 18.0.307 or later. If you're using an older build, including any build of 17.5, you'll need to use a channel reference.

Attachments:
eval_example.hip (140.5 KB)

User Avatar
Member
15 posts
Joined: 4月 2013
Offline
Amazing, thanks for this!

Dominic
  • Quick Links