Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Adding items into Cycle in a NodeData GUI

    SDK Help
    0
    3
    113
    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 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.

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

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

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