Adding items into Cycle in a NodeData GUI



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

    On 02/02/2006 at 06:53, xxxxxxxx wrote:

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

    ---------

    For a VideoPost-Plugin I wrote a description for
    the GUI like this:

    CONTAINER VPName
    {     NAME VPName;
         INCLUDE VPbase;

    GROUP ID_VIDEOPOSTPROPERTIES
         {   
                LONG VP_DISPLAY_MODE   { CYCLE { } }
         }
    }

    Now I want to fill the Cycle with Strings
    at runtime (no constants). From another post
    of torsten119 I found how to do this with
    generated GUI elements. But mine are already
    loaded. Now I have to retrieve the BaseContainer
    of the ComboBox. But how? I tried this:

    Bool SVI_VideoPost::GetDDescription(GeListNode* node, Description* description, LONG& flags)
    {
    PluginVideoPost *pp = (PluginVideoPost* )node;
    BaseContainer *dat = pp->GetDataInstance();
    const BaseContainer *combobox =
    description->GetParameter(DescID(DescLevel(ID_VIDEOPOSTPROPERTIES), DescLevel(VP_DISPLAY_MODE)), *dat, NULL);

    return NodeData::GetDDescription(node, description, flags);
    }

    The pointer of combobox is NULL.
    I'm unsure of DescID(DescLevel(LEVEL1?), DescLevel(LEVEL2?));
    How do I adress VP_DISPLAY_MODE ?

    Thank you for any hints.



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

    On 07/02/2006 at 14:48, xxxxxxxx wrote:

    I don't think it's possible to modify descriptions made by resources on the fly. You will have to make the description dynamic, i.e. create it in GetDDescription(), and then you can fill the cycle list as you need.



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

    On 13/02/2006 at 08:39, xxxxxxxx wrote:

    Thank you very much!
    I was irritated by a note in the SDK to predefine GUI with *.res - Files, rather
    than with code. But this was for command plugins only, I guess.
    For my problem I found the lookatcamera.cpp example very useful.


Log in to reply