Jump to content

Randomizing CHOP offset on instanced objects


Recommended Posts



So I have a bunch of butterflies instanced on particles. The butterflies are animated using CHOPs. At the moment all the butterflies are flapping there wings exactly the same. So, how do I make them flap their wings different from each other?

I really don't know, because the butterfly gets animated first. After that it get instanced on the particles, so I don't actually have the point number to use as a random seed for the offset in the CHOP or something right?

Link to comment
Share on other sites

Hi. This is not the best approach to animate butterflies :) 

Bake animation of one butterfly into a sequence of bgeo files. Then use point instancing. On every point (particle) make a string attribute called instancefile with value:

/path/to/my/bgeo/butterfly_`padzero(3, (floor(fit01(rand($PT), 1, 100)) + $F) % 200)`

Where 1 - 100 - range of bgeo files, so each butterfly can start at unique frame

200 - length of animation loop.


And render this with Instance OBJ operator (Fast point instancing)

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.

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