Docs Network

QuickCollapse

Collapse a selection into a component, with an optional customize dialog.

⇄ Network

Why use it

Most patches start flat: you build fast in one network while you work out what you want. Once a section works, it deserves its own component, both to keep the network readable and to give the section a name you can refer to. TouchDesigner's Collapse Selected in the right-click menu does the move, and naming the result and giving it a parent shortcut is a second trip through its parameters.

QuickCollapse puts the collapse on a key, and a second key asks for the name and the parent shortcut before anything moves.

Features

How to use it

  1. Select the nodes and press Ctrl+W. They move inside a new Base COMP, wired exactly as they were, and the network editor takes you inside it. It runs TouchDesigner's own Collapse Selected underneath, so the result is the component you would have got from the right-click menu.
  2. Press Ctrl+Shift+W to do the same with a small dialog first, for the new COMP's name and its parent shortcut. Worth the extra key whenever the result is something you will refer to later: naming it at creation time is cheaper than renaming it and fixing up references afterwards.
  3. Changed your mind? The whole collapse is one undo step, and undoing it also returns you to the network you collapsed from, so you are never left inside a COMP that no longer exists.

The collapse is also in quick-launch as Collapse selected. Both keys can be rebound from Shortcut and Shortcut Customize, and Active switches the tool off while keeping it installed.

Get it

Tick it on the install page and it installs with the rest of your setup and stays up to date.

Download FNS_QuickCollapse.tox Version 3.2.8, the tool on its own. It works in any project, and this copy never updates itself.

Shortcuts

  • Ctrl+Shift+WCollapse, but ask for the COMP's name and parent shortcut first
  • Ctrl+WCollapse the selection into a Base COMP straight away

Parameters

Its Registry page comes from FNS_ConfigRegistry.

Custom

ControlType / defaultWhat it does
ActiveActive on / offon Turn QuickCollapse on or off. When on, the shortcuts below collapse the selected nodes into a Base COMP. Off leaves the component installed but idle.
ShortcutShortcut textctrl.w Key that collapses the selected nodes into a new Base COMP straight away, with no dialog.
Shortcut CustomizeShortcutcustomize textctrl.shift.w Key that collapses the selection but asks first, with a dialog for the new COMP's name and its parent shortcut.