JavaScript Shape
Pro Feature
Pro features are only available with a Professional licence. To upgrade, visit cavalry.scenegroup.co.
Intro
The JavaScript Shape is a Shape that can defined via a JavaScript expression.
For more information on how JavaScript can be used across all JavaScript Layers see JavaScript Layers.
See JavaScript Layers→info
See Create > Demo Scenes > JavaScript > Heart Path for an example.
UI
- Shape
- JavaScript
Enter the JavaScript expression to create the Shape. A mesh can be defined in Scripting using the Path Class.
info
An equivalent to a JavaScript Shape can also be created by connecting a JavaScript Utility to the Input Shape of a Custom Shape.
Copying Shapes
Right clicking on a Shape in the Viewport and choosing Copy as JavaScript
will copy the Shape's information to the clipboard as JavaScript code.