changing instanced objects after the fact

Ask questions about how to do XY using MOPs
Post Reply
ronald_a
Posts: 2
Joined: Tue Jul 09, 2019 9:41 pm

changing instanced objects after the fact

Post by ronald_a » Wed Jul 10, 2019 7:14 pm

is there a way to change which geo is being instanced on which point (via mops_index) after the mops instances has been set up? So for example the instance changes once the points enter a certain geo (via a falloff object).

Cheers,

Ronny

User avatar
toadstorm
Site Admin
Posts: 180
Joined: Mon Jun 04, 2018 2:16 pm
Contact:

Re: changing instanced objects after the fact

Post by toadstorm » Wed Jul 10, 2019 9:19 pm

The easiest way to handle this is to isolate the group of objects you want to swap (a Split SOP with a group mask of "@mops_falloff>0.5" for example), then use Extract Attributes to get the template point attributes from the existing primitives, then use another MOPs Instancer with those isolated points as the template mesh to copy to. The example file "changing_indexes_01.hip" has a good explanation of this technique.

If you have a whole lot of different objects you want to swap to, it might be easier to load these different objects in as a File Sequence via the Instancer, and then use MOPs Set Sequence Time to swap them.

ronald_a
Posts: 2
Joined: Tue Jul 09, 2019 9:41 pm

Re: changing instanced objects after the fact

Post by ronald_a » Wed Jul 10, 2019 9:36 pm

Ah, thanks, easy enough.

Post Reply