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

    EXPRESSION_PRIORITY

    SDK Help
    0
    7
    560
    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 22/11/2003 at 12:42, xxxxxxxx wrote:

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

      ---------
      How do I set the EXPRESSION_PRIORITY of a plugin expression?  I see it uses a customdatatype PRIORITY.  This consists of a LONG which is a set of enumerations for the evaluation priority ( expression, generator, etc... ) and a GeData which is also a long defining chronological placement in the priority list.  I think I would retrieve the customdatatype from the container and set it back using the specific datattype function.  Doesn't seem to work here.  Any examples would be very helpful.
      Regards,
      Thomas Cray
      www.cidertank.com

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 23/11/2003 at 09:49, xxxxxxxx wrote:

        Have a look at the LookAtCamera.cpp example in the SDK example files.
        Use AddToExecution to add your point of execution to the execution list.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 23/11/2003 at 12:31, xxxxxxxx wrote:

          That is what I am already using.  I specifically wanted to know how to do it the other way ( setting customdatatype parameters ).  Thanks anyway.
          Regards,
          Thomas Cray

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 23/11/2003 at 12:51, xxxxxxxx wrote:

            I think I would retrieve the customdatatype from the container and set it back using the specific datattype function
            Isn´t that what LookAtCamera.cpp exactly does? Maybe I am misunderstanding you:
            GeData d;
             if (node->GetParameter(DescLevel(EXPRESSION_PRIORITY),d,0))
             {
              PriorityData *pd = (PriorityData* )d.GetCustomDataType(CUSTOMGUI_PRIORITY_DATA);
              if (pd) pd->SetPriorityValue(PRIORITYVALUE_CAMERADEPENDENT,GeData(TRUE));
              node->SetParameter(DescLevel(EXPRESSION_PRIORITY),d,0);
             }
            Or what exactly do you mean by setting customdatatype parameters?
            maybe my english is just bad 🐵

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 23/11/2003 at 15:48, xxxxxxxx wrote:

              Well, you are correct in the second email.  When I downloaded the updated SDK the lookatcamera tag source has changed.  That is what I was looking for.  You first email was speaking of the AddToExecution function which I was already using.  Thank you for the pointer.
              Regards,
              Thomas Cray
              www.cidertank.com

              1 Reply Last reply Reply Quote 0
              • H
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 24/11/2003 at 07:49, xxxxxxxx wrote:

                Oh sorry, that was only an add-on. I thought probably you need this function too if you are dealing with the execution list. My fault.

                1 Reply Last reply Reply Quote 0
                • H
                  Helper
                  last edited by

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 24/11/2003 at 07:53, xxxxxxxx wrote:

                  No problems.  Always appreciate suggestions. In the end you provided the correct solution. Thank you.
                  Regards,
                  Thomas Cray
                  www.cidertank.com

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