THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/06/2011 at 10:52, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
hello folks,
I'm douwe.
Some of you may know me from my activity in other boards.
Been hanging around here for quite some time, picking up bits of info here and there, trying to catch up and get familiar with common scripting practices,... I consider myself still too much of a newbie to really want to bother you guys with all the "common" obstacles and pain-in-the-ass stupid questions i bump into. At least until I know what I'm talking about a little better, so I can pinpoint the specifics of an issue when needed.
Yet, I'm stuck with something here, that I really need to know how to do, because it's so basic and fundamental..
So I'm setting up a file with some coffee that does a few simple things (when a user data boolean is checked it creates a null object with a given name. What I want to do now is automatically add that null into the Object field of a TPGravity node.
I know that i need to use #GRAV_OBJECT to do this; i just don't know how to address it:
nullObj = new(NullObject);
nullObj->SetName("TPGravityNull");
doc->InsertObject( nullObj, NULL, NULL );
...........#GRAV_OBJECT = nullObj;
what do i need to put at the ..... ?
i know this is very basic, so excuse me the stupidity, but i just can seem to find out.
I'm not a complete idiot, so a little suggestion in the right direction will work wonders here.
thanks,
douwe