Jump to content

Recommended Posts

Hey there!

Can anyone tell me the process & the use of 'opinputpath'. We can simply select the SOP path, then why do we need 'opinputpath' ? In Houdini documentation, it is written that it returns the full path, but i am not understanding what path it will return ?

Your guidance will be appreciated.

Thanks!

Link to comment
Share on other sites

What i understand is, let's for an example,

We packed the geometry and after that we set dopimport to take out the dop network into SOP. Now in DOP network in rbdpacked object we set the path like this `opinputpath("/obj/name of geometry node/dopimport/",0)`, so here what it means ? What i understood is it takes the packed geometry from SOP and what all things we done in DOP network it gives back to SOP through dopimport node. Is it right ?

Link to comment
Share on other sites

A path is typically a string formatted as an address, like you mentioned /obj/geo/...

opinputpath() is a function that returns that string, using arguments, so opinputpath(".",0) will return the path of the node connected to this node on first input, without having to hardcode node names into the expression.

In the first argument of opinputpath() function, you can still specify a path of a node whose input you want to read, so for example opinputpath("/obj/geo/attribwrangle1",0) will look for the node called attribwrangle1, then get the path of its first input.

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...