Looping particle positions
#4
So basically you want the targets to follow the animation on the target object, but when storing custom properties the particles are going back to their saved location at frame 0, instead of where the object is at frame 50 (or whatever)?

You'll definitely need a script operator for this, it's just a matter of saving your transforms in local space and retrieving them relative to the object's TM.

So basically your script would be something like this (not sure if this compiles, it's off the top of my head but it looks ok at a glance):

Code:
//...inside the particle loop
if (tf.EventAge(sInx) == 0)
{
    tf.SetCustomTM(sInx, "localTM", tf.GetTM(sInx) * Inverse(obj001.GetTM()); //when particles are born, save their initial offset from the object transform
}

tf.SetCustomTM(sInx, "worldTM", tf.GetCustomTM(sInx, "localTM") * obj001.GetTM()); //continuously update the worldTM channel with the saved localTM x the object's currentTM (ie, the updated TM)

Then you'd put your Find Target operator below this script op, load the target TM from the "worldTM" channel and it would update accordingly.
  Reply


Messages In This Thread
Looping particle positions - by moonjam - 04-24-2019, 11:31 AM
RE: Looping particle positions - by alexgiel - 04-24-2019, 01:07 PM
RE: Looping particle positions - by moonjam - 04-24-2019, 03:05 PM
RE: Looping particle positions - by tyFlow - 04-25-2019, 05:38 AM
RE: Looping particle positions - by insertmesh - 05-15-2019, 10:43 AM
RE: Looping particle positions - by chromodome - 05-16-2019, 12:37 PM
RE: Looping particle positions - by insertmesh - 05-16-2019, 03:20 PM
RE: Looping particle positions - by chromodome - 05-17-2019, 03:53 PM
RE: Looping particle positions - by insertmesh - 05-17-2019, 08:37 PM
RE: Looping particle positions - by tyFlow - 05-17-2019, 10:37 PM
RE: Looping particle positions - by chromodome - 05-18-2019, 12:16 AM
RE: Looping particle positions - by tyFlow - 05-18-2019, 02:52 AM
RE: Looping particle positions - by tyFlow - 05-20-2019, 04:17 AM
RE: Looping particle positions - by insertmesh - 05-20-2019, 08:21 AM
RE: Looping particle positions - by Pflow - 01-28-2020, 11:17 PM

Forum Jump: