FormIt Plugin API  v23.0.0 (2023.0.0)
FormIt.Scenes API

Description

Functions

json FormIt.Scenes.SceneNameExists (sceneName)
 
json FormIt.Scenes.IsValidSceneName (oldSceneName, newSceneName)
 IsValidSceneName checks whether the name is valid for a scene. More...
 
json FormIt.Scenes.SetSceneName (oldSceneName, newSceneName)
 SetSceneName renames the given Scene. More...
 
json FormIt.Scenes.AddNewScene (afterSceneName)
 AddNewScene adds a new scene with an automatically generated scene name optionally after a given scene name. More...
 
json FormIt.Scenes.AddNewSceneToAnimation (animationName)
 AddNewSceneToAnimation adds a new scene with an automatically generated scene name to a given animation. More...
 
json FormIt.Scenes.GetScene (sceneName)
 GetScene gets the given Scene as JSON given a Scene name. More...
 
json FormIt.Scenes.GetScenes ()
 GetScenes gets all the Scenes as JSON objects. More...
 
json FormIt.Scenes.GetScenesSortedByAnimations ()
 GetScenes gets all the Scenes as JSON objects sorted by animations matching the scene widget. More...
 
json FormIt.Scenes.SetScenes (scenes)
 SetScenes sets all the Scenes. More...
 
json FormIt.Scenes.AddScene (scene, afterSceneName)
 AddScene adds a new scene given a Scene JSON object. More...
 
json FormIt.Scenes.RemoveScene (sceneName)
 RemoveScene removes the scene with the given name. More...
 
json FormIt.Scenes.DuplicateScene (sceneName)
 DuplicateScene duplicates the scene with the given name. More...
 
json FormIt.Scenes.GetSceneNames ()
 GetSceneNames gets all the Scene names. More...
 
json FormIt.Scenes.ScenesAreEqual (sceneName, scene)
 ScenesAreEqual returns true if Parameters: In: sceneName The name of an existing Scene. More...
 
json FormIt.Scenes.SetPresentationMode (start, sceneName)
 SetPresentationMode starts/stops presentation mode. More...
 
json FormIt.Scenes.IsPresenting ()
 IsPresenting returns true if in presentation mode. More...
 
json FormIt.Scenes.UpdateScene (sceneName)
 UpdateScene captures the Scene's properties that are enabled with the given name. More...
 
json FormIt.Scenes.GetPropertiesToCapture (sceneName)
 GetPropertiesToCapture returns the property flags used for determining what is captured. More...
 
json FormIt.Scenes.SetPropertiesToCapture (sceneName, properties)
 SetPropertiesToCapture sets the Scene property flags used for determining what is captured. More...
 
json FormIt.Scenes.ActivateScene (sceneName)
 ActivateScene activates the Scene with the given name. More...
 
json FormIt.Scenes.MoveSceneUp (sceneName)
 MoveSceneUp moves the given Scene up in the Scene list. More...
 
json FormIt.Scenes.MoveSceneDown (sceneName)
 MoveSceneDown moves the given Scene down in the Scene list. More...
 
json FormIt.Scenes.RearrangeScenes (oldPos, newPos)
 RearrangeScenes moves the given Scene at oldPos to newPos in the Scene list. More...
 
json FormIt.Scenes.GetNumberOfScenes ()
 GetNumberOfScenes returns the number of Scenes. More...
 
json FormIt.Scenes.GetNumberOfScenesWithAnimation (animationName)
 
json FormIt.Scenes.GetPauseTime (sceneName)
 GetPauseTime returns the time that the given Scene is paused during presentation mode. More...
 
json FormIt.Scenes.SetPauseTime (sceneName, pauseTime)
 SetPauseTime sets the time that the given Scene is paused during presentation mode. More...
 
json FormIt.Scenes.IsValidScenePauseTime (pauseTimeString)
 IsValidScenePauseTime checks whether string contains a valid pause time. More...
 
json FormIt.Scenes.IsValidSceneTransitionTime (transitionTimeString)
 IsValidSceneTransitionTime checks whether string contains a valid pause time. More...
 
json FormIt.Scenes.IsValidSceneCameraSpeed (speedString)
 IsValidSceneCameraSpeed checks whether string contains a valid pause time. More...
 
