Add to Set
tb.ops.sets.add(*, set: str, members: Any = ...) -> Result
Add the selection or members to a set. One undo step.
Create Set
tb.ops.sets.create(
*,
name: str = ...,
members: Any = ...,
empty: bool = False,
quick_select: bool = False,
color: str = ...,
) -> Result
Create an Object Set from the selected objects, joints and controls or from members. One undo step.
Delete Set
tb.ops.sets.delete(*, set: str) -> Result
Delete a set (its members are untouched). One undo step.
Difference of Sets
tb.ops.sets.difference(
*,
sets: Any,
name: str = "Difference",
quick_select: bool = False,
) -> Result
Create a set holding the members of the first of sets that are in none of the others.
Intersection of Sets
tb.ops.sets.intersection(
*,
sets: Any,
name: str = "Intersection",
quick_select: bool = False,
) -> Result
Create a set holding the members common to all sets.
List Sets
tb.ops.sets.list(*, member: ObjectRef = ...) -> Result
Every Object Set: name, quick-select flag and member count; member keeps the sets holding that object. Component sets: mesh.set.list.
Set Members
tb.ops.sets.members(*, set: str) -> Result
The set's members as names.
Remove from Set
tb.ops.sets.remove(*, set: str, members: Any = ...) -> Result
Remove the selection or members from a set. One undo step.
Rename Set
tb.ops.sets.rename(*, set: str, name: str) -> Result
Rename a set; a name another set has gets a number.
Select Set
tb.ops.sets.select(
*,
set: str,
mode: Literal["replace", "add", "remove", "toggle"] = "replace",
) -> Result
Select the members of a set. One undo step.
Set Color
tb.ops.sets.set_color(*, set: str, color: str) -> Result
The set's sets-bar color.
Edit Set Members
tb.ops.sets.set_members(*, set: str, members: Any) -> Result
Replace a set's members with members (the Edit Set dialog). One undo step.
Quick Select Set
tb.ops.sets.set_quick_select(*, set: str, on: bool) -> Result
Make a set a Quick Select Set (listed on the sets bar) or a plain set.
Union of Sets
tb.ops.sets.union(
*,
sets: Any,
name: str = "Union",
quick_select: bool = False,
) -> Result
Create a set holding the members of any of sets.