Pancho Posted November 16, 2015 Share Posted November 16, 2015 Quick question. Anybody an idea how to get the position of the camera inside of an attribute vop? Like cmr.kine.global.pos in Softimage? I'm a bit stunned about all the expresions one needs to know and it took quite a while till I stumpled across the stuff below. I managed to get the single coordinate values inside of a transform node via origin("", "/obj/camera", "TX"), but inside the attribute vop, I have no clue how to do this. I tried bind and parameter, but I failed miserably. Thanks for any tips! Tom Quote Link to comment Share on other sites More sharing options...
ranxerox Posted November 16, 2015 Share Posted November 16, 2015 you could use an object merge, point it to the "camOrigin" node inside of your camera, change the "transform" option to "into this object", and pipe the ouput of the object merge into the second input of your attribute vop. Then in the attribute vop you could access the second input with an "Import Point Attribute" and change the input parameter to "second input", and pipe a constant of 0 into the "ptnum" parameter. -G Quick question. Anybody an idea how to get the position of the camera inside of an attribute vop? Like cmr.kine.global.pos in Softimage? I'm a bit stunned about all the expresions one needs to know and it took quite a while till I stumpled across the stuff below. I managed to get the single coordinate values inside of a transform node via origin("", "/obj/camera", "TX"), but inside the attribute vop, I have no clue how to do this. I tried bind and parameter, but I failed miserably. Thanks for any tips! Tom Quote Link to comment Share on other sites More sharing options...
pezetko Posted November 16, 2015 Share Posted November 16, 2015 Or in AttributeVop SOP with Transform Space VOP (ntransform()/ptransform()) and optransform() (inline). See attached example. You can create custom vector parameter (Parameter VOP, instead of the Bind VOP) and use origin() hscript expression too. pz_object_transform_in_vop.hipnc Quote Link to comment Share on other sites More sharing options...
mestela Posted November 17, 2015 Share Posted November 17, 2015 Maybe I'm missing something, but can't you do all that with just the transform vop? Quote Link to comment Share on other sites More sharing options...
Pancho Posted November 17, 2015 Author Share Posted November 17, 2015 Thanks to you both! So many logs today to stumble across. Horrbile. But thanks to all the users who helped me up on my feet again. 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.