Host.kl

Interfaces

UndoRedoCommand (interface)

UndoRedoCommand UndoRedoCommand UndoRedoCommand SurfaceAttributePaintCommand SurfaceAttributePaintCommand SurfaceAttributePaintCommand->UndoRedoCommand SurfaceSculptCommand SurfaceSculptCommand SurfaceSculptCommand->UndoRedoCommand TransformManipulationCommand TransformManipulationCommand TransformManipulationCommand->UndoRedoCommand

Functions

  doAction ! ()
String getDesc ? ()
  undoAction ! ()

Functions in detail

UndoRedoCommand.doAction! ()

Invoked by the redo action in the Host DCC.


String UndoRedoCommand.getDesc? ()

Gets a string to use in the undo list.


UndoRedoCommand.undoAction! ()

Invoked by the undo action in the Host DCC.

Types

Host (object)

バージョン 1.12.0 で追加.

Host object encapsulates data about the host DCC that the event originated from. It is also used to propagate data back to the DCC, such as undo/redo commands, and parameter changes.

参考

EvalContext

Members

String hostName The name of the host DCC. This could be ‘Maya’, ‘Softimage’, ‘3dsMax’ etc..
Boolean redrawRequested A boolean flag indicating that the Host application needs to redraw its viewport.
UndoRedoCommand[] commands An array of commands generated during the event handling. These commands will be added as a single command on the Host undo/redo stack. Usually, this will be an array containing 0, or 1 items, but it is possible for a manipulator to generate multiple changes within the same event.
String dirtifyNode A string indicating the name of the node in the Host graph that should be dirtied.
String customCommand The name of a custom command that should be invoked in the host.
String[] customCommandArgs A string containing any arguments for the custom command.
ParamDict customCommandParams A param list containing any parameters for the custom command

Methods

  Host ( in Host other )
  Host ()
  addUndoRedoCommand ! ( in UndoRedoCommand command )
  callCustomCommand ! ( in String customCommand, in ParamDict params )
  callCustomCommand ! ( in String customCommand, in String args[] )
Host clone ? ()
  dirtifyDCCNode ! ( in String dirtifyNode )
String getHostName ? ()
  requestRedraw ! ()