User Tools

Site Tools


macros:example:deleteworkspace

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/deleted
  • Handles.SetSourceHandle(“Workspaces”, 2) marks the workspace #3 as sourHandle for the next operation
  • Handles.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

Discussion

kimwida, 2018/06/12 13:05

How to delete 3rd slot of Playbackwindow (Got hint from Delete Workspace X)

  <step pause="0.001">Handles.SetSourceHandle("PlaybackWindow", 2)</step>
  <step pause="0.001">Handles.ConfirmDelete()</step>
You could leave a comment if you were logged in.
macros/example/deleteworkspace.txt · Last modified: 2018/08/26 11:19 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki