PDA

View Full Version : Rotating PFlow Particles With A Script


decapitator
10-30-2007, 07:58 PM
Hello everyone..

I ran into a small problem with pflow and the particle orientation..

Everytime i try to rotate it around its Z (pCont.particleOrientation.z+=10) it works fine. But what happends is it turns the particle upside down.. So I thought well just set X/Y to 0 but then it just stutters on the Z..

on ChannelsUsed pCont do
(
pCont.useTime = true
pCont.useSpeed = true
pCont.useOrientation = true
)
on Proceed pCont do
(
pCont.particleIndex = 1
pCont.particleOrientation.z += 10

pCont.particleIndex = 2
pCont.particleOrientation = [0, 0, pCont.particleOrientation.z + 10]
)Thats what im using now for an example document with detailed information click here (max9) (http://157.193.148.74/%7Edecap/3dsmax/pflowmax9.max)

I've been trying different things for half a day now and for some wacky reason it just resets to the Z to 0 all the time and then bump back to 10..

CGTalk Moderation
10-30-2007, 07:58 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.