Insert and customize object
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/01/2005 at 16:30, xxxxxxxx wrote:
Hello,
I am quite new to C++ and COFFEE programming, and I am exercising a lot. I've also made a Xpresso plugin for c4d, but new I want to turn it into a COFFEE plugin. I've already started but don't know how to insert a lightObject and disable certain properties of it.
Please could anyone help me to solve this?
Greats, Ralf -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/02/2005 at 05:01, xxxxxxxx wrote:
Under hereb I've written a piece of code. Can anyone tell me what I have to change, in order to let the SkyObject insertion work?
-------------------------------------------------------------------------------------------------
var PLUGIN_ID = xxxxxx;
var MENU_NAME = "Rad@rea";
var HELP_STR = "Add Radiosity Area Object";
class MySky : SkyObject
{
public:
MySky();
}
class RadMenu : MenuPlugin
{
public:
RadMenu();
GetHelp();
GetID();
GetName();
Execute(Doc);
}
RadMenu::RadMenu() { super(); }
RadMenu::GetID() { return PLUGIN_ID; }
RadMenu::GetName() { return MENU_NAME; }
RadMenu::GetHelp() { return HELP_STR; }
RadMenu::Execute(doc)
{
doc->InsertObject(new(SkyObject),NULL,NULL);
return;
}
main()
{
Register(RadMenu);
}
-------------------------------------------------------------------------------------------------