Special automation scripts .NEW .SAVE .DUPLICATE
Special automation scripts .NEW .SAVE .DUPLICATE
October 22, 2019
I want to share a small trick I have learned from this presentation.
It is an undocumented feature of Automation Scripts that will automatically launch a script based on a special naming convention.
For example if you want to run a script each time a ASSET object is saved you just have to create an automation script (without a Launch Point) and call it ASSET.SAVE.
There are just three events that can be used:
- .NEW
- .SAVE
- .DUPLICATE
As an example lets define the a script that sets a default description when an asset is duplicated.
Open the Automation Scripts application and select Create > Script from the action menu. Create the following script.
- Script: ASSET.DUPLICATE
- Description: Override description when duplication an asset
- Language: python
- Source Code:
dupmbo.setValue("DESCRIPTION", "New asset!!!")Thanks to Stephen Hume and Steven Cliff from BPD Zenith.