Hi all,
I want to print out the values for a list of attributes on every transform selected using methods from the Transform class, but I think I’m messing up the syntax.
My simple script:
from pymel.core import *
object = ls(sl=1)
channels = [".translateX",".translateY"]
type(object[0])
print (object[0].translateX.get() ) # this works
getAttr(object[0] + channels[0]) # this also works
print ((object[0] + channels[0]).get() ) # this doesn't work
print ((object[0] + channels[0]) + '.get()' ) # this doesn't work
Can anyone point me in the right direction? Maybe it’s not possible?
Thanks for reading!