Trying my hands on PyMEL for the first time. Would appreciate some pointers.
First, in the documentaion I see there's another level of hierarchy. pymel.core.general pymel.core.modeling etc However in all examples I see, none of them are using the general/modeling/etc when they call methods. Are those above just a category for documentation and not actual Python hierarchy? Second if I know the my object's name and store the name as string, how can I get/set attributes through PyMEL without selecting it? Or convert it into PyMEL objects? for example import pymel.core as pmc myname = "loop_anim_v001:master_ctrl" pmc.objExists(myname) # True myname.getPosition() # AttributeError pmc.getPosition(myname) # AttributeError pmc.general.getPosition(myname) # AtributeError I'm a bit stuck because examples from docs and Vimeo/Youtube that I found are creating objects from scratch and go from there, like, myobj = polySphere() In which case all the get/set method are already avaibale under myobj. Thank you! -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/8a99e596-6333-41b3-b275-b2078867beab%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
