def __init__(self, *args, **kwargs): kwargs["nType"] = pm.LensNode NodePath.__init__(self, *args, **kwargs) pAttr = Attr("LensNode") pAttr.children.extend([Attr("Fov", pm.Vec2, Lens.getFov, Lens.setFov, self.GetLens)]) self.attributes.append(pAttr)
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'ModelPath', pm.Filename, self.GetFullPath, initDefault='' ), parent='ModelRoot' )
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Show Wireframe', bool, self.GetWireframe, self.SetWireframe ), parent='BulletDebugNode' )
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Fov', pm.Vec2, Lens.getFov, Lens.setFov, self.GetLens ), parent='LensNode' )
def __init__(self, *args, **kwargs): NodePath.__init__(self, *args, **kwargs) self.AddAttributes( Attr("Num Solids", int, CN.getNumSolids), Cnnctn("Solids", CS, CN.getSolids, CN.addSolid, CN.clearSolids, self.RemoveSolid, self.data), parent="CollisionNode", )
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Num Solids', int, CN.getNumSolids ), Cnnctn( 'Solids', CS, CN.getSolids, CN.addSolid, CN.clearSolids, self.RemoveSolid, self.data ), parent='CollisionNode' )
def __init__(self, *args, **kwargs): NodePath.__init__(self, *args, **kwargs) self.AddAttributes(Attr('ModelPath', pm.Filename, self.GetFullPath, initDefault=''), parent='ModelRoot')
def __init__(self, *args, **kwargs): NodePath.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Shape', BCS, initDefault=BCS(0.4, 1.75 - 2 * 0.4, ZUp)), Attr('step_height', float, initDefault=0.4), Attr('Name', str), parent='BulletCharacterControllerNode')
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Shape', BCS, initDefault=BCS( 0.4, 1.75 - 2*0.4, ZUp ) ), Attr( 'step_height', float, initDefault=0.4 ), Attr( 'Name', str ), parent='BulletCharacterControllerNode' )
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) pAttr = Attr( 'Light' ) pAttr.children.extend( [ Attr( 'Color', pm.Vec4, L.getColor, L.setColor ) ] ) self.attributes.append( pAttr )
def __init__(self, *args, **kwargs): NodePath.__init__(self, *args, **kwargs) self.AddAttributes(Attr('Fov', pm.Vec2, Lens.getFov, Lens.setFov, self.GetLens), Attr('Near', float, Lens.getNear, Lens.setNear, self.GetLens), Attr('Far', float, Lens.getFar, Lens.setFar, self.GetLens), parent='LensNode')
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Angular Damping', float, BRBN.getAngularDamping, BRBN.setAngularDamping ), Attr( 'Gravity', pm.Vec3, BRBN.getGravity, BRBN.setGravity ), Attr( 'Mass', float, BRBN.getMass, BRBN.setMass ), Cnnctn( 'Shapes', BS, BRBN.getShapes, BRBN.addShape, self.ClearShapes, BRBN.removeShape, self.data ), parent='BulletRigidBodyNode' )
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) self.AddAttributes( Attr( 'Color', pm.Vec4, pm.Fog.getColor, pm.Fog.setColor ), Attr( 'Linear Onset Point', pm.Point3, pm.Fog.getLinearOnsetPoint, pm.Fog.setLinearOnsetPoint ), Attr( 'Linear Opaque Point', pm.Point3, pm.Fog.getLinearOpaquePoint, pm.Fog.setLinearOpaquePoint ), Attr( 'Exponential Density', float, pm.Fog.getExpDensity, pm.Fog.setExpDensity ), parent='Fog' )
def __init__( self, *args, **kwargs ): kwargs['nType'] = CN NodePath.__init__( self, *args, **kwargs ) pAttr = Attr( 'CollisionNode' ) pAttr.children.extend( [ Attr( 'Num Solids', int, CN.getNumSolids ) ] ) self.attributes.append( pAttr )
def __init__(self, *args, **kwargs): NodePath.__init__(self, *args, **kwargs) self.AddAttributes(Attr("Color", pm.Vec4, L.getColor, L.setColor), parent="Light")
def __init__( self, *args, **kwargs ): kwargs['nType'] = pm.ModelNode NodePath.__init__( self, *args, **kwargs )
def __init__( self, *args, **kwargs ): NodePath.__init__( self, *args, **kwargs ) self.attributes.append( Attribute( 'Actor' ) )