On 04/04/2015 at 01:12, xxxxxxxx wrote:
There's certain attributes on keys that I'm not 100% sure how to access via python, and I'm wondering if anyone knows how.
If you select a key in the Powerslider or Timeline, in the AM, there are lots of checkboxes for things like Clamp, Auto Tangents, etc. How do you get/set those values via python?
Follow up but not really related question, key.GetValue() only works on floats. So if you were to key say a drop down, value would always return as 0.0. What's the proper way to get/set those values in instances like that? Does it have to then be done via obj[c4d.AttrName] instead? Is there an easy way to know via python when one needs to do that? I'm trying to create a dictionary with the values, of each key, but I don't know how to know when I can just use key.value and when and how to get it when it's not a float value.
Can anyone point me in the right direction?