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

    Adding object properties

    SDK Help
    0
    3
    292
    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 18/10/2004 at 15:21, xxxxxxxx wrote:

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

      ---------
      I am having trouble with my res file. I am trying to add properties to my plugin object, like the Oatam example:

        
      CONTAINER Oatom  
      {  
           NAME Oatom;  
           INCLUDE Obase;  
        
           GROUP ID_OBJECTPROPERTIES  
           {  
                REAL ATOMOBJECT_CRAD { UNIT METER; MIN 0.01; STEP 0.01; }  
                REAL ATOMOBJECT_SRAD { UNIT METER; MIN 0.01; STEP 0.01; }  
                LONG ATOMOBJECT_SUB     { MIN 3; MAX 1000; }  
                BOOL ATOMOBJECT_SINGLE     { }  
           }  
      }  
      

      my res file is as follows:

        
      CONTAINER CloneOmatic  
      {  
           NAME CloneOmatic;  
           INCLUDE CloneOmatic;  
        
        
           String CLONEOMATIC_POINTS { }  
           String CLONEOMATIC_MASTER { }  
        
      }  
      

      When I run the plugin C4D crashes out to windows.

      Is there documentation on res file syntax?

      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 18/10/2004 at 19:12, xxxxxxxx wrote:

        Well, yeah. The correct doc names for strings are:

        STRING (creates an EditText box)
        STATICTEXT (creates a StaticText)

        Case is IMPORTANT!

        Also, what's with the INCLUDE CloneOmatic? Include is for parent node types, not for the type being defined. For instance:

        NAME MyPluginObject;
        INCLUDE Obase;

        will include the Res description file for Obase. In your case, you may end up in an infinite loop including your Res file back into your Res file.

        ***

        Yes, do a search in the SDK documentation for "Description Resource" or go to the Contents for the same.

        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 19/10/2004 at 22:12, xxxxxxxx wrote:

          Thanks, that cleared it up for me. I didn't realize it was called a "Description" resource.

          Thanks again 🙂

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