Hi,
Does anyone know how to move particles along local axis using script operator? For example: add 10 units to local Z axis.
Using SetPos() I can only move particles in world-space but not local.
Get the particle TM...then use the appropriate row as your axis of movement.
So if you want to move the particle along its z-axis by 10 units, you'd add (particleTM.row3 * 10) to its position.
I have similar question to last one only about local rotation. After few days of research I found that max script has rotateZmatrix function to apply rotation to existing matrices. In tyFlow there is no such function. So basically to do this in tyFlow I need to manually write equation for TM rotation?
I don't know how, but with some dark magic I got this rotation working. That generalization you wrote helped me a lot. Thank you!
The Spin operator has local axis options.
Also if you need to fine-tune rotations, the Script operator now has matrix rotation functions.