macros:example:deleteworkspace
Table of Contents
Example
Delete Workspace X
by: | Sebastian Beutel |
---|---|
published: | June 2018 |
description: | deletes a designated workspace |
functions
affected properties
Code
- DeleteWorkspace.xml
<?xml version="1.0" encoding="utf-8"?> <avolites.macros xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Avolites.Menus.xsd"> <macro id="UserMacro.sb_delWs2"> <name>sb delete ws 2</name> <sequence> <step pause="0.001">ActionScript.SetProperty.Boolean("Handles.AllowEditWorkspaces", true)</step> <step pause="0.001">Handles.SetSourceHandle("Workspaces", 2)</step> <step pause="0.001">Handles.ConfirmDelete()</step> <step pause="0.001">ActionScript.SetProperty.Boolean("Handles.AllowEditWorkspaces", false)</step> </sequence> </macro> </avolites.macros>
Explanation
This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax
ActionScript.SetProperty.Boolean(“Handles.AllowEditWorkspaces”, true)
unlocks the workspaces to be edited/deletedHandles.SetSourceHandle(“Workspaces”, 2)
marks the workspace #3 as sourHandle for the next operationHandles.ConfirmDelete()
deletes the previously selected handle (the workspace #3)ActionScript.SetProperty.Boolean(“Handles.AllowEditWorkspaces”, false)
locks the workspaces from being edited/deleted
How to use it
- while it may be interesting to delete a workspace by individual macro, a good use case is shown in Create Workspaces
macros/example/deleteworkspace.txt · Last modified: 2018/08/26 11:19 by 127.0.0.1
Discussion
How to delete 3rd slot of Playbackwindow (Got hint from Delete Workspace X)