Accessing the Particle Type Property under the Emitter Property
Assuming you successfully got a pointer to the emitter property (see Accessing the Emitter Property), you can browse its children using the EnumElements command:
- Use the CollectionItem.Type property to test each item, looking for one that says it’s a ParType element:
var ptype;
rtn = EnumElements( eprop );
var e = new Enumerator( rtn );
// As soon as the ptype is found, grab it and quit the loop
for ( ; !e.atEnd(); e.moveNext() ) {
if ( e.item().Type == "ParType" ) {
ptype = e.item();
break;
}
}