MemoCamera

Object Hierarchy

Inheritance

SIObject

UIObject

MemoCamera

Introduced

v10.5 (2012)

Description

MemoCamera represents a memo camera control in a view. The following views have memo camera controls:

- Top, Right, Front, User and Camera views in the View Manager

- Ice Tree

- Object View

- Schematic

- Render Tree

Methods

IsClassOf operator IsEqualTo operator Recall Record
Reset      
       

Properties

Application Categories FullName operator Help
Name operator NestedObjects Origin OriginPath
Parent Type operator    
       

Examples

1. Python Example

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

2. Python Example

#
# Script to demonstrate how to recall the 2nd memo camera in the perspective view
#
# Get the View Manager views
views = Application.Desktop.ActiveLayout.Views("vm").views
# Get view B (perspective)
viewB = views[1]
# Recall the 2nd memocam
viewB.MemoCameras[1].Recall()

3. Python Example

#
# Script to demonstrate how to reset the 3rd memo camera in the perspective view
#
# Get the View Manager views
views = Application.Desktop.ActiveLayout.Views("vm").views
# Get view B (perspective)
viewB = views[1]
# Recall the 3rd memocam
viewB.MemoCameras[2].Reset()

See Also

MemoCameraCollection View.MemoCameras