Override.ParameterEntries

Description

Returns a ParameterCollection containing the Parameters that override another parameter via this override object.

Examples

Python Example

#
# This example demonstrates how to loop over override parameters
#
from win32com.client import constants as c
app = Application
log = app.LogMessage
app.NewScene(None, 0);
pointLight = app.GetPrimLight("Point.Preset", "Point")
# Create/fill the override 
override = pointLight.AddProperty("Override", 0, "PointOverride" );
posx = pointLight.Kinematics.Local.posx
posx.Value = 5.0
override.AddParameterEntry( posx )
softLightColor = pointLight.Shaders("soft_light").Color
softLightColor.Red = 0.5
softLightColor.Blue = 0.5
# Set override values
app.SetValue( override.posx.FullName, -4.0 )
app.SIApplyShaderToCnxPoint( "Shaders\\Texture\\Color_Channels\\RGBA_combine.Preset", override.AddParameterEntry( softLightColor ) )
for overriding in override.ParameterEntries:
        log("* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** ")
        log("Overriding : " + overriding.FullName );
        log("Overriding value: " + str(overriding.Value) )
        log("Overriding source: " + str(overriding.Source) )
        log("Overriding original value: " + str(overriding.OriginalValue) )
# Output
# INFO : * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** 
# INFO : Overriding : Point.PointOverride.posx
# INFO : Overriding value: -4.0
# INFO : Overriding source: None
# INFO : Overriding original value: 5.0
# INFO : * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** 
# INFO : Overriding : Point.PointOverride.light-soft_light-color
# INFO : Overriding value: light-soft_light-color
# INFO : Overriding source: Point.PointOverride.RGBA_combine
# INFO : Overriding original value: <win32com.gen_py.Softimage Object Model Library v1.5.Color instance at 0x479353992>