1.5.1 Release Notes
Release date: 2nd February 2023
New Features
Shapes
- Guide Layers - Set Shapes so that they are visible in the Viewport but invisible in file renders and/or pre-comps.
Filters
- Mirror Filter - Reverse a Shape along a centre line to create a reflection.
Scripting
API Module
- deletehas been renamed to- deleteLayer. ⚠️ This is a breaking change.
- deserialisehas been updated to accept a json string rather than a filepath. ⚠️ This is a breaking change.
- importScene- import a .cv or .cvc file.
- runProcesshas been updated. ⚠️ This is a breaking change - legacy scripts will error if they were using the result.
- hasAttribute- check to see if an Attribute exists on a Layer.
- Proxy Server - use proxies when connecting via the Web Client.
- New setProxy
- New setProxyBasicAuthentication
- New setProxyBearerAuthentication
 
- New 
- existshas been renamed to- layerExists-- existsremains for backwards compatibility but will no longer appear in the auto-complete.
- writeToFilehas a new 'overwrite' argument.
- New invertSelection- invert the current selection.
- importGoogleSheetnow returns errors for invalid Sheet/SpreadsheetIds.
- New addGuide,deleteGuide,clearGuidesandgetGuidesAPIs for working with Ruler Guides.
Cavalry Module
- New Path.arcTo()- draw an arc given two points and a radius.
- New Path.back()- set the last point in a path.
- rgbToHexand- rgbToHSVnow have a new scaled argument to determine whether RGB values are input as 0..1 or 0..255.
UI Module
- New Draw Widget - Draw custom shapes via Cavalry Path.
- New ScrollView Widget - Control where scroll bars go in as Script's Window.
- New Container Widget - Use these to give a Layout a background colour with rounded corners.
- addcan now take multiple arguments at once (e.g- layout.add(first, second, third))
- New onValueCommittedandonValueChangedcallback functions for LineEdit and FilePath.
- New setTextColorfor LineEdit and MultiLineEdit.
- New ui.setFixedSize- Set a fixed size for a Window.
- New ui.setMinimumWidth- Set a minimum width for a Window.
- New ui.setMinimumHeight- Set a minimum height for a Window.
- New ui.setMaximumWidth- Set a maximum width for a Window.
- New ui.setMaximumHeight- Set a maximum height for a Window.
- New ui.setFixedWidth- Set a fixed width for a Window.
- New ui.setFixedHeight- Set a fixed height for a Window.
- New ui.setToolbar- Set a Window to behave like a Toolbar.
- New ui.setVerticalToolbar- Set a horizontal (default) Toolbar Window to a vertical Toolbar.
- New clear()for HLayout, VLayout and DropDown.
- New previousPage- A function on PageView which will return the last page visited.
- New itemCount()forVLayoutandHLayout- Return the number of Widgets in a Layout.
- New insertSeparatorhas been added for DropDown.
- ui.resizehas been removed as it was not a valid action for dockable windows. ⚠️ This is a breaking change.
Context Module
- niceName- Get the nice name of the Layer that requested a value from the JavaScript Utility.
Enhancements
- Dropdowns now auto-preview meaning that the result is interactively reflected in the Viewport before a choice is committed.
- The Text Shape now has a Font Scale attribute under the Advanced tab. This can be used to pass the scaling applied by Shrink to Fit Text Box from one Text Shape to another.
- Shift can now also be used to add/remove to/from selections in the Viewport.
- The Shelf icons can now overflow when the Shelf's width reduces.
Notable Bug Fixes
- Convex Hull is working again.
- Shift + select keyframes in the Time Editor has been restored.