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

    Info from dialog

    SDK Help
    0
    6
    537
    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 30/07/2003 at 17:07, xxxxxxxx wrote:

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

      ---------
      How can I get information from a C4D- Dialog?
      For example I want to read a scale-Factor from the "Real-Control" SCALE_FACTOR.

          
          
          
          
          // in MeshExporter.res:
          
          
          
          
          CONTAINER MshExporter  
          {  
           NAME MshExporter;  
           INCLUDE Fbase;
          
          
          
          
           GROUP MshExporter  
           {  
            REAL SCALE_FACTOR { UNIT REAL; }  
           }
          
          
          
          
          }
          
          
          
      

      A short code-sample would be nice.

      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 31/07/2003 at 03:39, xxxxxxxx wrote:

        Hello,
        please have a look at the code examples in the SDK first. Where do you want to get the Real value from? What plugintype?
        Some lines of code would help.
        Best
        Samir

        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 31/07/2003 at 08:04, xxxxxxxx wrote:

          It is an Exporter.  In C4D you see the Dialog under: Edit->Preferences->Import/Export. The Dialog contains only a "REAL- Control" for Scaling. I just want to read the value in that Control from the Exporter-Plugin.
          My Res-File reads (as stated before) :

              
              
              
              
              // in MeshExporter.res:
              
              
              
              
              CONTAINER MshExporter  
              {  
               NAME MshExporter;  
               INCLUDE Fbase;
              
              
              
              
                
               
              
              
              
              
               GROUP MshExporter  
               {  
                REAL SCALE_FACTOR { UNIT REAL; }  
               }
              
              
              
              
              }
              
              
              
          

          I don´t use GEDialog or so. I just edited the necessary *.res, *.str *.h- files and now I try to get info from the Control. How?

          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 31/07/2003 at 08:18, xxxxxxxx wrote:

            It should work like any other examples in the SDK too:
            BaseContainer *data = node->GetDataInstance();
            then you can access the real value through the container with
            Real sf = data->GetReal(SCALE_FACTOR);
            Best
            Samir

            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 31/07/2003 at 10:20, xxxxxxxx wrote:

              That´s it, thanks.
              No Info anyhwere, for what node in the Save()- Function  is good or what Info it holds, where it comes from or what it means.
              But it´s a node! Found it, thanks.
              A 2-page description of fundamental SDK-objects and data-organisation would make working with the API a pleasure.  But this way, it´s frustrating most times. Anyway, got it, thanks.

              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 31/07/2003 at 10:25, xxxxxxxx wrote:

                well, a node actually defines all objects in Cinema 4D (tags, keys, objects and also filters) and is represented by the NodeData class that inherits from the BaseData (that is topmost afaic remember).
                It´s nothing more than a pointer to the node instance filled directly by Cinema 4D and passed to the corresponding functions.
                Well, actually that´s how I understood it 🐵

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