<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Where are the default light controls? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275995#M3237</link>
    <description>Yes, Laszlo, thank you. So, unless you "save as" an old object, now a UI script is mandatory for light objects, not optional anymore, as it is for other object types. Plus you have to include all parameters in the UI script, not only those related to the light. I'll have to overcome my laziness for writing UIs...</description>
    <pubDate>Mon, 21 Jun 2021 02:29:38 GMT</pubDate>
    <dc:creator>Durval</dc:creator>
    <dc:date>2021-06-21T02:29:38Z</dc:date>
    <item>
      <title>Where are the default light controls?</title>
      <link>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275986#M3228</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;A long time ago I have scripted some simple lamp objects in which the basic light control are shown in the settings dialog box (attached image). The UI script of this object is blank; the controls show up by default, simply because it is classified as light subtype.&lt;BR /&gt;&lt;BR /&gt;Now I'm trying to write a new lamp, similar to the old one, but these controls do not show up.&lt;BR /&gt;&lt;BR /&gt;I know I could write an UI script, but the default behavior of the old object is fine enough to me and I'd rather not having to go through the UI scripting, as I would have to code all other parameters.&lt;BR /&gt;&lt;BR /&gt;Is there a way to make the basic controls show up without writing an UI script?&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:07:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275986#M3228</guid>
      <dc:creator>Durval</dc:creator>
      <dc:date>2021-09-14T07:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the default light controls?</title>
      <link>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275987#M3229</link>
      <description>&lt;BLOCKQUOTE&gt;Durval wrote:&lt;BR /&gt;
A long time ago I have scripted some simple lamp objects in which the basic light control are shown in the settings dialog box (attached image). The UI script of this object is blank; the controls show up by default, simply because it is classified as light subtype.
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
The UI script in your object may be blank, but is it CALLing a macro in the Master script.&lt;BR /&gt;
If that macro has a UI script, that would cause the UI to show (I am pretty sure).&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 16 Jun 2021 01:03:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275987#M3229</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-06-16T01:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the default light controls?</title>
      <link>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275988#M3230</link>
      <description>There is no macro being CALLed in the other scripts. &lt;BR /&gt;
It’s a simple object with a pair of REVOLVEs and a LIGHT command in the 3D script.&lt;BR /&gt;
But there are some old parameters added by default, such as C, D, E, F and G for setting the light switch, RGB color and light intensity. &lt;BR /&gt;
If I start a new light object, these parameters have different names such as ac_light_switch etc, and these names cannot be changed.</description>
      <pubDate>Wed, 16 Jun 2021 02:35:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275988#M3230</guid>
      <dc:creator>Durval</dc:creator>
      <dc:date>2021-06-16T02:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the default light controls?</title>
      <link>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275989#M3231</link>
      <description>If you are happy with the look of the old object, open it and 'Save As' a new object and then just modify what needs to change.&lt;BR /&gt;
This way you should have the interface the way you want and you just need to modify the 2D/3D scripts.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 16 Jun 2021 02:55:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275989#M3231</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-06-16T02:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the default light controls?</title>
      <link>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275990#M3232</link>
      <description>I found I have some old lights that show the same as yours.&lt;BR /&gt;
It is not a user interface as such but seems to be some sort of special parameters.&lt;BR /&gt;
&lt;BR /&gt;
When I open the old object I see this.&lt;BR /&gt;
&lt;BR /&gt;



&lt;BR /&gt;
The 'Type' is a special symbol and not part of the standard set of types.&lt;BR /&gt;
&lt;BR /&gt;
At the same time with the 'Light' subtype, it creates these new parameters with the same symbols - but it is not possible to change these 'Type' to anything else.&lt;BR /&gt;
&lt;BR /&gt;



&lt;BR /&gt;
So it seems these new parameters have replaced the old ones.&lt;BR /&gt;
&lt;BR /&gt;
With a new lamp object, the new parameters are used in the user interface - called by a macro ("lightMacro_m").&lt;BR /&gt;
&lt;BR /&gt;
I don't see any way of using the old parameters or the new ones without the user interface.&lt;BR /&gt;
Other than doing a 'Save As' to the old object - that keeps the old features.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 16 Jun 2021 03:19:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275990#M3232</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-06-16T03:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the default light controls?</title>
      <link>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275991#M3233</link>
      <description>Thank you for your help, Barry.&lt;BR /&gt;
