velocity multiply
#1
hi,
I want to multilly velocity strenght and keep position.
vely slow moving particles are, but i want to set strong motion blur.(VRay)

i have tryied C# script, but set strong velocity, and the positionis changed.

by the way, In houdini, it's very easy.(point wrangle example: @v*=5Wink
I'm good if get similar technique in tyFlow.

thanks
Code:
public void simulationStep()
{    
    for (int i = 0; i < eventParticleCount; i++)
    {
        int sInx = tf.GetSimIndex(i);

        float eventAge = tf.GetEventAge(sInx); //then we get each particle's event-age

        if (eventAge == 0)
        {
            Point3 oriPos = tf.GetPos(sInx); //** ORIGINAL POSITION
            float velMult = 2; //** VELOVITY_Multiply
            tf.SetVel(sInx,tf.GetVel(sInx)*velMult);
            tf.SetPos(sInx, oriPos);
        }        
    }    
}


Attached Files
.max   tyFlow_propertyTransfer_v001.002.max (Size: 864 KB / Downloads: 150)
  Reply


Messages In This Thread
velocity multiply - by Saca - 01-20-2022, 02:47 AM
RE: velocity multiply - by tyFlow - 01-20-2022, 02:59 AM
RE: velocity multiply - by Saca - 01-20-2022, 03:53 AM

Forum Jump: