Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Vectors won't animate for some reason

    SDK Help
    0
    1
    43
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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.html

      Here'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;   
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post