Jump to content

How to get transformation data inside of an attribute vop, e.g. camera


Pancho

Recommended Posts

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

Link to comment
Share on other sites

 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

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