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
    • Recent
    • Tags
    • Users
    • Register
    • Login

    help with GeResource

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 180 Views
    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 Offline
      Helper
      last edited by

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

      On 16/05/2005 at 11:08, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      hi. im a total coffee beginner. and i could use some help. i hope you can help me.

      the following script does not work. because ist wrong, but i dont know how to do i better. please help.

        
      include "c4d_symbols.h"  
        
      var PLUGIN_ID = 1017883; //TerraCOFFEE id from www.plugincafe.com  
      var PLUGIN_NAME = "tc";  
      var HELP_STR = "tc";  
        
      var d;  
      var resource;  
        
      class TerraCOFFEE : MenuPlugin  
      {  
      public:  
           TerraCOFFEE();  
        
           GetID(); GetName(); GetHelp();  
           Execute(doc);  
           RestoreLayout(secret);  
      }  
        
      //*---------------Dialog--------------*  
        
      class TCDialog : GeDialog  
      {  
      public:  
           TCDialog();  
           CreateLayout();  
           Command(id,msg);  
           Init();  
      }  
        
      //*--------------Resource-------------*  
        
      class TCResource : GeResource  
      {  
      public:  
           TCResource(path);  
        
           GetString(id);  
      }  
        
      //*---------------Funktionen----------*  
        
      TCResource::TCResource(path)  
      {  
           super(path);  
      }  
        
      GetString(id)  
      {  
        
      }  
        
      TCDialog::TCDialog()  
      {  
           super(PLUGIN_ID);  
      }  
        
      TCDialog::Init()  
      {  
        
      }  
        
      TCDialog::CreateLayout()  
      {  
           return LoadDialogResource(TC_DIALOG, resource, 0);  
      }  
        
      TerraCOFFEE::TerraCOFFEE()  
      {  
           super();  
      }  
        
      TerraCOFFEE::GetID() { return PLUGIN_ID; }  
      TerraCOFFEE::GetHelp() { return HELP_STR; }  
      TerraCOFFEE::GetName() { return PLUGIN_NAME; }  
        
      TerraCOFFEE::Execute(doc)  
      {  
           if (!d) d = new(TCDialog);  
           d->Open(TRUE,-1,-1);  
      }  
        
      TerraCOFFEE::RestoreLayout(secret)  
      {  
           if (!d) d = new(TCDialog);  
           d->RestoreLayout(secret);  
      }  
        
      main()  
      {       
           var root = GeGetRootFilename();  
           root->RemoveLast();  
           var resource = new(TCResource, root);  
           Register(TerraCOFFEE);  
           println("loaded");  
      }  
        
      

      i'm desperate....

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

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

        On 17/05/2005 at 16:30, xxxxxxxx wrote:

        i think i should formulate taht one better:

        how do i use the GeResource with an non-modal dialog in the right way?

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