Jump to content

Detail string inside another string problem


cmetze

Recommended Posts

Hi,
So Ive been stuck on this for a while and Im not sure what exactly Im doing wrong but I feel like it’s a simple thing that’s flying over my head which is often the case with my Houdini roadblocks.
Ive been thinking maybe its because I have a string within a string?

Situation A:
`chs(“../LoadFile1/file“)`
Ok so in situation A, everything loads correctly, I can paste that into a file nodes Geometry File parameter and it will correctly load up whatever mesh is in LoadFile1 and provide the file path, right?

Here’s where my problem comes in.

Ive created an attribute node named Current_Ref_Name that has a string attribute named currentref, Current_Ref_Name takes the output of a switch node that’s set to randomly switch inputs (which are file nodes) every frame. The string attribute will give the name of whatever file node is currently coming through the switch on each frame.

So I want to take that and dump it into another file node using:
`chs(“../`details(”../Current_Ref_Name“, ”currentref“)`/file”)`
Which should give me the file path of whatever is loaded into whatever file node is coming through my switch, except I keep getting an error ( Error Unable to evaluate expression (Bracing error). and Im not 100% sure whats wrong.

Can someone see where went I wrong?

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...