When i create this runtime particle expression everything is fine.
But when i save scene , and open it , everything is broken.
Like when i delete all particle expressions particles don't emit anymore etc...

Then when i want to create new scene maya crashes.

Someone has some clue why this is happening?

P.S.
Two questions regarding this.

1.With duplicate command maya select duplicate object,how to avoid this?
2.How to get dead particles id's?
I know this is possible throw mel,python "custom" procedure , but is there some easy way?

jschieck

01-26-2011, 02:39 PM

the duplicate command doesn't select the newly duplicated item unless you have the item your duplicating selected as far as i know.

not sure about getting dead particles but you could just store the id's in an array each frame then compare them and the missing ones are the dead ones.

no idea why your expression messes up on save tho, weird.

ginodauri

01-26-2011, 04:43 PM

I made it work but with regular expression.

This is not first time i have problems with particle expression when using mel code.

Obviously it is not designed to write to much mel , and things can go wrong.

About dead particles i solve it with python sets with mel it is too much effort.

With expression running i see objects in viewport get selected on creation.

Btw in the end i rewrote mel expression in python as procedure and i only call procedure in expression.

CGTalk Moderation

01-26-2011, 04:43 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.