Expression path type,I don't understand,please help me!

   1678   2   2
User Avatar
Member
3 posts
Joined: Sept. 2019
Offline
Expression path type,I don't understand

i am new driver,
At present, I find that different indentations can lead to different results!
I don't understand the difference between these three lines of code

detail("/obj/geo1/foreach_begin1_metadata1","iteration",0)
detail("../foreach_begin1_metadata1","iteration",0)
detail("/../../foreach_begin1_metadata1","iteration",0)

The results of the first two lines are the same, and the bottom line is different
User Avatar
Member
38 posts
Joined: June 2019
Offline
Not sure if I understand correctly your question, but :

The first one refers to the foreach_begin1_metadata1 iteration's attribute, using the absolute path.
The second one refers to the same, using a relative path
the third looks two levels above the level where the actual (relative, again) path is declared

Houdini node's organization is working like a file system, and therefore works with the same type of path declaration that is found in a lot of coding languages (Historically, I'd say Unix system, but I'm not a specialist)

The documentation has some explanation on it [www.sidefx.com].
Or you can find more info on this kind of site [pyrochlore.net]

User Avatar
Member
3 posts
Joined: Sept. 2019
Offline
frBorges34 34
Not sure if I understand correctly your question, but :

The first one refers to the foreach_begin1_metadata1 iteration's attribute, using the absolute path.
The second one refers to the same, using a relative path
the third looks two levels above the level where the actual (relative, again) path is declared

Houdini node's organization is working like a file system, and therefore works with the same type of path declaration that is found in a lot of coding languages (Historically, I'd say Unix system, but I'm not a specialist)

The documentation has some explanation on it [www.sidefx.com].
Or you can find more info on this kind of site [pyrochlore.net]

Oh, thank you so much. I forgot about it
  • Quick Links