User Tools

Site Tools


cameras

The Cameras (WIP) pane can be accessed by including an instruction of the cameras type.

Properties

An instruction of the cameras type can be used to cause the Interactive Lesson Manager to guide the user, step by step, to a property via the Editor page.

This type of instruction operates on the currently selected node; see Selecting Nodes.

Click the name of the example below to save it as a file.

Interactive_Lesson_Cameras_Properties_Example_1.dsa
var oLessonMgr = MainWindow.getInteractiveLessonMgr();
oLessonMgr.begin([
	{
	"cameras": "/Camera/Focal Length (mm)",
	"value": 85,
	"info": "Adjust the focal length of the camera to 85 mm. To set 85 exactly, you will want to click the value of the slider, enter 85 into the text field and then press enter."
	}
]);

Content

An instruction of the cameras type can be used to cause the Interactive Lesson Manager to guide the user, step by step, to a user-facing file to load via the Presets page. This is accomplished by prepending “/Preset” to the query value.

The query value can be the short name of a file, or the full category path of a file. Using the short name of a file will guide the user to the first instance [within the database] in the category hierarchy. Using the full category path of a file will prefer the specified category if it exists.

Including an asset_path_member member in the instruction will help the Interactive Lesson Manager resolve the file being referenced in the event that the category path is not specified, or if the specified category path does not exist. The value of this member should consist of the relative [to a mapped content directory] path to the target file.

Click the name of the example below to save it as a file.

Interactive_Lesson_Cameras_Content_Example_1.dsa
var oLessonMgr = MainWindow.getInteractiveLessonMgr();
oLessonMgr.begin([
	{
	"cameras": "/Presets/Full Body Camera Depth of Field.duf",
	"asset_path": "/Scene Builder/Starter Essentials/Full Body Camera Depth of Field.duf",
	"info": "Load the Full Body Camera Depth of Field preset."
	}
]);