def __init__(self,gui=False,mv=None,debug=0): self.soft = 'maya' self.helper = mayaHelper.mayaHelper() #this should only be used for cpk! not bioMt self.helper.cmdInstance = self.helper.newInstance self.helper.newInstance = self.helper.newMInstance epmvAdaptor.__init__(self,mv,host='maya',debug=debug) #scene and object helper function # self._getCurrentScene = mayaHelper.getCurrentScene self._getCurrentScene = self.helper.getCurrentScene ## self._addObjToGeom = self.helper.addObjToGeom # self._host_update = self.helper.update ## self._parseObjectName = self.helper.parseObjectName self._getObjectName = self.helper.getName self._getObject = self.helper.getObject self._addObjectToScene = self.helper.addObjectToScene self._toggleDisplay = self.helper.toggleDisplay self._newEmpty = self.helper.newEmpty self._metaballs = self.helper.metaballs # self._deleteObject = self.helper.deleteObject # #camera and lighting self._addCameraToScene = self.helper.addCameraToScene self._addLampToScene = self.helper.addLampToScene # #display helper function # self._editLines = self.helper.editLines ## self._createBaseSphere = self.helper.createBaseSphere ## self._instancesAtomsSphere = self.helper.instancesAtomsSphere # self._Tube = self.helper.Tube self._createsNmesh = self.helper.createsNmesh self._PointCloudObject = self.helper.PointCloudObject # #modify/update geom helper function ## self._updateSphereMesh = self.helper.updateSphereMesh self._updateSphereObj = self.helper.updateSphereObj # self._updateSphereObjs = self.helper.updateSphereObjs # self._updateTubeMesh = self.helper.updateTubeMesh self._updateTubeObj = self.helper.updateTubeObj # self._updateMesh = self.helper.updateMesh # #color helper function # self._changeColor = self.helper.changeColor # self._checkChangeMaterial = self.helper.checkChangeMaterial # self._changeSticksColor = self.helper.changeSticksColor # self._checkChangeStickMaterial = self.helper.checkChangeStickMaterial #define the general function # self.use_progressBar = False # if not hasattr(maya,'pb') : # maya.pb = None #define the general function self.use_progressBar = False self._resetProgressBar = self.helper.resetProgressBar self._progressBar = self.helper.progressBar self.rep = "epmv" #specific options self.keywords["spherestype"]={"name":"use nurbs sphere instead of polygonal one","value":True,"type":"checkbox"} self.control_mmaya = False
def __init__(self,mv=None,debug=0,gui=False): self.soft = 'blender25' self.helper = upy.getHClass("blender25")() #overwrite # self.setupMV = self.setupMV2 # self.start = self.start2 # self.addADTCommands = self.addADTCommands2 epmvAdaptor.__init__(self,mv,host='blender25',debug=debug) # #scene and object helper function self._getCurrentScene = self.helper.getCurrentScene ## self._addObjToGeom = self.helper.addObjToGeom # self._host_update = self.helper.update ## self._parseObjectName = self.helper.parseObjectName self._getObjectName = self.helper.getName self._getObject = self.helper.getObject self._addObjectToScene = self.helper.addObjectToScene self._toggleDisplay = self.helper.toggleDisplay self._newEmpty = self.helper.newEmpty # self._deleteObject = self.helper.deleteObject # #camera and lighting self._addCameraToScene = self.helper.addCameraToScene self._addLampToScene = self.helper.addLampToScene # #display helper function # self._editLines = self.helper.editLines ## self._createBaseSphere = self.helper.createBaseSphere ## self._instancesAtomsSphere = self.helper.instancesAtomsSphere # self._Tube = self.helper.Tube self._createsNmesh = self.helper.createsNmesh self._metaballs = self.helper.metaballs self._PointCloudObject = self.helper.PointCloudObject # #modify/update geom helper function ## self._updateSphereMesh = self.helper.updateSphereMesh self._updateSphereObj = self.helper.updateSphereObj # self._updateSphereObjs = self.helper.updateSphereObjs # self._updateTubeMesh = self.helper.updateTubeMesh self._updateTubeObj = self.helper.updateTubeObj # self._updateMesh = self.helper.updateMesh # #color helper function # self._changeColor = self.helper.changeColor # self._checkChangeMaterial = self.helper.checkChangeMaterial # self._changeSticksColor = self.helper.changeSticksColor # self._checkChangeStickMaterial = self.helper.checkChangeStickMaterial #define the general function self._progressBar = None#Blender.Window.DrawProgressBar self.rep = "epmv" self.setupMaterials() self.matlist = self.helper.getAllMaterials() self.prevFrame = None self.callback = None if gui : self.createGUI()
def __init__(self,gui=False,mv=None,debug=0): self.helper = c4dHelper() epmvAdaptor.__init__(self,mv,host='c4d',debug=debug) self.MAX_LENGTH_NAME = 20 self.soft = 'c4d' #scene and object helper function # #scene and object helper function self._getCurrentScene = self.helper.getCurrentScene ## self._addObjToGeom = self.helper.addObjToGeom # self._host_update = self.helper.update ## self._parseObjectName = self.helper.parseObjectName self._getObjectName = self.helper.getName self._getObject = self.helper.getObject self._addObjectToScene = self.helper.addObjectToScene self._toggleDisplay = self.helper.toggleDisplay self._newEmpty = self.helper.newEmpty # self._deleteObject = self.helper.deleteObject # #camera and lighting self._addCameraToScene = self.helper.addCameraToScene self._addLampToScene = self.helper.addLampToScene # #display helper function # self._editLines = self.helper.editLines ## self._createBaseSphere = self.helper.createBaseSphere ## self._instancesAtomsSphere = self.helper.instancesAtomsSphere # self._Tube = self.helper.Tube self._createsNmesh = self.helper.createsNmesh self._PointCloudObject = self.helper.PointCloudObject # #modify/update geom helper function ## self._updateSphereMesh = self.helper.updateSphereMesh self._updateSphereObj = self.helper.updateSphereObj # self._updateSphereObjs = self.helper.updateSphereObjs # self._updateTubeMesh = self.helper.updateTubeMesh self._updateTubeObj = self.helper.updateTubeObj # self._updateMesh = self.helper.updateMesh # #color helper function # self._changeColor = self.helper.changeColor # self._checkChangeMaterial = self.helper.checkChangeMaterial # self._changeSticksColor = self.helper.changeSticksColor # self._checkChangeStickMaterial = self.helper.checkChangeStickMaterial #define the general function self.use_progressBar = False self.colorProxyObject = True self._progressBar = self.helper.progressBar self._resetProgressBar = self.helper.resetProgressBar # self._render = self.helper.render self.rep = self._getCurrentScene().GetDocumentName() self.keywords["ribcolor"]={"name":"use vertex color for ribbon geometry","value":False,"type":"checkbox"}
def __init__(self,mv=None,debug=0): #before editing need to change DejaVu option VBO DejaVu.enableVertexArray = False epmvAdaptor.__init__(self,mv,host='houdini',debug=debug) self.soft = 'houdini' self.helper = houdiniHelper #scene and object helper function self._getCurrentScene = houdiniHelper.getCurrentScene self._addObjToGeom = houdiniHelper.addObjToGeom self._host_update = houdiniHelper.update self._getObjectName = houdiniHelper.getObjectName self._parseObjectName = houdiniHelper.parseObjectName self._getObject = houdiniHelper.getObject self._addObjectToScene = houdiniHelper.addObjectToScene self._toggleDisplay = houdiniHelper.toggleDisplay self._newEmpty = houdiniHelper.newEmpty #camera and lighting self._addCameraToScene = houdiniHelper.addCameraToScene self._addLampToScene = houdiniHelper.addLampToScene #display helper function self._editLines = houdiniHelper.editLines self._createBaseSphere = houdiniHelper.createBaseSphere self._instancesAtomsSphere = houdiniHelper.instancesAtomsSphere self._Tube = houdiniHelper.Tube self._createsNmesh = houdiniHelper.createsNmesh self._PointCloudObject = houdiniHelper.PointCloudObject #modify/update geom helper function self._updateSphereMesh = houdiniHelper.updateSphereMesh self._updateSphereObj = houdiniHelper.updateSphereObj self._updateSphereObjs = None#houdiniHelper.updateSphereObjs self._updateTubeMesh = houdiniHelper.updateTubeMesh self._updateTubeObj = houdiniHelper.updateTubeObj self._updateMesh = houdiniHelper.updateMesh #color helper function self._changeColor = houdiniHelper.changeColor self._checkChangeMaterial = houdiniHelper.checkChangeMaterial self._changeSticksColor = houdiniHelper.changeSticksColor self._checkChangeStickMaterial = houdiniHelper.checkChangeStickMaterial #overwrite the general option self.use_progressBar = False self.doCloud = False
def __init__(self, mv=None, debug=0): #before editing need to change DejaVu option VBO DejaVu.enableVertexArray = False epmvAdaptor.__init__(self, mv, host='houdini', debug=debug) self.soft = 'houdini' self.helper = houdiniHelper #scene and object helper function self._getCurrentScene = houdiniHelper.getCurrentScene self._addObjToGeom = houdiniHelper.addObjToGeom self._host_update = houdiniHelper.update self._getObjectName = houdiniHelper.getObjectName self._parseObjectName = houdiniHelper.parseObjectName self._getObject = houdiniHelper.getObject self._addObjectToScene = houdiniHelper.addObjectToScene self._toggleDisplay = houdiniHelper.toggleDisplay self._newEmpty = houdiniHelper.newEmpty #camera and lighting self._addCameraToScene = houdiniHelper.addCameraToScene self._addLampToScene = houdiniHelper.addLampToScene #display helper function self._editLines = houdiniHelper.editLines self._createBaseSphere = houdiniHelper.createBaseSphere self._instancesAtomsSphere = houdiniHelper.instancesAtomsSphere self._Tube = houdiniHelper.Tube self._createsNmesh = houdiniHelper.createsNmesh self._PointCloudObject = houdiniHelper.PointCloudObject #modify/update geom helper function self._updateSphereMesh = houdiniHelper.updateSphereMesh self._updateSphereObj = houdiniHelper.updateSphereObj self._updateSphereObjs = None #houdiniHelper.updateSphereObjs self._updateTubeMesh = houdiniHelper.updateTubeMesh self._updateTubeObj = houdiniHelper.updateTubeObj self._updateMesh = houdiniHelper.updateMesh #color helper function self._changeColor = houdiniHelper.changeColor self._checkChangeMaterial = houdiniHelper.checkChangeMaterial self._changeSticksColor = houdiniHelper.changeSticksColor self._checkChangeStickMaterial = houdiniHelper.checkChangeStickMaterial #overwrite the general option self.use_progressBar = False self.doCloud = False