LumaPictures / pymel

Python in Maya Done Right
Other
490 stars 131 forks source link

VirtualClass _makeDgModGhostObject warning #337

Open pmolodo opened 9 years ago

pmolodo commented 9 years ago

From Count....@gmail.com on May 29, 2013 11:54:05

When declaring and the registering a Virtual Class, this warning appears:

Warning: Unknown object type: vMeta

Warning: pymel.internal.apicache : _makeDgModGhostObject should be unnecessary in maya versions past 2012 (except when rebuilding cache)

Maya 2014 Win7 64bit

PyMEL 1.0.5

Expected no warnings as it works fine in Maya2013/pymel.1.0.4

Sample code:

import pymel.core class VMeta ( pymel.core.nodetypes.Network ): [...] pymel.all.factories.registerVirtualClass( VMeta, nameRequired = False )

Original issue: http://code.google.com/p/pymel/issues/detail?id=304

pmolodo commented 9 years ago

From Count....@gmail.com on June 07, 2013 08:28:08

Any quick hack or workaround to suppress this Warning:?

pmolodo commented 9 years ago

From elron...@gmail.com on June 07, 2013 14:31:18

well, you can always just comment out the line where the warning is raised - in pymel.internal.apicache, _makeDgModGhostObject (right at the start).

I'll look into why it's resorting to this method though... it really shouldn't be...

pmolodo commented 9 years ago

From Count....@gmail.com on June 08, 2013 15:37:53

Yeah, I changed the logger level for the _makeDgModGhostObject message to 'debug' so I only get this line only:

Warning: Unknown object type: vMeta

I suppose I could find the source of that one too. But yeah, it would be nice to address the issue's source.

Thanks.