Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    How ObjectData add PRIORITY and execute

    Cinema 4D SDK
    c++ r20
    2
    3
    717
    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.
    • M
      mike
      last edited by mike

      hi,
      i am confuse about how to add PRIORITY in ObjectData like Skin and Hair object ? show in basic tab?
      and how to connect PRIORITY to ObjectData::Execute()? i try to use ObjectData::AddToExecute(), it work but not same as ExpressionTag, it will execute when i move cursor or other action, even execute after i closed objectplugin. it is strange. if any way execute ObjectData::Execute() like ExpressionTag do ?
      hope your help!

      1 Reply Last reply Reply Quote 0
      • S
        s_bach
        last edited by

        Hello,

        Objects and tags are two different things, so I would not expect them to work similarly.

        In the case of the Skin object, the priority parameter is simply added in the resource file. Take a look at the ocaskin.res file.

        GROUP Obaselist
        {
          SEPARATOR { LINE; }
        
          PRIORITY ID_CA_SKIN_OBJECT_PRIORITY { ANIM OFF; NOCAMERA; }
        }
        

        Within AddToExecution() the value of that parameter is read, converted to EXECUTIONPRIORITY and used to set the priority value of PriorityList::Add().

        best wishes,
        Sebastian

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        M 1 Reply Last reply Reply Quote 0
        • M
          mike @s_bach
          last edited by

          @s_bach Thank you!

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