Next: 9. Mapping graphic space
Up: INScore OSC Messages Reference
Previous: 7.5 The 'stats' and
Contents
Index
8. Scene messages
A scene may be viewed as a window on the score elements. Its address is /ITL/sceneIdentifier where sceneIdentifier is the scene name. It handles the following messages:
- new: creates a new scene and opens it in a new window.
- del: deletes a scene and closes the corresponding window.
- reset: clears the scene (i.e. delete all components) and resets the scene to its default state (position, size and color).
- rootPath: rootPath of a scene is the default path where the scene reads or writes a file when a relative path is used for this file. When no value has been specified, the application rootPath is used.
- load: loads an INScore file to the scene. Note that the OSC addresses are translated to the scene OSC address.
- fullscreen: requests the scene to switch to full screen or normal screen. The parameter is interpreted as a boolean value. Default value is 0.
- frameless: requests the scene to switch to frameless or normal window. The parameter is interpreted as a boolean value. Default value is 0.
- absolutexy: requests the scene to absolute or relative coordinates. Absolute coordinates are in pixels relative to the top left corner of the screen. Relative coordinates are in the range [-1, 1] where [0,0] is the center of the screen. The message parameter is interpreted as a boolean value. Default value is 0.
- commonMsg: a scene support the common graphic attributes. See section 2 p.
.
EXAMPLE
Setting a scene current path:
|
/ITL/scene rootPath "/path/to/my/folder"
|
Loading an INScore file:
|
/ITL/scene load "myscript.inscore"
|
will load /path/to/my/folder/myscript.inscore into the scene.
Setting a scene to fullscreen:
Creating a new score named myScore:
Next: 9. Mapping graphic space
Up: INScore OSC Messages Reference
Previous: 7.5 The 'stats' and
Contents
Index
Grame - INScore project