Jump to content

access extra inputs of a volume vop


Recommended Posts

In a vop sop, I'd use "import attribute" and choose the input number. how do I access volumes from the extra inputs of a volume vop? the volume in the second input has the same name as the volume connected to input 1, so I think just using the name won't work, and there should be a way to specify the incoming input number.

Link to comment
Share on other sites

I beleive the inputs are mostly there as placeholders, traditionally you access other volumes with a Volume Sample from File node, then you can use op:/full/path/to/node to grab an input index. Parameters only ever work on the primary geometry coming in from the first input. For instance, if you want to get the second input of a volume vop and sample it you would attach a parameter to the file input of the Volume Sample node and set it to op:`opinputpath(".",1)`. Smell what i'm steppin' in?

Link to comment
Share on other sites

Nice! I never noticed those until you just mentioned them.

Not sure what Houdini build you are on, but I just learned there are now also string parameters at the bottom of the VOP input with pointers to those inputs as well. One less parameter to manage...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...