Vectors won't animate for some reason
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/09/2011 at 07:30, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;---------
I made this kerning effector plugin and it all works fine except for some reason the psr vector components won't animate though other values will. The dot appears next to the property to show that it can be animated but it won't let you add a keyframe. Perhaps this is related but in Xpresso the vector ports won't be added either.You can download the plugin here:
http://www.mediaboxstudios.com/labs/kerning-effector.htmlHere's a sampling of the code I'm using for a vector field, they're added dynamically in the ModifyDDescription function:
positionGroupBC = GetCustomDataTypeDefault(DTYPE_GROUP); positionBC = GetCustomDataTypeDefault(DTYPE_VECTOR); positionBC.SetString(DESC_NAME,"P"); positionBC.SetString(DESC_SHORT_NAME,"P"); positionBC.SetLong(DESC_CUSTOMGUI,CUSTOMGUI_SUBDESCRIPTION); positionBC.SetLong(DESC_ANIMATE,DESC_ANIMATE_ON); positionBC.SetLong(DESC_UNIT,DESC_UNIT_REAL); positionBC.SetBool(DESC_REMOVEABLE,FALSE); positionBC.SetVector(DESC_DEFAULT, Vector(0.0)); if (!description->SetParameter(posGroupID,positionGroupBC,groupID)) return FALSE; if (!description->SetParameter(posID,positionBC,posGroupID)) return FALSE;