json FormIt.Scenes.GetTransitionTime (sceneName)
 GetTransitionTime returns the time that the given Scene takes to transition during presentation mode. More...
 
json FormIt.Scenes.SetTransitionTime (sceneName, transitionTime)
 SetTransitionTime sets the time that the given Scene takes to transition during presentation mode. More...
 
json FormIt.Scenes.GetCameraSpeed (sceneName)
 GetCameraSpeed returns the speed (mph) at which the camera moves during the transition to the next scene. More...
 
json FormIt.Scenes.SetCameraSpeed (sceneName, cameraSpeed)
 SetCameraSpeed sets the speed (mph) at which the camera moves during the transition to the next scene. More...
 
json FormIt.Scenes.GetIncludeInAnimation (sceneName)
 GetIncludeInAnimation returns whether the given scene is part of the animation. More...
 
json FormIt.Scenes.SetIncludeInAnimation (sceneName, bIncludeInAnimation)
 SetIncludeInAnimation sets whether the given scene is part of the animation. More...
 
json FormIt.Scenes.GetUseCameraSpeed (sceneName)
 GetUseCameraSpeed returns whether the given scene is using the transition time or camera speed during animation. More...
 
json FormIt.Scenes.SetUseCameraSpeed (sceneName, bUseCameraSpeed)
 SetUseCameraSpeed sets whether the given scene is part of the animation. More...
 
json FormIt.Scenes.GetTransitionTimeUsed (sceneName)
 GetTransitionTimeUsed returns the transition time for the scene that is actually used. More...
 
json FormIt.Scenes.SetEditCameras (bEditCameras, animationName, sceneName)
 SetEditCameras enters the camera editing mode. More...
 
json FormIt.Scenes.GetEditCameras ()
 GetEditCameras enters the camera editing mode. More...
 
json FormIt.Scenes.AddSceneAnimation ()
 Add a new scene animation. More...
 
json FormIt.Scenes.RemoveAnimation (animationName)
 Removes a scene animation. More...
 
json FormIt.Scenes.GetSceneAnimations ()
 Get all scene animations. More...
 
json FormIt.Scenes.GetSceneAnimation (animationName)
 Get the animation for the given name. More...
 
json FormIt.Scenes.GetSceneNamesFromAnimation (animationName)
 Get the scene names for the given animation. More...
 
json FormIt.Scenes.AddScenesToAnimation (animationName, sceneNames, sceneBeforeOrAfterName, insertAfter)
 Adds existing scenes to an animation. More...
 
json FormIt.Scenes.RearrangeAnimations (animationNames, animationBeforeOrAfterName, insertAfter)
 Rearrange the animations to be put before or after the given other animation. More...
 
json FormIt.Scenes.IsValidAnimationName (oldName, newName)
 IsValidAnimationName checks whether the name is valid for an animation Used to check if the oldName can be renamed to newName. More...
 
json FormIt.Scenes.SetAnimationName (oldName, newName)
 SetSceneName renames the given Scene. More...
 
json FormIt.Scenes.GetAnimationLoop (animationName)
 Get the loop option of an animation. More...
 
json FormIt.Scenes.SetAnimationLoop (animationName, loop)
 Set the loop option of an animation. More...
 
json FormIt.Scenes.GetAnimationCollapsed (animationName)
 Get the collpased status of an animation UI item. More...
 
json FormIt.Scenes.SetAnimationCollapsed (animationName, collapsed)
 Set the collpased status of an animation UI item. More...
 
json FormIt.Scenes.StartStopAnimation (start, animationName, fromScene)
 Start/stop a continuous loop scene animation. More...
 
json FormIt.Scenes.GetAnimationForScene (sceneName)
 Returns the parent animation for a scene. More...
 

Function Documentation

json FormIt.Scenes.ActivateScene ( sceneName  )

ActivateScene activates the Scene with the given name.

Parameters
[in]sceneNameString
Returns
Success
json FormIt.Scenes.AddNewScene ( afterSceneName  )

AddNewScene adds a new scene with an automatically generated scene name optionally after a given scene name.

Parameters
[in]afterSceneNameString (OPTIONAL)
Returns
{ Result, Name } Result key is a bool success flag and Name is the newly generated scene name.
json FormIt.Scenes.AddNewSceneToAnimation ( animationName  )

AddNewSceneToAnimation adds a new scene with an automatically generated scene name to a given animation.

