Forums Technical subjects Patchwork 3D R&D and Roadmap Patchwork 3D 2022 release 2 – Scripting API improvements Reply To: Patchwork 3D 2022 release 2 – Scripting API improvements

Author Reply

Romaric BOUNY


Here is an example of how to create animations using Python API

You just need to create manually a box and a plane, then execute the script
And here is an overview of the result


What is automated is this script ?

This Script :

  • Creates a Matter product and assign a default material to each surface
  • Builds kinematics hierarchy, and put the box into it
  • Creates a timeline
  • Adds an advanced channel animation clip to animate the box position on the floor
  • Adds a simple channel animation clip to rotate the box
  • Adds a Bézier curve camera animation clip to turn the camera around the box
  • Adds a Bookmark animator animation clip to zoom the camera on the box


Just download the script and execute it in Patchwork 3D 2022 release 2, then you can edit it to adapt it to your needs

  • This reply was modified 4 months, 4 weeks ago by webmaster.