pymel.core.animation.defineVirtualDevice

defineVirtualDevice(*args, **kwargs)

This command defines a virtual device. Virtual devices act like real devices and are useful to manipulate/playback data when an command device is not connected to the computer. In query mode, return type is based on queried flag.

Flags:
  • axis : ax (int) [create]

    Specifies the axis number of the channel. All children have their axis number determined by their parent’s axis number and the width of the parent channel. If this flag is not used, the order of the channel determines the axis number.

  • channel : c (unicode) [create]

    After a -create is started, channels may be added to the device definition. The channel string wil be the name of the channel being added to the device. The -channel flag must also be accompanied by the -usage flag and optionally by the -axis flag.

  • clear : cl (bool) [create]

    The -clear option will end a device definition and throw away any defined channels.

  • create : cr (bool) [create]

    Start defining a virtual device. If a device is currently being defined, the -create flag will produce an error.

  • device : d (unicode) [create]

    The -device flag ends the device definition. All of the channels between the -create flag and the -device flag are added to the specified device. If that device already exists, the command will fail and the device should be redefined with another device name. To see the currently defined devices, use the listInputDevices command. The -device flag is also used with -undefine to undefine a virtual device.

  • parent : p (unicode) [create]

    Specified the parent channel of the channel being defined. If the channel does not exist, or is an incompatible type, the command will fail.

  • undefine : u (bool) [create]

    Undefines the device specified with the -device flag.

  • usage : use (unicode) [create]

    The -usage option is required for every -channel flag. It describes what usage type the defined channel is. The usage types are: unknownscalarposrotposRotquaternionposQuaternionrotXYZrotYZXrotZXYrotXZYrotYXZrotZYXposRotXYZposRotYZXposRotZ XYposRotXZYposRotXZYposRotZYXposXposYposZrotXrotYrotZFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.defineVirtualDevice

Previous topic

pymel.core.animation.defineDataServer

Next topic

pymel.core.animation.deformer

Core

Core Modules

Other Modules

This Page