If animation is not given or "", it is added to the default animation

Parameters
[in]animationNameString (OPTIONAL)
Returns
{ Result, Name } Result key is a bool success flag and Name is the newly generated scene name.
json FormIt.Scenes.AddScene ( scene  ,
afterSceneName   
)

AddScene adds a new scene given a Scene JSON object.

Parameters
[in]sceneScene JSON object (see GetScene)
[in]afterSceneNameString (OPTIONAL)
Returns
Success
json FormIt.Scenes.AddSceneAnimation ( )

Add a new scene animation.

Returns the new name of the animation

Returns
{ Result, Name } Result key is a bool success flag and Name is the newly generated animation name.
json FormIt.Scenes.AddScenesToAnimation ( animationName  ,
sceneNames  ,
sceneBeforeOrAfterName  ,
insertAfter   
)

Adds existing scenes to an animation.

Returns true if scenes and animation exist. The scenes are also removed from their previous animation, if they were part of one

Parameters
[in]animationNameString
[in]sceneNamesvector of scene names
[in]sceneBeforeOrAfterNamename of an existing scene in the given animation before or after which to insert the given scenes
[in]insertAftertrue if inserting after sceneBeforeOrAfterName, false if inserting before
Returns
success
json FormIt.Scenes.DuplicateScene ( sceneName  )

DuplicateScene duplicates the scene with the given name.

Parameters
[in]sceneNameString
Returns
{ Result, Name } Result key is a bool success flag and Name is the newly generated scene name.
json FormIt.Scenes.GetAnimationCollapsed ( animationName  )

Get the collpased status of an animation UI item.

Parameters
[in]animationNameString
Returns
bool true/false
json FormIt.Scenes.GetAnimationForScene ( sceneName  )

Returns the parent animation for a scene.

Returns "" if not found

Parameters
[in]sceneNameString
Returns
string animation name
json FormIt.Scenes.GetAnimationLoop ( animationName  )

Get the loop option of an animation.

Parameters
[in]animationNameString
Returns
bool true/false
json FormIt.Scenes.GetCameraSpeed ( sceneName  )

GetCameraSpeed returns the speed (mph) at which the camera moves during the transition to the next scene.

Parameters
[in]sceneNameString
Returns
Returns the camera speed
json FormIt.Scenes.GetEditCameras ( )

GetEditCameras enters the camera editing mode.

Returns
Returns true if in camera editing mode
json FormIt.Scenes.GetIncludeInAnimation ( sceneName  )

GetIncludeInAnimation returns whether the given scene is part of the animation.

Parameters
[in]sceneNameString
Returns
bool Included in animation
json FormIt.Scenes.GetNumberOfScenes ( )

GetNumberOfScenes returns the number of Scenes.

Returns
The number of Scenes
json FormIt.Scenes.GetNumberOfScenesWithAnimation ( animationName  )
json FormIt.Scenes.GetPauseTime ( sceneName  )

GetPauseTime returns the time that the given Scene is paused during presentation mode.

Parameters
[in]sceneNameString
Returns
pause time
json FormIt.Scenes.GetPropertiesToCapture ( sceneName  )

GetPropertiesToCapture returns the property flags used for determining what is captured.

Parameters
[in]sceneNameString
Returns
{ Result: bool, Properties: Properties Object } Result- Success Properties- List of properties with true/false flags.
json FormIt.Scenes.GetScene ( sceneName  )

GetScene gets the given Scene as JSON given a Scene name.

Parameters
[in]sceneNameString
Returns
{ Result, Scene } Result key is a bool success flag and Scene is the Scene JSON object.
json FormIt.Scenes.GetSceneAnimation ( animationName  )

Get the animation for the given name.

Parameters
[in]animationNameString
Returns
{ Result, Animation } Result key is a bool success flag and Animation is the Animation JSON object.
json FormIt.Scenes.GetSceneAnimations ( )

Get all scene animations.

Returns
Array of SceneAnimation JSON objects
json FormIt.Scenes.GetSceneNames ( )

GetSceneNames gets all the Scene names.

Returns
Array of Scene names
json FormIt.Scenes.GetSceneNamesFromAnimation ( animationName  )

Get the scene names for the given animation.

Parameters
[in]animationNameString
Returns
vector of scene names
json FormIt.Scenes.GetScenes ( )

