Ansh Kathuria Posted January 1, 2022 Share Posted January 1, 2022 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! Quote Link to comment Share on other sites More sharing options...
dleonhardt Posted January 1, 2022 Share Posted January 1, 2022 opinputpath() will return the path of the node connected to the specified input. This is often used in expressions where you want to refer to the node upstream without having to type out the relative or absolute node path. Quote Link to comment Share on other sites More sharing options...
Ansh Kathuria Posted January 2, 2022 Author Share Posted January 2, 2022 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 ? Quote Link to comment Share on other sites More sharing options...
Fenolis Posted January 4, 2022 Share Posted January 4, 2022 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. Quote Link to comment Share on other sites More sharing options...
Ansh Kathuria Posted January 4, 2022 Author Share Posted January 4, 2022 Thank You so much Fenolis! Now i have completely understood the concept of (opinputpath). You made it so simple for me to understand. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.