XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : getting an array of emitters

11-02-2009, 01:52 PM

I have a group of Rigid bodies that have been baked and I want to emit particles from bodies via a surface emitter, but I want only want the emitter to emit if the RB reaches a specified velocity.

My problem is collecting the emitter objects and adding them to an array.

At the moment I am selecting all of my polygon objects which have surface emitter nodes attached to them then running this line;

string $Test[] = `ls -sl -dag -exactType emitter`;

to get an array of my emitters, but I get the error unknown object type:

This method works when I want to create an array of rigidBodies, so I'm guessing that I'm not calling my emitters in the correct way or, they cannot be called this way!

Any help would be greatly appreciated.



11-02-2009, 02:38 PM
try this out on your selection:

ls -showType;

See what types you get on your emitters.

11-02-2009, 02:51 PM
Thanks alot man,

That did the trick.

Take it easy,


11-02-2009, 02:55 PM
You're welcome ;)

CGTalk Moderation
11-02-2009, 02:55 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.