Synopsis
createSelectSet([name=string], [contents=list], [color=int]) |
This command creates a Select Set.
Flags
Name | Argument types | Description |
name | string | Specifies the name (label) of the Select Set. Optional. |
contents | list | Sets the contents of this Select Set, a list of object names. |
color | int | Sets the color of the Select Set. If no argument is passed, it will use kPurple. 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 purple Select Set named "Select Set" with current selection as its contents:
from animBot import OpenAnimBot as OA OA.createSelectSet()
This creates a purple Select Set named "Select Set" with objects "batman:right_IK" and "batman:left_IK" as its contents:
from animBot import OpenAnimBot as OA OA.createSelectSet(contents=["batman:right_IK", "batman:left_IK"])
This creates a blue Select Set named "Batman_IKs" with objects "batman:right_IK" and "batman:left_IK" as its contents:
from animBot import OpenAnimBot as OA OA.createSelectSet(name="Batman_IKs", contents=["batman:right_IK", "batman:left_IK"], color=OA.kBlue)