Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Vectors won't animate for some reason

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 133 Views
    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 Offline
      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