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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Set priority in basic properties [SOLVED]

    SDK Help
    0
    3
    311
    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

      On 18/05/2015 at 12:46, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R16 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi, I am trying to set two parameters located in the basic properties menu of pose morph. I need to specifically set the priority and base priority to animation and initial like the following:

      I was able to set the mixing mode to points using:

      rootAtom->SetParameter(DescID(ID_CA_POSE_POINTS), GeData(1), DESCFLAGS_SET_0);
      

      But when I try to set the priority like this, nothing happens:

      rootAtom->SetParameter(DescID(ID_CA_POSE_BASE_PRI), GeData(EXECUTIONPRIORITY_ANIMATION), DESCFLAGS_SET_0);
      
      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 18/05/2015 at 14:22, xxxxxxxx wrote:

        After a lot of confusing research I figured out how to set the priority of the pose morph:

        GeData priority;
        if (rootAtom->GetParameter(DescLevel(EXPRESSION_PRIORITY), priority, DESCFLAGS_GET_0))
        {
                PriorityData *pd = (PriorityData * )priority.GetCustomDataType(CUSTOMGUI_PRIORITY_DATA);
                if (pd) {
                    pd->SetPriorityValue(PRIORITYVALUE_MODE, GeData(CYCLE_ANIMATION));
                }
          
                rootAtom->SetParameter(DescLevel(EXPRESSION_PRIORITY), priority, DESCFLAGS_SET_0);
        }
          
        rootAtom->SetParameter(DescID(ID_CA_POSE_BASE_PRI), GeData(EXECUTIONPRIORITY_INITIAL), DESCFLAGS_SET_0);
        
        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 19/05/2015 at 07:01, xxxxxxxx wrote:

          Hello,

          you can find an example on how to set a Priorty value in the "Look at Camera" plugin in the SDK examples.

          Best wishes,
          Sebastian

          1 Reply Last reply Reply Quote 0
          • First post
            Last post