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' )
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 )
def __init__(self, *args, **kwargs): LensNode.__init__(self, *args, **kwargs)
def __init__( self, *args, **kwargs ): LensNode.__init__( self, *args, **kwargs )
def __init__( self, *args, **kwargs ): kwargs['nType'] = pm.Camera LensNode.__init__( self, *args, **kwargs )