View Full Version : Scripting Speed by Icons Influence
HeadSmell 10-19-2009, 03:00 AM I could be wrong, but I was under the impression that speed by icon's influence will gradually overtake to 100% of the coarse of the event. causing other forces in the event to be slowly phased out.
Is there a way through scripting to set the influence to be the same on every frame? or am i just retarded and over looking something simple?
Cheers
|
|
noouch
10-19-2009, 08:28 AM
I guess if you're constantly adding the speed that would happen. You could write a script to overwrite the force channel (or rather a little bit of it) with the particle's position minus the position of the icon.
Let me know if you need me to be more specific, then I can take a bit of time to write a quick operator script.
I could be wrong, but I was under the impression that speed by icon's influence will gradually overtake to 100% of the coarse of the event. causing other forces in the event to be slowly phased out.
Is there a way through scripting to set the influence to be the same on every frame? or am i just retarded and over looking something simple?
Cheers
When the Influence spinner is set to 100%, the Speed By Icon will OVERWRITE the speed channel on every frame. It is not a Force operator (which modifies the speed additively) but a Speed operator which writes directly into the Speed channel.
To simulate the gradual overtaking, one would have to animate the Influence from 0 to 100% and use the Parameter Animation Sync option to define how the % will be applied (typically by Particle Age, I guess). This will cause the icon's speed to be mixed with the existing speed of the particles (which includes any influences of Forces) based on the Influence percentage.
By default though, the Influence is 100% and if the Speed By Icon is placed after the Force operator, the Force will be totally overruled because the Speed channel will be overwritten by the Icon's speed. If the Force operator is AFTER the Speed By Icon though, the Force will still be added on top of the Speed By Icon, but it won't be additive over time because the speed will be overwritten on every frame, thus negating any Force influence from previous frames.
The Force operator's influence can be controlled by the Script Float channel if desired, so combining the two could lead to any effect you want.
HeadSmell
10-20-2009, 01:41 AM
As always, Thank you Bobo for the wonderful particle insight. :beer:
Going to have to look into controlling the Forces operator by Script Float now...
As always, Thank you Bobo for the wonderful particle insight. :beer:
Going to have to look into controlling the Forces operator by Script Float now...
See here for the basics:
http://www.scriptspot.com/bobo/mxs5/pflow/pflow__force_by_mass.htm
The same tutorial can be found inside the MAXScript Help.
HeadSmell
10-20-2009, 06:07 AM
Lol, Perfect
Now to get my scripting up to par:wip:
Cheers for that
CGTalk Moderation
10-20-2009, 06:07 AM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.