Docs Network

PasteFromClipboard

Paste the image on the clipboard into the current network as a Movie File In, a Script TOP or an annotation. Windows only.

⇄ Network windows only by DotSimulate and Lake Heckaman

Why use it

A reference image, a screenshot of a bug, a texture from a browser: getting it into TouchDesigner usually means saving it somewhere, finding the file again, and dragging it in or browsing to it from a Movie File In.

PasteFromClipboard skips the file juggling. Copy the image, press Alt+V in the network, and pick how it should land. It was implemented by DotSimulate and Lake Heckaman, and integrated by Function Store.

Features

  • Paste a clipboard imageAlt+V pastes the image on the clipboard into the current network, at the mouse, with three ways to paste on the keys 1, 2 and 3.Windows only
  • Paste as Movie File InSaves the image in the tool's Save Folder, clipboard_images by default, and reads it with a Movie File In.Windows only
  • Paste as locked Script TOPStores the image in a locked Script TOP, which grows the .toe file but avoids external dependencies.Windows only
  • Paste as annotationPins the image in the network as an annotation the size of the image, kept inside the .toe like the Script TOP.Windows only
  • Paste image filesImage files copied in Explorer paste from the original files, several at once, laid out in a row.Windows only

How to use it

  1. Copy an image: from a browser, a screenshot tool, an image editor, or image files selected in Explorer.
  2. Point the mouse at the spot in the network editor where the image should go and press Alt+V.
  3. Pick one of three options with its key, or press Esc to cancel:
    • 1 pastes it as a Movie File In. The image is also saved in the folder set by the tool's Save Folder parameter (clipboard_images by default), and the Movie File In reads it from there.
    • 2 pastes it as a locked Script TOP, with the pixels stored in the .toe.
    • 3 pastes it as an annotation the size of the image, with a transparent background, holding the image the same way as the Script TOP. Handy for pinning a reference or a sketch beside the part of the network it belongs to.

The new operator lands at the mouse while Position at Mouse is on, which it is out of the box.

Options 2 and 3 produce a locked TOP, which increases your .toe file size but avoids external dependencies. Option 1 keeps the .toe small, and the project then needs the image folder wherever it goes.

To skip the menu, run Paste image, Paste as Script TOP or Paste as annotate from quick-launch.

PasteFromClipboard is Windows only: it reads the Windows clipboard directly. On macOS it switches itself off, and its Status says why. If you know a native macOS route that needs no external Python libraries, let us know.

Pasting image files

Image files copied in Explorer reach the clipboard as files, so PasteFromClipboard uses the original files themselves, alpha included.

  • Several files paste as several operators, laid out in a row.
  • With 1, each file is copied into the Save Folder first, so the Movie File In keeps working if the original moves. Switch off Copy Pasted Files to read the originals where they are.
  • With 2 and 3, a file that cannot be decoded, such as a PSD, a DDS or an EXR without its codec, is skipped, and the status bar names it and suggests pasting it as a File In.
  • Anything in the selection that is not an image file is ignored.

Get it

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

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

Shortcuts

  • Alt+VPaste the clipboard image into the current network, then press 1, 2 or 3 to pick how

Parameters

Its Registry page comes from FNS_ConfigRegistry.

Settings

ControlType / defaultWhat it does
Paste ImagePasteimage button Paste image from clipboard as TOP
Paste As ScriptOPPastescriptop button Paste image from clipboard as a scriptTOP
Paste As NotePasteannotate button Paste image from clipboard as an annotate component
ShortcutShortcut textalt.v Key that pastes the image on your clipboard into the current network. Once pressed, 1 / 2 / 3 choose Movie File In, locked Script TOP or Annotate.
Save FolderFolderpath textclipboard_images Folder to save images
Position at MousePositionatmouse on / offon Position image at current mouse location
Copy Pasted FilesCopyfiles on / offon When the clipboard holds image files copied in Explorer, copy each one into the Save Folder so the pasted File In keeps working if the original moves. Off: the File In reads the original file where it is.
StatusStatusread-only textempty What the tool is doing, or why it cannot: read-only. It reports the Windows-only limitation here rather than failing silently on macOS.
Image WidthImagewidthread-only number0 Width of last pasted image
Image HeightImageheightread-only number0 Height of last pasted image

About

ControlType / defaultWhat it does
BypassBypass on / offoff Switch the whole component off. It is set automatically on anything but Windows, where the clipboard route this tool uses does not exist.
Show Built-in ParametersShowbuiltin on / offoff Show TouchDesigner's built-in parameter pages on this component alongside its custom ones. Off keeps the parameter dialog to just this tool's own controls.
ChatTD OperatorChattd operatorempty Optional: a ChatTD operator for this component to talk to. Leave it empty unless you use DotSimulate's ChatTD.