v7.0
Removes all entries from this override.
Override.RemoveAllEntries(); |
# # This example demonstrates how to remove all entries from an override property # 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" ); override.AddParameterEntry( pointLight.Kinematics.Local.posx ) softLightColor = pointLight.Shaders("soft_light").Color app.SIApplyShaderToCnxPoint( "Shaders\\Texture\\Color_Channels\\RGBA_combine.Preset", override.AddParameterEntry( softLightColor ) ) log( "override.ParameterEntries.Count: " + str(override.ParameterEntries.Count) ); override.RemoveAllEntries( ); log( "override.ParameterEntries.Count: " + str(override.ParameterEntries.Count) ); # Output # INFO : override.ParameterEntries.Count: 2 # INFO : override.ParameterEntries.Count: 0 |