Jump to content

Reference parameter value from path reference to another node


bobbybob

Recommended Posts

I have a node inside an asset. The asset has a parameter that references a camera. The node inside the asset needs the "resx" parameter value of the camera. I need to use the assets camera reference to get the "resx".

I tried this:

ch(chs("../cam")+"/resx")

but I can't get it to work... How is this done correct?

 

yo_dawg.jpg.160683bf73a5c4c60d4ee4f1f98767b5.jpg

Edited by bobbybob
Link to comment
Share on other sites

The reason a relative path didn't work with the expression is because when using the function chs("../path_to_cam"), if the path is relative, it doesn't account for the nesting depth difference between the parameter you are referencing and the parameter trying to pull the value. You can, of course, figure out the correct nesting depth of your parameter and concatenate the right number of "../" as a prefix to the path's string. In this situation I would recommend sticking with absolute path if possible.

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