<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Insert and customize object]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 30/01/2005 at 16:30, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hello,<br />
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.<br />
Please could anyone help me to solve this?<br />
Greats, Ralf</p>
]]></description><link>http://developers.maxon.net/forum/topic/2280/1634_insert-and-customize-object</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 22:22:33 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/2280.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 May 2018 16:57:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Insert and customize object on Wed, 09 May 2018 16:57:35 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 07/02/2005 at 05:01, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">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?<br />
-------------------------------------------------------------------------------------------------<br />
var PLUGIN_ID = xxxxxx;<br />
var MENU_NAME = "<a href="mailto:Rad@rea" target="_blank" rel="noopener noreferrer nofollow ugc">Rad@rea</a>";<br />
var HELP_STR =  "Add Radiosity Area Object";<br />
class MySky : SkyObject<br />
{<br />
public:<br />
       MySky();     <br />
}<br />
class RadMenu : MenuPlugin<br />
{<br />
public:<br />
       RadMenu();<br />
       GetHelp();<br />
       GetID();<br />
       GetName();<br />
       Execute(Doc);     <br />
}<br />
RadMenu::RadMenu()        { super(); }<br />
RadMenu::GetID()          { return PLUGIN_ID; }<br />
RadMenu::GetName()        { return MENU_NAME; }<br />
RadMenu::GetHelp()        { return HELP_STR; }<br />
RadMenu::Execute(doc)<br />
{<br />
       doc-&gt;InsertObject(new(SkyObject),NULL,NULL);<br />
      <br />
       return;                    <br />
}<br />
main()<br />
{<br />
       Register(RadMenu);     <br />
}<br />
-------------------------------------------------------------------------------------------------</p>
]]></description><link>http://developers.maxon.net/forum/post/9855</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/9855</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 16:57:35 GMT</pubDate></item></channel></rss>