Jump to content

indirectly refer to a parameter in expression?


locvio

Recommended Posts

Hi,

a scripting question:

 

On SOP level,

object-merging an obj level object(say a camera)..

then in another node want to refer to the camera's aperture..

What is the way to do that? (Indirectly refer to a parameter in hscript)

 

something like this: (but this doesnt work :)

 

`ch("../object_merge3/objpath1")/aperture`

 

thanks!

 

Alex

 

(below  works with detail params in attribcreate, but is there a more streamlined way?)

 

attribcreate1:

aperturePath = `chs("../object_merge3/objpath1")`/aperture

 

attribcreate2:

aperture = $APERTUREPATH

Edited by locvio
Link to comment
Share on other sites

so if chsop("../object_merge3/objpath1") will give you path to your camera

 

then

ch(chsop("../object_merge3/objpath1") + "/aperture")

will give you aperture value

or even this will work:

ch(chs("../object_merge3/objpath1") + "/aperture")
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...