GetScenes gets all the Scenes as JSON objects.

Returns
Array of Scene JSON objects
json FormIt.Scenes.GetScenesSortedByAnimations ( )

GetScenes gets all the Scenes as JSON objects sorted by animations matching the scene widget.

Returns
Array of Scene JSON objects
json FormIt.Scenes.GetTransitionTime ( sceneName  )

GetTransitionTime returns the time that the given Scene takes to transition during presentation mode.

Parameters
[in]sceneNameString
Returns
Transition time
json FormIt.Scenes.GetTransitionTimeUsed ( sceneName  )

GetTransitionTimeUsed returns the transition time for the scene that is actually used.

If the scene uses the "Use Camera Speed" option, the time is computed from the distance and the mph parameter. Otherwise the basic transition time is returned.

Parameters
[in]sceneNameString
Returns
Transition time used
json FormIt.Scenes.GetUseCameraSpeed ( sceneName  )

GetUseCameraSpeed returns whether the given scene is using the transition time or camera speed during animation.

Parameters
[in]sceneNameString
Returns
bool Use camera speed
json FormIt.Scenes.IsPresenting ( )

IsPresenting returns true if in presentation mode.

Returns
Returns true if presenting.
json FormIt.Scenes.IsValidAnimationName ( oldName  ,
newName   
)

IsValidAnimationName checks whether the name is valid for an animation Used to check if the oldName can be renamed to newName.

Parameters
[in]oldNameString
[in]newNameString
Returns
{ Result, Error } Result is true if it's a valid animation name and false if not valid along with an Error message.
json FormIt.Scenes.IsValidSceneCameraSpeed ( speedString  )

IsValidSceneCameraSpeed checks whether string contains a valid pause time.

Parameters
[in]transitionTimeStringSpeed Time String
[in]speedStringString
Returns
{ Result (bool), Value (double), Error (I18nString) }
json FormIt.Scenes.IsValidSceneName ( oldSceneName  ,
newSceneName   
)

IsValidSceneName checks whether the name is valid for a scene.

Used to check if the oldSceneName can be renamed to newSceneName.

Parameters
[in]oldSceneNameString
[in]newSceneNameString
Returns
{ Result, Error } Result is true if it's a valid Scene name and false if not valid along with an Error message.
json FormIt.Scenes.IsValidScenePauseTime ( pauseTimeString  )

IsValidScenePauseTime checks whether string contains a valid pause time.

Parameters
[in]pauseTimePause Time String
[in]pauseTimeStringString
Returns
{ Result (bool), Value (double), Error (I18nString) }
json FormIt.Scenes.IsValidSceneTransitionTime ( transitionTimeString  )

IsValidSceneTransitionTime checks whether string contains a valid pause time.

Parameters
[in]transitionTimeStringTransition Time String
Returns
{ Result (bool), Value (double), Error (I18nString) }
json FormIt.Scenes.MoveSceneDown ( sceneName  )

MoveSceneDown moves the given Scene down in the Scene list.

Parameters
[in]sceneNameString
Returns
Success
json FormIt.Scenes.MoveSceneUp ( sceneName  )

MoveSceneUp moves the given Scene up in the Scene list.

Parameters
[in]sceneNameString
Returns
Success
json FormIt.Scenes.RearrangeAnimations ( animationNames  ,
animationBeforeOrAfterName  ,
insertAfter   
)

Rearrange the animations to be put before or after the given other animation.

If the other animation is "", the animations are placed at the end

Parameters
[in]animationNamesvector of animation names
[in]animationBeforeOrAfterNamename of an existing animation before or after which to insert the given animations
[in]insertAftertrue if inserting after animationBeforeOrAfterName, false if inserting before
Returns
JSON_UNDEFINED
json FormIt.Scenes.RearrangeScenes ( oldPos  ,
newPos   
)

RearrangeScenes moves the given Scene at oldPos to newPos in the Scene list.

Parameters
[in]oldPosint
[in]newPosint
Returns
Success
json FormIt.Scenes.RemoveAnimation ( animationName  )

Removes a scene animation.

Parameters
[in]animationNameString
Returns
bool Success
json FormIt.Scenes.RemoveScene ( sceneName  )

RemoveScene removes the scene with the given name.

