Jump to content

Relative Reference unable to read filepath


Recommended Posts

Hello Forum,
Ran into a weird one I can't figure out.

Right now I'm trying to figure out how to use relative references to update a filepath on an Attribfrommap node.

Wrangle3.JPG.806063d226b1496919f101214c56cecd.JPG

So this wrangle "works" in that if I give it this reference it loads the filepath and the A_FILENAME location correctly, output as "File_Path_Test" just to confirm it's working.  (As seen in the 3rd screenshot)
However, I need to load this filepath while the "Decal_GraffitiA" path is a reference to a parameter on the parent node.

So here's my wrangle doing that.

Wrangle2.JPG.59916f829c37c03043e7283beef2190e.JPG

However here's the two resulting test attributes.
As you can see the "combinedPath" script right now does not load the A_FILENAME filepath, and instead just loads it as a string of text.

 MergeWithPathsListed.JPG.43a65cb9ba5bb31fb8ae6a72b9a939d6.JPG

I'm unsure how to make this script load the filepath as it does with the more explicit path, while still loading and updating based on the "../Material_Assignment2" string.  Which is a material picker.
Which I'm hoping will update the path, as I'm maintaining the same names for "opacity/A_FILENAME" and could be used to quickly change the filepath in the attributefrommap node and be used to procedurally remove geo without color.

Here is the attributefrommap node, which, Ideal in the "texture map" section would be pointed towards whatever drives it to load the filepath based on whatever material is assigned in the material_assignment2 string as previous.

FilePathTarget.JPG.cb9c9591ad0dd37a61f40873123627d5.JPG

Thanks in advance!
And if you need anything clarified let me know.

I'm working on a test file to share, but I'm using octane materials, and a lot of currently loaded textures that would be hard to package.

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