Module: Apply Command To Modules ()

Description:

With this module a Tcl command can be executed on a number of modules. These can be all visible or selected objects in the Project View or all objects of a certain type. Select Animations And Scripts / Apply Command To Modules from the main window's Project > Create Object... menu to add a Apply Command To Modules module to the Project View.

Press the Apply button to execute the Tcl command.

Connections:

Data [not used]
The data port is a default script object port, but is not used by Apply Command To Modules.

Ports:

TCL Command

Specify here the Tcl command to be executed, e.g., "setLineColor 1 0 0" to color all objects of type HxDisplayLineSet.

Note that you can execute several commands on the object(s) if you use the Tcl variable obj. Pressing the Apply button of Isosurface could be accomplished by "doIt hit; $obj fire".

Apply to Modules

Specify here whether the Tcl command should be executed on all visible objects, on all selected objects, or on objects of a specific type.

Type

If you choose to execute the Tcl command on objects of a specific type, select the type here. All types available in the Project View are listed here. The list is updated when this option is chosen.