Message 1 of 1
Passing list to time in getAttr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.