Jump to content

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

Link to comment
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
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...