View.MemoCameras

View.MemoCameras

導入

v10.5 (2012)

詳細

MemoCamera オブジェクトのコレクションを MemoCameraCollection オブジェクトのビューに戻します。

C#構文

// get accessor

MemoCameraCollection rtn = View.MemoCameras;

Python の例

#

# Script to demonstrate how to record the 4 memo cameras in the perspective view

#

# Get the View Manager views

views = Application.Desktop.ActiveLayout.Views("vm").views

# Get view B (perspective)

viewB = views[1]

# Get memocams for view B

memoCameras = viewB.MemoCameras

Application.LogMessage( "view nb memocams: " + str(memoCameras.Count) )

# Record 4 memo cameras in view B

for index, memoCamera in enumerate(memoCameras):

	if index == 0:

		Application.SetValue("Camera.kine.global.posx", -10, "")

		Application.SetValue("Camera.kine.global.posy", 2, "")

		Application.SetValue("Camera.kine.global.posz", 20, "")

	elif index == 1:

		Application.SetValue("Camera.kine.global.posx", 0, "")

	elif index == 2:

		Application.SetValue("Camera.kine.global.posx", 10, "")

	elif index == 3:

		Application.SetValue("Camera.kine.global.posx", 0, "")

		Application.SetValue("Camera.kine.global.posy", -2, "")

	memoCamera.Record()

関連項目

MemoCamera MemoCameraCollection