Basic detail function not working... how?! SOLVED

   1496   3   0
User Avatar
Member
1009 posts
Joined: April 2017
Offline
Hi

I've used this function about a hundred times (but maybe I'm crazy) and its not working in my scene. I've got 2 detail wrangles:
top one (named "source"):

f@value = 8.0;

bottom one (named "fetch_float"):

f@testValue = detail("../source/", "value", 0)

...but the bottom wrangle gets the value 0 instead of 8. isn't this suposed to work?
Edited by olivierth - July 12, 2022 16:30:43
User Avatar
Member
28 posts
Joined: Nov. 2016
Offline
Using "op:" before your node paths works.
f@testValue = detail("op:../source/", "value");
User Avatar
Member
7785 posts
Joined: Sept. 2011
Offline
olivierth
bottom one (named "fetch_float"):

f@testValue = detail("../source/", "value", 0)

...but the bottom wrangle gets the value 0 instead of 8. isn't this suposed to work?

attribute functions in VEX can't reference other nodes, only read from files. The first argument is a path to a file on disk. Houdini can read from nodes as if they are virtual files by prefixing the node's path with op: as @gorrod suggests.
User Avatar
Member
1009 posts
Joined: April 2017
Offline
Thanks a lot! I'm so surprised I never ran into this probleme before!!

-Olivier
  • Quick Links