Override.RemoveAllEntries

導入

v 7.0

詳細

このオーバーライドからすべてのエントリを削除します。

スクリプト 構文

Override.RemoveAllEntries();

Python の例

#
# 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

関連項目

Override.RemoveParameterEntry