DirectedObject

DirectedObject

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

継承

SIObject

ProjectItem

SceneItem

X3DObject

DirectedObject

導入

v1.0

詳細

Cameraまたは Light の注視点を表すオブジェクトです。DirectedObject は直接作成することはできず、Camera オブジェクトおよびLight オブジェクトの基本クラスとして機能します。

メソッド

Add2DChain Add3DChain AddAnnotation AddCamera
AddCameraRig AddChild AddControl AddCustomOp
AddCustomProperty AddFxTree AddGeometry AddICEAttribute
AddLattice AddLight AddLightRig AddMaterial
AddModel AddNull AddNurbsCurve AddNurbsCurveList
AddNurbsCurveList2 AddNurbsSurface AddNurbsSurfaceMesh AddNurbsSurfaceMesh2
AddPolygonMesh AddPrimitive AddProperty AddScriptedOp
AddScriptedOpFromFile AnimatedParameters2 ApplyEnvelope BelongsToオペレータ
EvaluateAt FindChild FindChild2 FindChildren
FindChildren2 GetActivePrimitive2 GetActivePrimitive3 GetBoundingBox
GetICEAttributeFromName GetLocalPropertyFromName GetLocalPropertyFromName2 GetModels2
GetPropertyFromName GetPropertyFromName2 GetStaticKinematicStateオペレータ HasStaticKinematicStateオペレータ
IsA IsAnimated2 IsClassOfオペレータ IsEqualToオペレータ
IsKindOf IsLockedオペレータ IsNodeAnimated IsSelectedオペレータ
LockOwners NodeAnimatedParameters RemoveChild RemoveFromParent
RemoveICEAttribute SetAsSelectedオペレータ SetCapabilityFlagオペレータ SetLock
SetMaterial ShapeAnimatedClusters TaggedParameters UnSetLock

プロパティ

ActivePrimitive Application BranchFlagオペレータ Capabilitiesオペレータ
Categories Children Envelopes EvaluationID
Familiesオペレータ FullNameオペレータ Help HierarchicalEvaluationID
ICEAttributes Interest Kinematics LocalProperties
LocalRotation LocalScaling LocalTranslation LockLevelオペレータ
LockMastersオペレータ LockTypeオペレータ Material Materials
Model Models Nameオペレータ NestedObjects
ObjectID Origin OriginPath Owners
PPGLayoutオペレータ Parametersオペレータ Parent Parent3DObject
Primitives Properties Selectedオペレータ Typeオペレータ

1. JScript の例

NewScene( null, false );

var oRoot = Application.ActiveProject.ActiveScene.Root;

var oSpot = oRoot.AddLight( "Spot", true ,"MySpotLight" );

var oInterest1 = oSpot.Interest;

Application.LogMessage( "original interest: " + oInterest1 );

var cone3DObj = oRoot.AddGeometry( "Cone", "MeshSurface" );

oSpot.Interest = cone3DObj;

var oInterest2 = oSpot.Interest;

Application.LogMessage( "new interest: " + oInterest2 );

// Expected results:

//INFO : original interest: SpotInterest

//INFO : new interest: cone

2. Python の例

app = Application

app.NewScene( "", 0 )

root = Application.ActiveProject.ActiveScene.Root

spot = root.AddLight( "Spot", True ,"MySpotLight" )

intrst1 = spot.Interest

app.LogMessage( "interest: " + intrst1.Name )

cone3DObj = root.AddGeometry( "Cone", "MeshSurface" )

spot.Interest = cone3DObj

intrst2 = spot.Interest

app.LogMessage( "new interest: " + intrst2.Name )

# Expected results:

#INFO : interest: SpotInterest

#INFO : new interest: cone

3. VBScript の例

NewScene , false

set oRoot = Application.ActiveProject.ActiveScene.Root

set oSpot = oRoot.AddLight( "Spot", True ,"MySpotLight" )

set oInterest = oSpot.Interest

Application.LogMessage "interest: " & oInterest

set cone3DObj = SIGetPrim("Cone").value("Value")

SIConvert "MeshSurface", cone3DObj

oSpot.Interest = cone3DObj

set oInterest = oSpot.Interest

Application.LogMessage "new interest: " & oInterest

' Expected results:

'INFO : interest: SpotInterest

'INFO : new interest: cone

関連項目

SpotLight Camera