View Single Post
# 2 03-09-2020, 10:02 AM
Jackkd88
Registered User
Join Date: Sep 2020
Posts: 5
Asterisk (*) unpacking is introduced in python 3 , Maya still uses python 2 so this method won't work
Instead you can use this code:
import maya.cmds as cmds
selObj = cmds.ls(sl=1)
a,b = selObj[0],selObj[1:]
print a
print b