Experimental:Internal Operators

From Derivative
Jump to: navigation, search

“Internal Operators” (iOPs) provide a simple shortcut to a frequently-used operator within a component, from anywhere in that component.

Simply, you create or choose a node that you would access frequently within a component. You pick a shortcut name for that node. You set it up on the Common page of the parent component by supplying the shortcut name and the path to the node. You can then access it with a syntax like ipar.ShortcutName.

iop.ShortcutName searches up in the parent components' hierarchy until it finds a component with a matching Internal Shortcut name.

See Internal Parameters which provides more concise shortcuts to parameter collections.


Assume you want to refer to /project1/geo1 frequently.

Go to the parameters of /project1, to the Common page. Name your internal operator shortcut by setting Internal OP Shortcut 1 to TopGeo.

Give the path to the Geometry component by setting Internal OP 1 to ./geo1.

The geo1 component is now easy to refer to within your component:

Go back in project1 and create a Camera component. In its Look At parameter put in its expression field iop.TopGeo.

Move geo1, the camera cam1 will look continue to look at geo1.

There are four types of shortcuts: Application Shortcuts that are built-in to TouchDesigner's authoring interface, Panel Shortcuts that you create for any custom built panels, Parent Shortcuts for accessing a component from within that component, and Global OP Shortcuts that access a unique component from anywhere in TouchDesigner.