hi,
you have two error in your code.
import maya.cmds as cmds
from pymel import *
class BFDTransform(Transform):
    _BFDRigNodeClassID = 'BFDTransform'
    @classmethod
    def createVirtual(cls, **kwargs):
        t = group(**kwargs)
        # you need to add this attribute because the callback test if
he exist.
        # and the attribute need to be cls._BFDRigNodeClassID
(cls._BFDTransformClassID in your code)
        t.addAttr(cls._BFDRigNodeClassID)
        return t

    @classmethod
    def callback( cls, obj, name ):
        fn = api.MFnDependencyNode(obj)
        try:
            return fn.hasAttribute( cls._BFDRigNodeClassID)
        except: pass
        return False

BFDTransform.registerVirtualSubClass(BFDTransform.callback,
nameRequired=False )
######################

colas
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to