Replication Copy SOP's rotation with expression

   1877   0   1
User Avatar
Member
166 posts
Joined: Oct. 2008
Offline
I need to extract the XYZ rotation that the Copy SOP applies to an instanced object on each point.

What I'm trying to do is export all the attributes of my template points to a text file, including the rotations which are applied to the objects which are instanced upon the points.

I suppose that doing some matrix/quaternion -> vector conversion is what I'm looking for, but my limited programming/mathematical skill is taking it's toll I guess.

I know there are a couple of threads both here and on odForce regarding this matter but I've gone through most of them without any luck.

I've attached a hip-file to illustrate. What I would want is to extract the rotation of the teapot which the Copy SOP applies to it. And rotate it without having to use a Copy SOP at all.

Thanks!

Attachments:
replicate_copy_rotation.hip (363.0 KB)

  • Quick Links