Hi I am using maya with python in standalone mode. I get an error, but I don´t know what i am doing wrong.
import maya.standalone import maya.OpenMaya as om import maya.OpenMayaMPx as ompx import maya.cmds as cmds import sys maya.standalone.initialize(name='python') sphere = om.MFnSphereData().create(5) type = om.MTypeId(sphere.apiType()) cmd = om.MDGModifier() node = cmd.createNode(type) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> At this point I obtain the next error: Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: (kInvalidParameter): Object is incompatible with this method Why I get this error???? I suppose that you can create a node to store, tranforms, modify ... spheres but I can´t find the solution. Please help me. Thank you. Omar. --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