Strangely enough, my old lamp object has both sets of light parameters, the old ones AND the new ones...&lt;BR /&gt;
Maybe I should start anew and simply CALL the lightMacro_m, so that my new object does not rely on deprecated features.</description>
      <pubDate>Wed, 16 Jun 2021 14:33:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275991#M3233</guid>
      <dc:creator>Durval</dc:creator>
      <dc:date>2021-06-16T14:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the default light controls?</title>
      <link>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275992#M3234</link>
      <description>Well, even by starting a new object and CALLing lightMacro_m I did not succeed on showing the light controls.
&lt;UL&gt;&lt;LI&gt;Created new object (attached) and classified as Light subtype;&lt;/LI&gt;&lt;/UL&gt;
&lt;UL&gt;&lt;LI&gt;Added a very simple 3D solid with an sphere;&lt;/LI&gt;&lt;/UL&gt;
&lt;UL&gt;&lt;LI&gt;Copied the Macro Call from &lt;A href="https://gdl.graphisoft.com/tips-and-tricks/how-to-make-a-light-object" target="_blank"&gt;&lt;LINK_TEXT text="https://gdl.graphisoft.com/tips-and-tri ... ght-object"&gt;https://gdl.graphisoft.com/tips-and-tricks/how-to-make-a-light-object&lt;/LINK_TEXT&gt;&lt;/A&gt; and pasted to the top of 3D script;&lt;/LI&gt;&lt;/UL&gt;
The light controls do not show up. So I tried to paste de macro Call also in the Parameter Script. Received messages that some variables are not valid. Anyways, no light controls showing up in the light settings dialog box...&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jun 2021 16:02:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275992#M3234</guid>
      <dc:creator>Durval</dc:creator>
      <dc:date>2021-06-16T16:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the default light controls?</title>
      <link>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275993#M3235</link>
      <description>When I open a 24 light object I see that the macro seems to get called a few times - parameter script, 3D script and Interface script.&lt;BR /&gt;
I have a hard time following Graphisoft objects though!&lt;BR /&gt;
It looks like that macro does more than just the simple settings in your object.&lt;BR /&gt;
&lt;BR /&gt;
I think I would just 'Save As' your original object and edit that.&lt;BR /&gt;
It will have the new parameters and I assume you just ignore them.&lt;BR /&gt;
&lt;BR /&gt;
I have no idea how the old controls show up in the parameter list.&lt;BR /&gt;
Delete C,D E F &amp;amp; G and that interface part in the parameter list disappears - but you can not re-create it, as you can't create the old parameters with the old types again.&lt;BR /&gt;
And it doesn't work with the new 'gs_...'parameters.&lt;BR /&gt;
So 'Save As' an old light seems to be the only way to keep them.&lt;BR /&gt;
&lt;BR /&gt;
You can't delete the new parameters because they are part of the light sub-type, but you can hide them - although I am not sure if that is necessary.&lt;BR /&gt;
The object (the interface part in the parameter list) still seems to be using the old parameters.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 17 Jun 2021 02:09:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275993#M3235</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-06-17T02:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the default light controls?</title>
      <link>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275994#M3236</link>
      <description>Does this article help?&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://gdl.graphisoft.com/tips-and-tricks/how-to-create-light-controls-on-ui" target="_blank"&gt;&lt;LINK_TEXT text="https://gdl.graphisoft.com/tips-and-tri ... rols-on-ui"&gt;https://gdl.graphisoft.com/tips-and-tricks/how-to-create-light-controls-on-ui&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Sat, 19 Jun 2021 14:41:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275994#M3236</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2021-06-19T14:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the default light controls?</title>
      <link>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275995#M3237</link>
      <description>Yes, Laszlo, thank you. So, unless you "save as" an old object, now a UI script is mandatory for light objects, not optional anymore, as it is for other object types. Plus you have to include all parameters in the UI script, not only those related to the light. I'll have to overcome my laziness for writing UIs...</description>
      <pubDate>Mon, 21 Jun 2021 02:29:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Where-are-the-default-light-controls/m-p/275995#M3237</guid>
      <dc:creator>Durval</dc:creator>
      <dc:date>2021-06-21T02:29:38Z</dc:date>
    </item>
  </channel>
</rss>

