THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/01/2012 at 14:03, xxxxxxxx wrote:
You guys did good on my previous keyframe selection question. So lets see how good you really are.
Is it possible to use keyframe selections inside of materials?
There's no DA_COLOR in the sdk so I tried DTYPE_COLOR.
In C++ we have to use DTYPE_COLOR for the type when accessing color values. Not VECTOR. I'm not sure if that holds true with python or not:
import c4d
def main() :
mat = doc.GetFirstMaterial()
color = c4d.DescLevel(c4d.MATERIAL_COLOR_COLOR, c4d.DTYPE_COLOR, what goes here?)
id = c4d.DescID(color, c4d.DescLevel(c4d.VECTOR_X, c4d.DA_REAL, c4d.DA_VECTOR)) #Red channel
mat.SetKeyframeSelection(id, True)
if __name__=='__main__':
main()
Even If manually create a keyframe selection by right clicking on the red color channel and selecting it from the list of pop up options. It doesn't record with the record button.
Is it possible that it's not something supported... even in the C++ API?
-ScottA