A new project in Patchwork starts with an import, and some data preparation on the imported model. Some of these data preparation operations are always the same, and are very repetitive!
Why not automate it ??
With the Python API available in Patchwork 3D, automating some of these operations is now possible.
In Patchwork 2022, a default implementation of optional automation is available. Just check the Post Import Options check box in the import dialog.
A new dialog opens at the end of the import operation :
You can prepare lighting by computing a default sky lighting or activating the SSAO.
You can also choose to prepare your environment by creating a plane with a Matte material assigned in Matter, or by creating a dome with an environment material in Matter.
These options could evolve in future versions.
This window could also be customized for your own needs and processes :
- Do you have the same standard camera hierarchy in all your databases? it can be generated
- You have the same standard organization for aspect layers / configuration / material groups / […] in all your databases. It is also possible to generate it
- Materials could be assigned automatically to geometries using some naming conventions
- A lot of other automation is possible…
And you: what would you need to automate in your import process? Please tell us what you think about this.