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 to the node because the
callback test if it exist.

        t.addAttr(cls._BFDRigNodeClassID)  # you need this attribute
because  the callback test if it exist
        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 )
######################
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to