getting an array of emitters

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  11 November 2009
getting an array of emitters


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 November 2009
try this out on your selection:

ls -showType;

See what types you get on your emitters.
  11 November 2009
Thanks alot man,

That did the trick.

Take it easy,

  11 November 2009
You're welcome
  11 November 2009
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 05:16 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.