Override

Object Hierarchy | 関連する C++クラス:Override

継承

SIObject

ProjectItem

Property

オーバーライド

導入

v7.0

詳細

このオブジェクトは、オーバーライド プロパティを表します。オーバーライドには、元のオブジェクトパラメータを削除することなく別の値やシェーダでオブジェクトのパラメータを置き換えるときに使用されるパラメータが含まれます。

別のパラメータの値で置き換えられた値を持つパラメータは「オーバーライドされたパラメータ」と呼ばれ、オーバーライドされたパラメータを上書きするのに使用される値を持つオーバーライドプロパティに格納されたパラメータは「オーバーライドパラメータ」と呼ばれます。

オーバーライドプロパティは、SceneItem.AddPropertyメソッド、またはSIAddPropAddPropコマンドのいずれかを使用して作成されます。

詳細については、Softimage ユーザ ガイドを参照してください。

メソッド

AddCustomOp AddICEAttribute AddParameterEntry AddParameterEntry2
AddScriptedOp AddScriptedOpFromFile AnimatedParameters2 BelongsToオペレータ
EvaluateAt GetAllShaders GetICEAttributeFromName IsA
IsAnimated2 IsClassOfオペレータ IsEqualToオペレータ IsKindOf
IsLockedオペレータ IsSelectedオペレータ LockOwners RemoveAllEntries
RemoveICEAttribute RemoveParameterEntry SetAsSelectedオペレータ SetCapabilityFlagオペレータ
SetLock TaggedParameters UnSetLock  
       

プロパティ

AllImageClips Application Branchオペレータ BranchFlagオペレータ
Capabilitiesオペレータ Categories EvaluationID Familiesオペレータ
FullNameオペレータ Help HierarchicalEvaluationID ICEAttributes
LockLevelオペレータ LockMastersオペレータ LockTypeオペレータ Model
Nameオペレータ NestedObjects ObjectID Origin
OriginPath Owners PPGLayoutオペレータ ParameterEntries
Parametersオペレータ Parent Parent3DObject Selectedオペレータ
Singletonオペレータ Typeオペレータ    
       

Python の例

#

# This example demonstrates how to create and access override parameters

#

from win32com.client import constants as c

app = Application

log = app.LogMessage

# Set up Point light 

app.NewScene(None, 0)

pointLight = app.GetPrimLight("Point.Preset", "Point")

softLightColor = pointLight.Shaders("soft_light").Color

softLightColor.Red = 0.5

softLightColor.Blue = 0.5

# Create the override 

pointLight.AddProperty("Override", 0, "PointOverride")

# Get the override from its owner object

override = pointLight.Properties("PointOverride")

# Add a posx parameter to the override and set an override value

posx = pointLight.Kinematics.Local.posx

posx.Value = 5.0

override.AddParameterEntry2(posx)

app.SetValue(override.posx.FullName, -4.0)

# Add a soft_light color parameter to the override and use a 

# shader as the overriding object

app.SIApplyShaderToCnxPoint( 

	"Shaders\\Texture\\Color_Channels\\RGBA_combine.Preset", 

	override.AddParameterEntry2(softLightColor) 

)

# Get the posx parameter from the override and use it 

# to find the parameter it's overriding

overridingPosx = override.ParameterEntries("posx")

overridenPosx = overridingPosx.OverridenObject

log("* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** ")

log("Overriding posx: " + overridingPosx.FullName)

log("Overriding posx value: " + str(overridingPosx.Value))

log("Overriding posx original value: " + str(overridingPosx.OriginalValue))

log("* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** ")

log("Overriden posx: " + overridenPosx.FullName)

log("Overriden posx value: " + str(overridenPosx.Value))

log("Overriden posx original value: " + str(overridenPosx.OriginalValue))

# INFO : * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** 

# INFO : Overriding posx: Point.PointOverride.posx

# INFO : Overriding posx value: -4.0

# INFO : Overriding posx original value: 5.0

# INFO : * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** 

# INFO : Overriden posx: Point.kine.local.posx

# INFO : Overriden posx value: -4.0

# INFO : Overriden posx original value: 5.0

関連項目

Parameter.OverridenObject Parameter.OverridingObject Parameter.OriginalValue SceneItem.Properties