Passing list to time in getAttr

Passing list to time in getAttr

anil.u
Explorer Explorer
396 Views
0 Replies
Message 1 of 1

Passing list to time in getAttr

anil.u
Explorer
Explorer

Is there a way to pass a list of values to getAttr in the time parameter? Instead of running getAttr over the length of the list?

time_list = [1.5, 3.5, 10.6]

values = cmds.getAttr('nodeName.attrName', time=time_list ) #time does not accept time_list

 

Gives me the error - Expected time, got [ float, float, float]

 

I want to avoid writing a for loop for the entire list

 

Thanks.

0 Likes
397 Views
0 Replies
Replies (0)