Adding a new tool
You are now familiar with extensions and how to extend them, adding a new tool is a similar process.
The tools are defined in the dcc_config YAML configuration, pointing out which tools to display in the DCC menu or
run at bootstrap.
New tool guidelines
Having Nuke as an example and assuming the Connect setup has been as stated in the extend tool guide, adding a new tool is as simple as:
- Create a new
tool-configYAML file in the~/Documents/my-ftrack-extensions/nuke/tool-configs/folder. - Create necessary plugins and widgets for it.
- Copy
nuke.yamlin to your extensions folder (~/Documents/my-ftrack-extensions/nuke/). - Edit the
toolssection and add your tool to it, remember to align the name with thetool-configfile. - Start Connect and launch the Nuke integration, your new tool should now be visible in the ftrack menu within Nuke.
For a fully working example on how to create a new tool extension, refer to the Maya reference viewer recipe.
Removing a tool
In the same way, a tool can be disabled by providing a DCC config with an augmented tools section having the tool removed.
In this example we are disabling the opener in Nuke:
type: dcc_config
name: framework-nuke
tools:
- name: publish
label: "Publish"
dialog_name: framework_standard_publisher_dialog
icon: publish
options:
tool_configs:
- nuke-script-publisher
docked: true
# Opener definition was here