pycatia.cat_rsc_interfaces.rendering_light¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.cat_rsc_interfaces.rendering_light.RenderingLight(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectRenderingLightRepresents a Rendering Light object.- property active_status: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ActiveStatus() As shortReturns or sets the light active status.A light illuminates only when it is active. The active status canbe:1: light is on0: light is off
- Return type:
int
- property ambient: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Ambient() As doubleReturns or sets the light ambient intensity of a light.
- Return type:
float
- property angle: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Angle() As doubleReturns or sets the light angle of a spot light.The angle ranges from 0. (directional light) to 360. (point light).
- Return type:
float
- property area_samples_u: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AreaSamplesU() As shortChanges the number of samples taken in U direction of the area source.
- Return type:
int
- property area_samples_v: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AreaSamplesV() As shortChanges the number of samples taken in V direction of the area source.
- Return type:
int
- property area_status: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AreaStatus() As shortReturns or sets the light area visibility status.The area visibility status can be:1: light area is rendered0: light area is not rendered
- Return type:
int
- property attenuation_angle_ratio: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AttenuationAngleRatio() As doubleReturns or sets the light attenuation angle ratio.It represents the fraction of the light angle where the illumination startsto attenuate.The ratio ranges from 0. (attenuation starts when angle is null) to 1.(attenuation starts when angle is maximum = no angle attenuation).
- Return type:
float
- property attenuation_start_ratio: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AttenuationStartRatio() As doubleReturns or sets the light attenuation start ratio.It represents the fraction of the end distance where the light intensitystarts to attenuate.The ratio ranges from 0. (attenuation starts at the origin) to 1.(attenuation starts at the end distance = no attenuation).
- Return type:
float
- property caustic_photons_number: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property CausticPhotonsNumber() As longChanges the maximum number of caustic photons to emit from the lightsource.
- Return type:
int
- property cylinder_light_height: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property CylinderLightHeight() As doubleReturns or sets the cylinder light area radius.
- Return type:
float
- property cylinder_light_radius: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property CylinderLightRadius() As doubleReturns or sets the cylinder light area radius.
- Return type:
float
- property diffuse: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Diffuse() As doubleReturns or sets the light diffuse intensity of a light.
- Return type:
float
- property disk_light_radius: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property DiskLightRadius() As doubleReturns or sets the disk light area radius.
- Return type:
float
- property end_distance: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property EndDistance() As doubleReturns or sets the light maximum distance ofillumination.The light illuminates from its origin to its end distance. Objects fartherthan this distance are not affected by the light.
- Return type:
float
- property energy_factor: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property EnergyFactor() As doubleChanges the factor for indirect illumination energy.
- Return type:
float
- property falloff_exponent: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property FalloffExponent() As shortChanges the light falloff exponent. Exponent value can be 0, 1 or2.An exponent of 0 means that the light energy does not fall off with distance.An exponent of 1 means that the light energy fall off is linear.An exponent of 2 is physically correct.
- Return type:
int
- get_colour(o_colour: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetColor(CATSafeArrayVariant oColor)Returns the color of a light.The color is expressed with r, g, and b coefficients (between 0 and255)Parameters:oColorThe color as a safe array made up of three doubles: r, g,bThe array must be previously initialized.
- Parameters:
o_colour (tuple) –
- Return type:
None
- get_origin(o_origin: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetOrigin(CATSafeArrayVariant oOrigin)Returns the coordinates of the origin of the light.These coordinates are set as an array of 3 Variants (double type).
- Parameters:
o_origin (tuple) –
- Return type:
None
- get_shadow_colour(o_shadow_colour: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetShadowColor(CATSafeArrayVariant oShadowColor)Returns the color of a shadow.The color is expressed with r, g, and b coefficients (between 0 and255)Parameters:oColorThe color as a safe array made up of three doubles: r, g,bThe array must be previously initialized.
- Parameters:
o_shadow_color (tuple) –
- Return type:
None
- get_target(o_target: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetTarget(CATSafeArrayVariant oTarget)Returns the coordinates of the target point of the light.These coordinates are set as an array of 3 Variants (double type).
- Parameters:
o_target (tuple) –
- Return type:
None
- property global_photons_number: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property GlobalPhotonsNumber() As longChanges the maximum number of global illumination photons to emit from thelight source.
- Return type:
int
- property hardware_shadow_smoothing: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property HardwareShadowSmoothing() As shortReturns or sets the light shadow smoothing.It is an integer in the scale 0 to 10 It represents the cleanliness of theshadow limits
- Return type:
int
- property hardware_shadow_status: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property HardwareShadowStatus() As shortReturns or sets the light shadow status on environment.The shadow status can be:1: light casts shadows on environment0: light does not cast shadows on environmentThe shadow status on environmemt can be activate only with a directionallight
- Return type:
int
- property hardware_shadow_transparency: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property HardwareShadowTransparency() As doubleReturns or sets the light shadow transparency.It is a float in the scale 0.0(no transparency) to 1.0 (full transparency)
- Return type:
float
- property illumination_status: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property IlluminationStatus() As shortChanges the indirect illumination status.The indirect illumination status can be:1: indirect illumination is enabled0: indirect illumination is disabled
- Return type:
int
- property intensity: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Intensity() As doubleReturns or sets the light intensity of a light.
- Return type:
float
- property light_area_type: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property LightAreaType() As shortReturns or sets the light area type.Possible area light types are:1: CATNone2: CATRectangle3: CATDisk4: CATSphere5: CATCylinder
- Return type:
int
- property mode: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Mode() As shortReturns or sets the light mode.Possible light modes are:1: Light is linked to the viewpoint2: Light is linked to the model
- Return type:
int
- put_colour(i_colour: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub PutColor(CATSafeArrayVariant iColor)Sets the color of a light.The color is expressed with r, g, and b coefficients (between 0 and255)
- Parameters:
i_colour (tuple) –
- Return type:
None
- put_origin(i_origin: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub PutOrigin(CATSafeArrayVariant iOrigin)Sets the coordinates of the origin of the light.These coordinates are set as an array of 3 Variants (doubletype).Example:This example sets the origin of the MyLight light. to the point withcoordinates (10, 25, 15).MyLight.PutOrigin Array(10, 25, 15)
- Parameters:
i_origin (tuple) –
- Return type:
None
- put_shadow_colour(i_shadow_colour: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub PutShadowColor(CATSafeArrayVariant iShadowColor)Sets the color of a shadow.The color is expressed with r, g, and b coefficients (between 0 and255)
- Parameters:
i_shadow_color (tuple) –
- Return type:
None
- put_target(i_target: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub PutTarget(CATSafeArrayVariant iTarget)Sets the coordinates of the target point of the light.These coordinates are set as an array of 3 Variants (double type).
- Parameters:
i_target (tuple) –
- Return type:
None
- property rectangle_light_length: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property RectangleLightLength() As doubleReturns or sets the light area length.
- Return type:
float
- property rectangle_light_width: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property RectangleLightWidth() As doubleReturns or sets the light area width.
- Return type:
float
- property shadow_fitting_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ShadowFittingMode() As shortReturns or sets the light shadow fitting mode.The shadow fitting mode can be:0: Standard1: Good
- Return type:
int
- property shadow_map_size: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ShadowMapSize() As shortReturns or sets the light shadow map size.The shadow map size can be:0: Small (512)1: Medium (1024)2: Large (2048)
- Return type:
int
- property shadow_object_status: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ShadowObjectStatus() As shortReturns or sets the light shadow status on objet.The shadow status can be:1: light casts shadows on objet0: light does not cast shadows on objetThe shadow status on object can be activate only with a spot light
- Return type:
int
- property shadow_status: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ShadowStatus() As shortReturns or sets the light shadow status.The shadow status can be:1: light casts shadows0: light does not cast shadows
- Return type:
int
- property specular: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Specular() As doubleReturns or sets the light specular intensity of a light.
- Return type:
float
- property sphere_light_radius: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property SphereLightRadius() As doubleReturns or sets the sphere light area radius.
- Return type:
float
- property type: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Type() As shortReturns or sets the light type.Possible light types are:1: Spot light2: Point light3: Directional light
- Return type:
int