Parameters
[in]sceneNameString
Returns
bool Success
json FormIt.Scenes.SceneNameExists ( sceneName  )
json FormIt.Scenes.ScenesAreEqual ( sceneName  ,
scene   
)

ScenesAreEqual returns true if Parameters: In: sceneName The name of an existing Scene.

scene JSON Out: bool

Parameters
[in]sceneNameString
[in]sceneFormIt.Scene
Returns
false
json FormIt.Scenes.SetAnimationCollapsed ( animationName  ,
collapsed   
)

Set the collpased status of an animation UI item.

Parameters
[in]animationNameString
[in]collapsedbool
Returns
JSON_UNDEFINED
json FormIt.Scenes.SetAnimationLoop ( animationName  ,
loop   
)

Set the loop option of an animation.

Parameters
[in]animationNameString
[in]loopbool
Returns
JSON_UNDEFINED
json FormIt.Scenes.SetAnimationName ( oldName  ,
newName   
)

SetSceneName renames the given Scene.

Parameters
[in]oldNameString
[in]newNameString
Returns
bool Success
json FormIt.Scenes.SetCameraSpeed ( sceneName  ,
cameraSpeed   
)

SetCameraSpeed sets the speed (mph) at which the camera moves during the transition to the next scene.

Parameters
[in]sceneNameString
[in]cameraSpeeddouble
Returns
Success
json FormIt.Scenes.SetEditCameras ( bEditCameras  ,
animationName  ,
sceneName   
)

SetEditCameras enters the camera editing mode.

Parameters
[in]bEditCamerasbool
[in]animationNameString
[in]sceneNameString
Returns
JSON_UNDEFINED
json FormIt.Scenes.SetIncludeInAnimation ( sceneName  ,
bIncludeInAnimation   
)

SetIncludeInAnimation sets whether the given scene is part of the animation.

Parameters
[in]sceneNameString
[in]bIncludeInAnimationbool
Returns
Success
json FormIt.Scenes.SetPauseTime ( sceneName  ,
pauseTime   
)

SetPauseTime sets the time that the given Scene is paused during presentation mode.

Parameters
[in]sceneNameString
[in]pauseTimedouble
Returns
Success
json FormIt.Scenes.SetPresentationMode ( start  ,
sceneName   
)

SetPresentationMode starts/stops presentation mode.

Parameters
[in]startstart/stop (true/false) presentation mode
[in]sceneNameThe name of an existing Scene to start playing from
Returns
JSON_UNDEFINED
json FormIt.Scenes.SetPropertiesToCapture ( sceneName  ,
properties   
)

SetPropertiesToCapture sets the Scene property flags used for determining what is captured.

Parameters
[in]sceneNameString
[in]propertiesFormIt.SceneCaptureFlags
Returns
Success
json FormIt.Scenes.SetSceneName ( oldSceneName  ,
newSceneName   
)

SetSceneName renames the given Scene.

Parameters
[in]oldSceneNameString
[in]newSceneNameString
Returns
bool Success
json FormIt.Scenes.SetScenes ( scenes  )

SetScenes sets all the Scenes.

Parameters
[in]scenesArray of Scene JSON objects (see GetScenes)
Returns
JSON_UNDEFINED
json FormIt.Scenes.SetTransitionTime ( sceneName  ,
transitionTime   
)

SetTransitionTime sets the time that the given Scene takes to transition during presentation mode.

Parameters
[in]sceneNameString
[in]transitionTimedouble
Returns
Success
json FormIt.Scenes.SetUseCameraSpeed ( sceneName  ,
bUseCameraSpeed   
)

SetUseCameraSpeed sets whether the given scene is part of the animation.

Parameters
[in]sceneNameString
[in]bUseCameraSpeedbool
Returns
Success
json FormIt.Scenes.StartStopAnimation ( start  ,
animationName  ,
fromScene   
)

Start/stop a continuous loop scene animation.

If the fromScene name is valid, the animation starts at that scene.

Parameters
[in]startbool. True to start, false to stop the playback
[in]animationNameString
[in]fromSceneString
Returns
JSON_UNDEFINED
json FormIt.Scenes.UpdateScene ( sceneName  )

UpdateScene captures the Scene's properties that are enabled with the given name.

See GetPropertiesToCapture.

Parameters
[in]sceneNameString
Returns
Success