def __init__(self, parent, name='Curve', curveNodeModel='data/models/misc/sphere.egg'): #curveNodeModel = VirtualNodeWrapper.__init__(self, parent, name, curveNodeModel) self.lineRenderNp = self.getNodepath().attachNewNode('lineRender') self.possibleChildren = ['CurveNodePointWrapper'] self.nurbsCurveEvaluator = NurbsCurveEvaluator() self.mutableParameters['add node'] = [ Trigger, None, self.addNode, None, None, False ] self.mutableParameters['remove node'] = [ Trigger, None, self.removeNode, None, None, False ] self.nurbsCurveDetail = 4 self.mutableParameters['curve detail'] = [ int, self.getCurveDetail, self.setCurveDetail, None, None, True ]
def __init__(self, parent, name): VirtualNodeWrapper.__init__(self, parent, name, SOUNDNODE_WRAPPER_DUMMYOBJECT) #self.reparentTo(parent) self.soundEffect = None self.soundFilepath = None self.mutableParameters['volume'] = [ float, self.getVolume, self.setVolume, None, None, True ] '''self.mutableParameters['loop'] = [ bool, self.getLoop, self.setLoop, None, None ] self.mutableParameters['loopCount'] = [ int, self.getLoopCount, self.setLoopCount, None, None ]''' self.mutableParameters['playRate'] = [ float, self.getPlayRate, self.setPlayRate, None, None, True ] self.mutableParameters['priority'] = [ int, self.getPriority, self.setPriority, None, None, True ] self.mutableParameters['minDistance'] = [ float, self.getSoundMinDistance, self.setSoundMinDistance, None, None, True ] self.mutableParameters['maxDistance'] = [ float, self.getSoundMaxDistance, self.setSoundMaxDistance, None, None, True ]
def __init__(self, parent, name='SceneNode'): self.objectInstance = None VirtualNodeWrapper.__init__(self, parent, name, SCENE_WRAPPER_DUMMYOBJECT) self.possibleChildren = [ 'NodePathWrapper', 'GeoMipTerrainNodeWrapper', 'AmbientLightNodeWrapper', 'DirectionalLightNodeWrapper', 'SpotLightNodeWrapper', 'CodeNodeWrapper', 'ParticleSystemWrapper', 'PointLightNodeWrapper', 'SoundNodeWrapper', 'SceneNodeWrapper', 'ShaderWrapper', 'CurveNodeWrapper', 'CurveSurfaceNodeWrapper', 'AnimatedTextureWrapper', ] self.possibleFunctions = [ 'saveAs', 'save', 'destroy', 'duplicate', ]
def __init__( self, parent=None, name=None ): global PARTICLES_ENABLED if not PARTICLES_ENABLED: base.enableParticles() PARTICLES_ENABLED = True # define the name of this object VirtualNodeWrapper.__init__(self, parent, name, PARTICLE_WRAPPER_DUMMYOBJECT) self.particleSystem = ParticleEffect()
def __init__(self, parent=None, name=None): global PARTICLES_ENABLED if not PARTICLES_ENABLED: base.enableParticles() PARTICLES_ENABLED = True # define the name of this object VirtualNodeWrapper.__init__(self, parent, name, PARTICLE_WRAPPER_DUMMYOBJECT) self.particleSystem = ParticleEffect()
def __init__(self, parent, name, lightModel, lightType): VirtualNodeWrapper.__init__(self, parent, name, lightModel) # create a instance of the light self.light = lightType(name) self.lightNodePath = self.getNodepath().attachNewNode(self.light) # create the light # this should be made selectable render.setLight(self.lightNodePath) self.mutableParameters['color'] = [ Vec4, self.light.getColor, self.light.setColor, None, None, True ] self.mutableParameters['priority'] = [ int, self.light.getPriority, self.light.setPriority, None, None, True ]
def __init__(self, parent, name='CodeNode'): self.objectInstance = None VirtualNodeWrapper.__init__(self, parent, name, CODE_WRAPPER_DUMMYOBJECT)
def __init__(self, parent, name='CurveElement'): print "I: CurveNodePointWrapper.__init__" curveNodeModel = 'data/models/misc/sphere.egg' VirtualNodeWrapper.__init__(self, parent, name, curveNodeModel)