Autodesk Creative Platform Core Version 1.19.0
A broad and deep collection of 2D and 3D capabilities.

Plugin Overview

When a shape script runs, it is executed remotely in the Tinkercad cloud where it has access to the computing resources of a large cluster of server computers. When everything is going as expected, your script will only need to return the 3D solid it has generated. In error situations and for debugging purposes, you may need to send back some other data as well. These functions allow you to return data from your Creative Platform Library back to the app.

Introduced in Version: 1.0.0

Static Member Summary

Static Member Details

Plugin panic (str) | Chainable

Declare an unrecoverable error. Script execution is ended immediately, and the str string argument is returned to the editor. The result of the shape script will be in an error state. Unfinished results are not shown to the user. If your script has constructed a mesh, calling Plugin.panic() will discard it.
  • str: String - The panic string.

Plugin warning (str) | Chainable

Send the string str to the script editor as a warning. The script will continue to execute, but the warning will be printed in the editor and on the affected shape.
  • str: String - The warning string.