Adding object properties
-
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
-
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.
-
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