Example #1
0
 def __init__( self, *args, **kwargs ):
     LensNode.__init__( self, *args, **kwargs )
     Light.__init__( self, *args, **kwargs )
     
     self.AddAttributes(
         Attr( 'Attenuation', pm.Vec3, SL.getAttenuation, SL.setAttenuation ),
         Attr( 'Exponent', float, SL.getExponent, SL.setExponent ),
         Attr( 'Specular Color', pm.Vec4, SL.getSpecularColor, SL.setSpecularColor ),
         Attr( 'Shadow Caster', bool, SL.isShadowCaster, SL.setShadowCaster ),
         parent='Spotlight'
     )
Example #2
0
 def __init__( self, *args, **kwargs ):
     kwargs['nType'] = SL
     LensNode.__init__( self, *args, **kwargs )
     Light.__init__( self, *args, **kwargs )
     
     pAttr = Attr( 'PointLight' )
     pAttr.children.extend( 
         [
             Attr( 'Attenuation', pm.Vec3, SL.getAttenuation, SL.setAttenuation ),
             Attr( 'Exponent', float, SL.getExponent, SL.setExponent ),
             Attr( 'Specular Color', pm.Vec4, SL.getSpecularColor, SL.setSpecularColor ),
             Attr( 'Shadow Caster', bool, SL.isShadowCaster, SL.setShadowCaster )
         ]
     )
     self.attributes.append( pAttr )
Example #3
0
 def __init__(self, *args, **kwargs):
     LensNode.__init__(self, *args, **kwargs)
Example #4
0
 def __init__( self, *args, **kwargs ):
     LensNode.__init__( self, *args, **kwargs )
Example #5
0
 def __init__( self, *args, **kwargs ):
     kwargs['nType'] = pm.Camera
     LensNode.__init__( self, *args, **kwargs )