bloodty...@gmail.com
unread,Nov 2, 2018, 7:03:14 PM11/2/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python Programming for Autodesk Maya
I can't seem to find anything about this particular problem on the web.
Basically, If I create a locator in any other way or if I instantiate any other pymel.core.nodetype.* class ( I haven't tried them all obviously ) I incur in no unexpected behavior.
If I, instead, try to create an instance of the pymel.core.nodetypes.Locator class, I incur in the following error :
# Error: line 1: ValueError: file C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\pymel\core\general.py line 2273: unexpect result locator1 returned by spaceLocator #
Looking at general.py this seems to happen in the node creation when the newly created Maya node can't be correctly found or is not of the correct type.
I'm not sure what is the reason behind this error, but, considering that it only happens when I try to instantiate this particular class ( the product of which works perfectly if created in any other way ), I'm thinking this may actually be a bug.
Does anyone know what exactly may be the reason behind this behavior? Am I doing something wrong and this is to be expected ?