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

    Priority: PriorityData and PriorityList

    Cinema 4D SDK
    3
    5
    1.2k
    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.
    • R
      rownn
      last edited by

      Hello,

      I think dealing with priorities in expression tags is quiet simple. First level order from Initial to Generators and the second level order from lower integers to higher.
      I have an objectData and for example I want it to execute between Generators -5 and Generators -3. How can I get the plugin working exectly at the point Generators -4?

      ObjectData.AddToExecution(op, PriorityList) / PriorityList.Add(node, priority, flags):

      • priority -> totally clear
      • flags -> absolutly not clear, it isn´t equal to the PRIORITYVALUE_PRIORITY integer of a priorityData, right?

      Thx alot
      rownn

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi @rownn

        I would like to point you to Q&A New Functionality and How to Post Questions especially the tagging part, please correct your post.

        Regarding your questions.
        EXECUTIONPRIORITY_XXX constants are actually the int value of the priority. So if you want to do Generator - 4 you simply have to pass

        EXECUTIONPRIORITY_GENERATOR - 4
        

        Then the flag passed in PriorityList.Add method is the flag passed to the Execute method to determine from the execute which kind of execution you are currently doing. This is mostly to identify which call you are currently doing (Execute can be called multiple time).

        Finally, changing the priority only affect when the Execute method is called, GetVirtualObject or any other methods are not delayed.

        If you have any question, please let me know.
        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 3
        • M
          m_adam
          last edited by

          Hi @rownn, does my previous post, answers your question? If so, please turn this topic as solved.
          Cheers,
          Maxime.

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

          1 Reply Last reply Reply Quote 0
          • R
            rownn
            last edited by

            Hi m_adam,

            thank you very much for the enlightenment on priorities, it helps alot, and sorry for my late reply.

            Greetings and thx again
            rownn

            PS: I´ll keep the pointed way of posting in mind.

            ymoonY 1 Reply Last reply Reply Quote 1
            • ymoonY
              ymoon @rownn
              last edited by ymoon

              @rownn said in Priority: PriorityData and PriorityList:

              Hi m_adam,

              thank you very much for the enlightenment on priorities, it helps alot, and sorry for my late reply.

              Greetings and thx again
              rownn

              PS: I´ll keep the pointed way of posting in mind.

              Hello @rownn
              This is another question. I am writing here because there is no way to contact you. You are the developer of "Rounded Corner (c4dnetwork)". Would you make it run on R25?

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