ECToo / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

VirtualClass _makeDgModGhostObject warning #304

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by Count....@gmail.com on 29 May 2013 at 6:54

GoogleCodeExporter commented 9 years ago
Any quick hack or workaround to suppress this Warning:?

Original comment by Count....@gmail.com on 7 Jun 2013 at 3:28

GoogleCodeExporter commented 9 years ago
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...

Original comment by elron...@gmail.com on 7 Jun 2013 at 9:31

GoogleCodeExporter commented 9 years ago
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.

Original comment by Count....@gmail.com on 8 Jun 2013 at 10:37