Notifications
Clear all

[Closed] Ressource on Pflow scripting

hello all
i’m looking for some tutorial on Pflow scripting (like the title) all i found was the tutorial by bobo( very nice one BTW)
are ther any other tutorial around on PFLow?? i tought it would be great to gather them all .

4 Replies
1 Reply
(@bobo)
Joined: 11 months ago

Posts: 0

One? I have a whole page of them.
http://www.scriptspot.com/bobo/mxs5/pflow/
I even put some of those into the MAXScript Reference, just in case…

Would you be interested in buying a CG-Academy DVD on PFlow Scripting if there was one?

Would you be interested in buying a CG-Academy DVD on PFlow Scripting if there was one?

if you made it yeah ! ( and you gave me a free copy ) just kidding
seriously that the only thing i think the’re missing in the cg-academy DVD

thank for the link BTW
[edit] those were the one i was refering to . very well done .
I looking for a way to “modify” the speed by age to a Scale by age to simulate the Fade for function with the superspray.
if you have any idea i’m taker

*Create a default PFlow
*Add a Delete operator, set to By Age, specify age to die at (this is necessary to fill in the Lifespan channel which tells us how long a particle will live)
*Add a Script operator, enter the following code:

on ChannelsUsed pCont do
(
	 pCont.useAge = true
	 pCont.useScale = true
	 pCont.useLifespan = true
)

on Init pCont do ( )

on Proceed pCont do 
(
	count = pCont.NumParticles()
	for i in 1 to count do
	(
		pCont.particleIndex = i
		pCont.particleScale = 1.0 - (pCont.particleAge.frame / pCont.particleLifespan.frame )
	)
)

on Release pCont do ()

This will fade linearly to scale of 0.0 before the particle dies.

To get a more interesting slow-out / fast-in curve, you could use other functions instead, like a COS function:

...
 		pCont.particleScale = cos (90 * pCont.particleAge.frame / pCont.particleLifespan.frame )

...

awesome.!!! i tried but i wasnt able to find the right solution.

I would so steal your brain if it was possible or maybe i’ll clone you and keep my mini-bobo in a steel cage just to keep my lazy ass to look in the maxscript reference
thank again Mr petrov.