From fcda9226c39ea7752abb74d40f9e20fa79e88848 Mon Sep 17 00:00:00 2001 From: Helge Norberg Date: Fri, 10 Feb 2017 19:11:04 +0100 Subject: [PATCH] [scene] More documentation with auto completion for example values/expressions. --- core/producer/scene/scene.xsd | 247 ++++++++++++++++++++++++++++++---- 1 file changed, 222 insertions(+), 25 deletions(-) diff --git a/core/producer/scene/scene.xsd b/core/producer/scene/scene.xsd index 7e9a22974..ea0f78151 100644 --- a/core/producer/scene/scene.xsd +++ b/core/producer/scene/scene.xsd @@ -1,4 +1,4 @@ - + @@ -32,9 +32,9 @@ Must be parseable/resolved as the type specified. - - The variable type. The value/expression of the variable must be parseable/resolvable as/to this type. + The unique variable name. Will be exposed as [id] if the variable is public or variable.[id] otherwise. + The variable type. The value/expression of the variable must be parseable/resolvable as/to this type. Whether the variable should be accessible from outside the scene or not. Public variables can be accessed via CG UPDATE, CG ADD and as layer.[layerid].parameter.[id] when nested inside another scene. @@ -60,7 +60,7 @@ - The same syntax as in AMCP after for example PLAY 1-10. Cannot be an expression. + The same syntax as in AMCP after for example PLAY 1-10. Cannot be an expression. Hides the layer if true. Can be an expression. The X coordinate of the layer in the scene coordinate system. Can be an expression. The Y coordinate of the layer in the scene coordinate system. Can be an expression. @@ -95,7 +95,7 @@ If true causes the layer to key the layer above. Can be an expression. Whether to enable mipmapping on the layer or not. Can be an expression. - The blend mode to use. Can be an expression. + The blend mode to use. Can be an expression. @@ -176,17 +176,55 @@ + + + Each variable/layer property may be manipulated by a timeline to animate the value based on keyframes. + The timelines are collectively moved forward in time based on the marks section and the CG command interaction from the outside. + + - + + + A timeline manipulates only one variable/layer property. + The position on the timeline at any given time is globally controlled via the marks of the scene, so all timelines are always at the same frame as each other. + If the variable/layer property is already bound to an expression it will be overridden by the timeline. + Currently only number variables/layer properties are supported on timelines. + + + + + + + + Each keyframe specifies a value that the variable should have at a specific timeline frame. + The value can be either immediately changed if no easing is specified, otherwise it is animated to the value with the given easing curve. + + + + + + The frame to place the keyframe at. + If omitted there will be no animation but an immediate value change instead. + + + + + + The variable/layer property to manipulate. If it already has an expression the expression will be overridden. + + + + + - - + + @@ -203,6 +241,18 @@ + + + + + + + + + + + + @@ -210,42 +260,144 @@ + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - + + + + + + + + + - - - - - + + + + + + + + + - + + + + + + + + + + + + + + + + @@ -255,4 +407,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.39.2