Event : Helper

Event - superclass: helper; super-superclass:node - 0:0 - classID: #(1962490627, 515064576) 

Value > MAXWrapper > Node > Helper > Event

 

   

Particle Flow - Quick Navigation

Description:

The Event lets you group Actions in Particle View to define the appearance of particles over a certain period of time. Creating instances of this class gives you empty holders that can be filled with Actions using the exposed Interfaces’ Methods.

   

Constructor:

Event... 

Event Interfaces:

The following Interfaces are exposed by the Event Class:

Interface: ActionList

Interface: PViewItem

Interface: MaterialHolder

EXAMPLE

--Open the Particle View to watch the results:
particleFlow.openParticleView()
--> OK
 
ev = event()--Create an empty Event
--> $Event:Event 01 @ [0.000000,0.000000,0.000000]
 
--In order to fill in the empty Event, we have to disable
--the automatic Event encapsulation of newly created Actions.
particleFlow.beginEdit()
--> OK
 
--Now we can create a new Birth action to add to the Event.
br = birth()
--> $Birth:Birth 01 @ [0.000000,0.000000,0.000000]
 
--We can now append the new Birth Action to the empty Event:
ev.appendAction br
--> true
 
--We can also create Action class instances
--and append them to the Event in a single step:
ev.appendAction (Position_Icon())
--> true
ev.appendAction (Speed())
--> true
ev.appendAction (ShapeStandard())
--> true
ev.appendAction (DisplayParticles())
--> true
 
--Finally, we can exit the Edit mode to enable automatic
--Event encapsulation again:
particleFlow.endEdit()
--> OK

See Also