Synopsis


createSelectSet([name=string], [contents=list], [color=int])


This command creates a Select Set.


Returns a SelectSet object.


Flags


NameArgument typesDescription
name
stringSpecifies the name (label) of the Select Set. Optional.
contentslistSets the contents of this Select Set, a list of object names.
colorintSets 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)