Access Add Keyframe Selection in Coffee
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/02/2009 at 15:31, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform: Windows ;
Language(s) : C.O.F.F.E.E ; XPRESSO ;---------
I want to know how to turn off/ on whether an object's parameter is keyed when parameter keying is enabled.In the cinema interface, this is done by highlighting the parameter, right click > Animation > 'Add keyframe Selection'.
This turns the parameter's text white and now when using the set key button with parameter keying enabled, this parameter is keyed.
Let me use the example of a coffee tag on a null object, and lets say I want to turn on for keying it's 'Display' parameter.
I know how to get at the null object's display value, easy:
main(doc,op)
{
println(op#NULLOBJECT_DISPLAY);
}But say I want to get at a property of that parameter (a sub id ?)
The 'descriptions' section of the SDK leads me to believe this is the syntax :main(doc,op)
{
println(op#NULLOBJECT_DISPLAY:name_of_property);
}But I don't know what the property I need is called.
from searching around I thought it might be DESC_ANIMATE
but :main(doc,op)
{
println(op#NULLOBJECT_DISPLAY:DESC_ANIMATE);
}but I get 'Invalid Description ID for object'.
Can anyone help ? And tell me which files to look in to find out the ID's or names of parameters sub-properties ?
Thanks.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/02/2009 at 06:59, xxxxxxxx wrote:
Unfortunatly this is not possible in COFFEE. The C++ API povides several functions to handle keyframe selection.
KeyframeSelectionContent()
ClearKeyframeSelection()
FindKeyframeSelection(const DescID& id)
SetKeyframeSelection(const DescID& id, Bool selection)cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/02/2009 at 14:12, xxxxxxxx wrote:
Thats a pity but thanks for your help anyway. I'll have to consider if I want to try another language.