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

Cannot make a particle with Pymel\Maya.Cmds

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
247 Views, 0 Replies

Cannot make a particle with Pymel\Maya.Cmds

Hi,

 

I'm trying to create a particle system running Maya standalone (headless). I'm getting an error stating (RuntimeError: No fx edit license found. Can't create/edit object). I've tried the same script in different ways using maya.cmds and pymel. Both have the same issue, but I can run the scripts perfectly fine within Maya.

 

Here is a sample of the code I'm running.

 

HeadlessVersin:

 

import maya.standalone
maya.standalone.initialize()
import init
import maya.cmds as mc

mc.file(newFile=True, force=True)

mc.particle( p=[(0, 0, 0), (3, 5, 6), (5, 6, 7), (9, 9, 9)] )

mc.saveAs('C:File/Location.mb')
mc.saveFile(type='mayaBinary')

 

Within Maya:

 

import maya.cmds as mc

mc.file(newFile=True, force=True)

mc.particle( p=[(0, 0, 0), (3, 5, 6), (5, 6, 7), (9, 9, 9)] )

mc.saveAs('C:File/Location.mb')
mc.saveFile(type='mayaBinary')

 

I'm getting the error with the mc.particle() command.

 

Ideas?

 

Thank you.

 

 

0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report