locvio Posted January 23, 2014 Share Posted January 23, 2014 (edited) 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 January 23, 2014 by locvio Quote Link to comment Share on other sites More sharing options...
anim Posted January 23, 2014 Share Posted January 23, 2014 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") Quote Link to comment Share on other sites More sharing options...
locvio Posted January 23, 2014 Author Share Posted January 23, 2014 thanks, Tomas! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.