0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

はじめての記事投稿

python maya delete keys

Posted at
import maya.cmds as cmds

def GetAllByType(selType="joint"):
    all_curves = cmds.ls(type=selType, ni=True, o=True, r=True, l = True)
    curves_transforms = cmds.listRelatives(all_curves, p=True, type = "transform")
    return curves_transforms


joints = GetAllByType("joint")
cmds.select(joints)
    
mySel = cmds.ls(sl=1)

test = []
try:
	test += cmds.listConnections(mySel,s=True, type="animCurveTU")
except:
	pass
try:
	test += cmds.listConnections(mySel,s=True, type="animCurveTL")
except:
	pass
try:
	test += cmds.listConnections(mySel,s=True, type="animCurveTA")
except:
	pass

cmds.delete(test)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?