The "FusionCompEvents.fu" config file saves out a log file that tracks every single Fusion composite new/open/close/save event. This is done with a new .fu file based Event{} entry that intercepts the native action by appending our own custom Lua code. The Event.log file is written to your Fusion user prefs folder using the PathMap location of "UserData:/Event.log".
The key part of this event example is the line:
rets = self:Default(ctx, args)
If you place your own custom code above that line in the Event{} block, Fusion will run your Lua command just before it carries out the action. If you place your own custom code after the that line in the Event{} block, Fusion will run your Lua commands just after the action occurs.
Choosing the Right Event Targets Setting
For events that happen before a composition object exists in memory the Event "Targets" setting needs to be "Fusion":
Code: Select all
Event {
Action = "Comp_New",
Targets = {
Fusion = {
Execute = ""
},
},
},
For events that happen when an individual composition is open and you want to monitor things that are occurring *inside* that specific comp, the Event "Targets" setting needs to be "Composition":
Code: Select all
Event {
Action = "Comp_Close",
Targets = {
Composition = {
Execute = ""
},
},
},
Download
FusionCompEvents.fu
Example Event.log Output
Code: Select all
[2018-01-31|04:06:19 PM] [Save Comp] "/Library/Application Support/Blackmagic Design/Fusion/Reactor/Deploy/Comps/BarrelShape3D.comp"
[2018-01-31|04:06:20 PM] [Close Comp] "/Library/Application Support/Blackmagic Design/Fusion/Reactor/Deploy/Comps/BarrelShape3D.comp"
[2018-01-31|04:06:36 PM] [Save Comp] "/Library/Application Support/Blackmagic Design/Fusion/Reactor/Deploy/Comps/hos_Tiler.comp"
[2018-01-31|04:06:51 PM] [Close Comp] "/Library/Application Support/Blackmagic Design/Fusion/Reactor/Deploy/Comps/hos_Tiler.comp"
Installation
Step 1. Copy the FusionCompEvents file to the Fusion user prefs "Config:/FusionCompEvents.fu" PathMap folder.
Step 2. Restart Fusion for the example to be activated.
Step 3. When you open and close Fusion composites a log entry is made by tracking "Comp_New", "Comp_Open", "Comp_Recent_Open", "Comp_Close" and "Comp_Save".
Opening the Log File
The new Event.log file is saved to the "UserData:/Event.log" PathMap Location.
Windows Event.log Location:
Code: Select all
%appdata%\Blackmagic Design\Fusion\Event.log
Linux Event.log Location:
Code: Select all
$HOME/.fusion/BlackmagicDesign/Fusion/Event.log
Mac Event.log Location:
Code: Select all
$HOME/Library/Application Support/Blackmagic Design/Fusion/Event.log
Note: $HOME represents your current user account's home folder.
You do not have the required permissions to view the files attached to this post.