Jump to content

CHOP: How can I shift the rotation start frame for each copy?


Recommended Posts

Hi guys,

I animated an object (rotating the y-axis) and copied it on a line SOP points.

Now I would like to vary (shift) the "start frame" of the animation for each copy, using CHOP.

The problem is I know how to do it for attributes like the "P", but what should I do for the Rotation, which is not accessible as an attribute?

 

 

Thanks for helping.

Randome Rotation.jpg

Randome Rotation.hip

Link to comment
Share on other sites

Hi Masoud, you can do this:

1. Attribute create SOP - make an attribute named Rotation, and animate the value from 0 to 1. This will be your animation which you will later shift to other start frames

2. in the CHOP network, geometry CHOP - put Rotate in "Attribute scope" and "rename scope". If you look at the motionFX view, you can see that your shift CHOP is doing what you want it to do

3. channel SOP - put Rotate in the "Channel Scope" and "Attribute Scope", to fetch the adjusted attribute from CHOPs back into SOPs

4. Attribute VOP - you can use the 0-1 range and convert it into a 0-360 rotation in the y-axis. This one is hard to explain but I attached a .hip file and you can take a look at it that way.

 

Randome Rotation fix.hip

Link to comment
Share on other sites

  • 3 weeks later...

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