Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Python cmds.emit crashes Maya (2017 U3)

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
639 Views, 3 Replies

Python cmds.emit crashes Maya (2017 U3)

Anonymous
Not applicable

Hi, I've got a problem with maya crash when I try to use emit command.

Even using a docs example crashes maya:

 

cmds.particle()
cmds.emit( object='particle1', position=((1, 1, 1), (2, 2, 2)), attribute=('velocity', 'rgbPP'), vectorValue=((1, 2, 3), (2, 3, 4), (.5, 1, 0)), floatValue=.1 )

I found post from 2009 on cgtalk, but without any replies.

MEL example works:

particle;
emit -object particle1
          -position 1 1 1
          -position 2 2 2
          -attribute velocity
               -vectorValue 1 2 3
               -vectorValue 2 3 4
          -attribute rgbPP
               -vectorValue .5 1 0
               -floatValue .1;

 

Edit: Did check that on Maya2015 SP5 - same crash result. 

 

Any hints?

 

0 Likes

Python cmds.emit crashes Maya (2017 U3)

Hi, I've got a problem with maya crash when I try to use emit command.

Even using a docs example crashes maya:

 

cmds.particle()
cmds.emit( object='particle1', position=((1, 1, 1), (2, 2, 2)), attribute=('velocity', 'rgbPP'), vectorValue=((1, 2, 3), (2, 3, 4), (.5, 1, 0)), floatValue=.1 )

I found post from 2009 on cgtalk, but without any replies.

MEL example works:

particle;
emit -object particle1
          -position 1 1 1
          -position 2 2 2
          -attribute velocity
               -vectorValue 1 2 3
               -vectorValue 2 3 4
          -attribute rgbPP
               -vectorValue .5 1 0
               -floatValue .1;

 

Edit: Did check that on Maya2015 SP5 - same crash result. 

 

Any hints?

 

Tags (3)
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Anonymous
Not applicable
Accepted solution

That example crashes in Maya 2017 as well. Looks like it might just be a broken command.

As a work around you could use the mel command in python via maya.mel.eval.

That example crashes in Maya 2017 as well. Looks like it might just be a broken command.

As a work around you could use the mel command in python via maya.mel.eval.

Message 3 of 4
Anonymous
in reply to: Anonymous

Anonymous
Not applicable

Well, it seems broken.

I found a topic -> http://forums.cgsociety.org/showthread.php?t=773410 showing same issue in 2009 - that's 8 yeas ago.  

It seems impossible that there is an particle emit bug that gets unnoticed for almost a decade.

I checked pymel implementation and it seems broken as well.

 

0 Likes

Well, it seems broken.

I found a topic -> http://forums.cgsociety.org/showthread.php?t=773410 showing same issue in 2009 - that's 8 yeas ago.  

It seems impossible that there is an particle emit bug that gets unnoticed for almost a decade.

I checked pymel implementation and it seems broken as well.

 

Message 4 of 4
Anonymous
in reply to: Anonymous

Anonymous
Not applicable

I did run some more tests  and it seems that maya.mel.eval is an only option at the moment.

I found some additional strange behaviours with python "emit":

- emitting particles with attributes crashes maya

- emitting particles only with position works ok for "legacy" particles

- emitting particles only with position makes particle .pt[0] always at origin {0,0,0], other particles are ok - happens with nParticles

Usimg maya.mel.eval works like a charm for particles and nParticles as well.

It's some nasty bug out there, but for the time being I've got a workaround.

 

0 Likes

I did run some more tests  and it seems that maya.mel.eval is an only option at the moment.

I found some additional strange behaviours with python "emit":

- emitting particles with attributes crashes maya

- emitting particles only with position works ok for "legacy" particles

- emitting particles only with position makes particle .pt[0] always at origin {0,0,0], other particles are ok - happens with nParticles

Usimg maya.mel.eval works like a charm for particles and nParticles as well.

It's some nasty bug out there, but for the time being I've got a workaround.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report