EXPRESSION_PRIORITY



  • 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



  • 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.



  • 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



  • 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 :o)



  • 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



  • 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.



  • 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


Log in to reply