Synopsis


createTempControl([space=int], [positionSpace=int], [orientationSpace=int], [system=int], [node=(string, list)], [name=string], [relative=(string, list)], [color=int])


This command creates a Temp Control.


Flags


NameArgument typesDescription
spaceintSets the position and orientation space of the Temp Control. If no argument is passed it will use kWorld. Available spaces:
kWorld
kObject
kRelative
kCamera
kChild
kGrabRelease
positionSpace
intSets the position space of the Temp Control. If no argument is passed it will use the space value. Available spaces:
kWorld
kObject
kRelative
kCamera
kChild
kGrabRelease
orientationSpace
intSets the orientation space of the Temp Control. If no argument is passed it will use the positionSpace value. Available spaces:
kWorld
kObject
kRelative
kCamera
kChild
kGrabRelease
systemintSets the Temp Control system. If no argument is passed it will use the kSimpleControl. Available types:
kSimpleControl
kGroupControl
kAimControl
kFkChainControl
nodestring, listSpecifies the source node(s) to create the Temp Control. You can pass the name of the node or a list of names. If no argument is passed it will use the selection.
relativestring, listSpecifies the relative node(s) to create the Temp Control. This is only valid if space=kRelative. You can pass the name of the node or a list of names. If no argument is passed while space=kRelative, it will use the last node in the selection or the last node if a list is passed to the node argument.
colorintSets the color of the Temp Control. If no argument is passed, it will use kTurquoise. Available colors: 

kWhite

kDarkWhite

kLightGray

kGray

kDarkGray

kBlack

kLightPurple

kPurple

kDarkPurple

kLightBlue

kBlue

kDarkBlue

kLightTurquoise

kTurquoise

kDarkTurquoise

kLightGreen

kGreen

kDarkGreen

kLightYellow

kYellow

kDarkYellow

kLightOrange

kOrange

kDarkOrange

kLightRed

kRed

kDarkRed

kLightPink

kPink

kDarkPink


Examples


This creates a Simple Control in world space for the selected node(s):

from animBot import OpenAnimBot as OA

OA.createTempControl()



This creates a Group Control in relative space for the given nodes:

from animBot import OpenAnimBot as OA

OA.createTempControl(space=OA.kRelative, system=OA.kGroupControl, node=["superman:hand_ik_ctrl", "superman:foot_ik_ctrl"], relative="batman:chest_ctrl")


This creates an Aim Control with its position in object space and orientation in world space, for the selected node(s):

from animBot import OpenAnimBot as OA

OA.createTempControl(positionSpace=OA.kObject, orientationSpace=OA.kWorld, system=OA.kAimControl)