Jump to content
LukeLetellier

List of "." "../" Type References

Recommended Posts

I wasn't sure how to phrase this, but I'm looking for a list in the documentation that outlines all of those quick relative references/shortcuts for referring to other nodes in expressions, along the lines of "." and ".."

I'm specifically looking for a relative reference to the node that wires into the current node, so if there's a list of those hidden in the documentation somewhere, that'd be swell.

Thanks!

Luke

Share this post


Link to post
Share on other sites

"." and ".." and "../." are unix based relative directory placeholders. The first is the current node/path/object/folder the second and third are the surrounding node/path/object/folder.

if you want the input into the current node you need the hscript "opinputpath()"

(run "exhelp opinputpath" in your textport for more info)

The first input of the current node reads as such:

opinputpath(".",0)

the second input of the surrounding node (useful in DOPS context) is:

opinputpath("..",1)

HDocs on the topic:

https://www.sidefx.com/docs/houdini/network/paths.html

This is a pretty exhaustive explanation of paths and worth your time if it's unfamiliar:

http://teaching.idallen.com/cst8207/12f/notes/160_pathnames.html

 

Edited by kleer001
moar info
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×