def _fetch_system_from_scene(self):
     """
     Get all SpaceSwitch system in the scene
     """
     lstNetworkNode = libSerialization.getNetworksByClass(SpaceSwitcherLogic.__name__)
     for pNet in lstNetworkNode:
         pData = libSerialization.import_network(pNet)
         self.aSceneSpaceSwitch.append(pData)
 def _fetch_system_from_scene(self):
     """
     Get all SpaceSwitch system in the scene
     """
     lstNetworkNode = libSerialization.getNetworksByClass(
         SpaceSwitcherLogic.__name__)
     for pNet in lstNetworkNode:
         pData = libSerialization.import_network(pNet)
         self.aSceneSpaceSwitch.append(pData)
    def populateData(self):
        lstNetworkNode = libSerialization.getNetworksByClass(PoseReaderData.__name__)
        aToDel = []
        for pNet in lstNetworkNode:
            pData = libSerialization.import_network(pNet)
            #Ensure that the network is valid, if not, delete the network node
            for sVar in pData.__dict__ :
                #print "{0} --> {1}".format(sVar, pData.__dict__[sVar])
                if not (pData.__dict__[sVar]): #TODO --> Delete invalid system node ?
                    aToDel.append(pNet)
                    break;
            if not aToDel: self.addItem(pData)

        if aToDel:
            pymel.delete(aToDel)
Beispiel #4
0
    def populateData(self):
        lstNetworkNode = libSerialization.getNetworksByClass(
            PoseReaderData.__name__)
        aToDel = []
        for pNet in lstNetworkNode:
            pData = libSerialization.import_network(pNet)
            #Ensure that the network is valid, if not, delete the network node
            for sVar in pData.__dict__:
                #print "{0} --> {1}".format(sVar, pData.__dict__[sVar])
                if not (pData.__dict__[sVar]
                        ):  #TODO --> Delete invalid system node ?
                    aToDel.append(pNet)
                    break
            if not aToDel: self.addItem(pData)

        if aToDel:
            pymel.delete(aToDel)