Jump to content

confused about grabbing transforms


Macha

Recommended Posts

In the attached file, how do I extract the transform values (position and rotation) of the box object?

I have problems exporting data to another app, especially when objects are parented and have expressions. I think the Extract Transform node could do it (not in this file, but there is an example file in the docs), but where, oh where does it store the position and rotation data? It obviously calculates them!!

Link to comment
Share on other sites

There's a solution that needs some manual labor and copy and pasting.

Go to chops and create a channel node. Channel reference the channels with the origin expressions and you get your sampled animation curves. If you rightclick this node and choose "edit data channels" you should get some keyframes which you can copy and paste into any other channel you would like. It's not really a procedural solution, but it works.

Link to comment
Share on other sites

Thanks Dennis and Symek! In this case the object chop set with the compute parameter set to Position and Rotation works best (it avoids the expression writing).

But two more questions: How do I reduce the spacing of keys (it seems to do a key every 5 frames or so, how do I change it?). How do I save out *.chan files? (only right-click and save channel? Doesn't work, perhaps an Apprentice issue. Is there a node that does it?)

gettransforms_mytry.hipnc

Link to comment
Share on other sites

OK, I kind of worked it out. For future reference, here is how to bake position and rotation on an object, with a keyframe every frame:

-Create an object CHOP and set to compute position.

-Create an object CHOP and set to compute rotation.

-Target those CHOP nodes to the object node that you want to grab the data from.

-right-click those nodes and save channel as *.chan

-On another object, scope the appropriate channels, open channel editor, select channels and import the *.chan files.

Two things to watch out for are that

a) this does not work with Apprentice version.

b ) The object CHOP set to compute "Position and Rotation" gives the wrong result (it is scaled. bug?). It has to be done separately.

Edited by Macha
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...