Docs Parameters
OpToClipboard
Copy the selected operator's reference to the system clipboard, ready to paste into an expression.
◎ Parameters
Why use it
Referencing another operator in an expression means working out its path
from where the expression lives: op('../geo1'), op('base1/null3'), or a
parent shortcut. Get one level wrong and the parameter turns red, and the
further apart the two operators sit, the easier that is.
OpToClipboard copies a reference to the selected operator with one key. Paste it into any expression and it becomes the correct relative or shortcut path for that spot.
Features
- Copy an operator reference
Ctrl+Shift+Ccopies a reference to the selected operator, ready to paste into an expression. - Resolve the right path wherever you pasteThe pasted reference resolves to the right relative or shortcut path for the operator you paste it into.
- Copy a parameter referenceOver a parameter the same shortcut copies that parameter, or the whole group when over the name of a row with several fields.
- Toggle the tool from quick-launchToggle OpToClipboard switches the tool on and off, and Copy op to clipboard does the same as the key.
How to use it
- Select the operator you want to reference and press
Ctrl+Shift+C(Cmd+Shift+Con macOS). - Click into the expression of the parameter that needs it, paste, and keep typing.
The pasted text has an @ after it. TouchDesigner does not tell a tool where
you are going to paste, so the final path cannot be written at copy time. The
@ marks the spot, and it resolves to the full relative or shortcut path to
the copied operator. The mechanism is the same one
ExprHotStrings uses. In practice: ignore the @
and keep typing your expression; it resolves in the end.
Copy op to clipboard in quick-launch does the same as the key. If the shortcut gets in the way, change it with Shortcut, or switch the tool off with Active or Toggle OpToClipboard.
Copying a parameter reference
Press the same shortcut while the mouse is over a parameter and you copy a
reference to that parameter. Over a single field,
such as tx, you get op('geo1')@.par.tx. Over the name of a parameter row
with several fields, such as Translate, you get the whole group:
op('geo1')@.parGroup.t.
The @ resolves the same way as for an operator, and the .par or
.parGroup part stays behind it, so the finished expression reads
op('geo1').par.tx (with the path adjusted to wherever the expression
lives).
Get it
Tick it on the install page and it installs with the rest of your setup and stays up to date.
Download FNS_OpToClipboard.tox Version 3.2.9, the tool on its own. It works in any project, and this copy never updates itself.
Shortcuts
- Shift+Ctrl+C
Parameters
Its Registry page comes from FNS_ConfigRegistry.
Custom
| Control | Type / default | What it does |
|---|---|---|
ActiveActive |
on / offon | Turn OpToClipboard on or off. When on, the copy shortcut puts the selected operator's reference on the clipboard ready to paste into an expression. Off leaves the component installed but idle. |
ShortcutShortcut |
textempty | Hotkey that copies the selected operator's reference to the clipboard. |