Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
import maya.cmds as cmds
# We store the current selection in a variable
currentSelection = cmds.ls(selection=True)
# deactivate render
cmds.refresh(suspend=True)
# Go to vertex mode
cmds.ConvertSelectionToVertices()
# Deselect the currently selected object
cmds.select(clear=True)
# We select the previously selected object again.
cmds.select(currentSelection)
# activate render
cmds.refresh(suspend=False)
Deactivate selection of attributes in the channelbox
This code when deselecting the object automatically deselects the selected attributes in the channelbox, but if I run the script continues to maintain the selection of the attributes, how is it possible if the code is written to deselect the object?🤔
Solved! Go to Solution.