<?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: GDL objects with adjustable materials in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145784#M17312</link>
    <description>That's how it's done... Just been doing a lot of this lately...&lt;BR /&gt;
&lt;BR /&gt;
So... Let's make this a WISH...&lt;BR /&gt;
&lt;BR /&gt;
We know that GS "blessed" us by using a SPECIAL command that turned any slab with an ID "WALLHOLE" into a WALLHOLE command for windows and doors...&lt;BR /&gt;
&lt;BR /&gt;
Here, I am proposing something much the same...&lt;BR /&gt;
&lt;BR /&gt;
1. GS to create some special character like asterisk at the beginning AND the end of a material name&lt;BR /&gt;
&lt;BR /&gt;
    *LegMat*&lt;BR /&gt;
&lt;BR /&gt;
2.  Users then create a Material Named *LegMat* in their materials library.&lt;BR /&gt;
&lt;BR /&gt;
3.  When used as the material for an element in a SAVE AS LIBRARY PART...AC would create that PARAMETER and assign it as a parameter to the objects gdl..&lt;BR /&gt;
&lt;BR /&gt;
Sounds so simple when I write out...  &lt;BR /&gt;
&lt;BR /&gt;
GS?</description>
    <pubDate>Fri, 22 Jul 2011 17:24:25 GMT</pubDate>
    <dc:creator>vfrontiers</dc:creator>
    <dc:date>2011-07-22T17:24:25Z</dc:date>
    <item>
      <title>GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145781#M17309</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;How do I create a GDL object where I can adjust the materials individually? The only way I know how to do it doesn't save the individual materials, and the only way to change material is to un-tic the "Use Object's Materials" box and choose a different material, but this changes the entire object. &lt;BR /&gt;
&lt;BR /&gt;
Your help welcomed! Thanks!&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Jul 2011 05:38:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145781#M17309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-21T05:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145782#M17310</link>
      <description>In a nutshell, you define different materials while modeling, then change those definitions to a variable parameter in the GDL script.&lt;BR /&gt;
&lt;BR /&gt;
*******&lt;BR /&gt;
&lt;BR /&gt;
When you create your object, define a different material for each part of the object that you would like to be able to adjust individually.  &lt;BR /&gt;
&lt;BR /&gt;
For example, a chair with different materials for the legs, seat, and back.  Assign Paint-01 to legs, Paint-02 to seat, and Paint-03 to back.&lt;BR /&gt;
&lt;BR /&gt;
Save object as editable GDL object.&lt;BR /&gt;
&lt;BR /&gt;
Place the object in your plan, select it, the open object using CTRL+SHIFT+O&lt;BR /&gt;
&lt;BR /&gt;
Create a new material parameter for each item, in this case 3 of them.  For this example, use the variables 'leg_mat', 'seat_mat' and 'back_mat' and choose a default material for each.&lt;BR /&gt;
&lt;BR /&gt;
Then open the 3D script, use the 'search and replace text' command to replace  "Paint-01" (include quotes since it is not a variable) with leg_mat (no quotes around variables), "Paint-02" with seat_mat and "Paint-03" with back_mat.&lt;BR /&gt;
&lt;BR /&gt;
Hope that helps ~</description>
      <pubDate>Thu, 21 Jul 2011 16:23:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145782#M17310</guid>
      <dc:creator>MMontgomery</dc:creator>
      <dc:date>2011-07-21T16:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145783#M17311</link>
      <description>I have written an article about this subject for &lt;A href="http://www.archimag.org" target="_blank"&gt;ArchiMAG&lt;/A&gt;. You can download the entire article from my &lt;A href="http://www.masterscript.nl/01/product.php?id_product=47" target="_blank"&gt;website&lt;/A&gt; for free.</description>
      <pubDate>Thu, 21 Jul 2011 20:59:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145783#M17311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-21T20:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145784#M17312</link>
      <description>That's how it's done... Just been doing a lot of this lately...&lt;BR /&gt;
&lt;BR /&gt;
So... Let's make this a WISH...&lt;BR /&gt;
&lt;BR /&gt;
We know that GS "blessed" us by using a SPECIAL command that turned any slab with an ID "WALLHOLE" into a WALLHOLE command for windows and doors...&lt;BR /&gt;
&lt;BR /&gt;
Here, I am proposing something much the same...&lt;BR /&gt;
&lt;BR /&gt;
1. GS to create some special character like asterisk at the beginning AND the end of a material name&lt;BR /&gt;
&lt;BR /&gt;
    *LegMat*&lt;BR /&gt;
&lt;BR /&gt;
2.  Users then create a Material Named *LegMat* in their materials library.&lt;BR /&gt;
&lt;BR /&gt;
3.  When used as the material for an element in a SAVE AS LIBRARY PART...AC would create that PARAMETER and assign it as a parameter to the objects gdl..&lt;BR /&gt;
&lt;BR /&gt;
Sounds so simple when I write out...  &lt;BR /&gt;
&lt;BR /&gt;
GS?</description>
      <pubDate>Fri, 22 Jul 2011 17:24:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145784#M17312</guid>
      <dc:creator>vfrontiers</dc:creator>
      <dc:date>2011-07-22T17:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145785#M17313</link>
      <description>Hi Duane,&lt;BR /&gt;
Can you make this wish into a separate Wish post where we can vote for it?&lt;BR /&gt;
I am anxious to click the ESSENTIAL button. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
Great idea. Might be extended to other attribute types.&lt;BR /&gt;
Or, the element could be dimensioned before being saved as GDL and all dimensions would be converted into parameters. The Dimension Text would be changed to the intended GDL parameter name prior to saving.</description>
      <pubDate>Mon, 25 Jul 2011 11:22:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145785#M17313</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2011-07-25T11:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145786#M17314</link>
      <description>Done!&lt;BR /&gt;
&lt;BR /&gt;
---now go vote!&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=37083" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... hp?t=37083"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?t=37083&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Mon, 25 Jul 2011 15:22:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145786#M17314</guid>
      <dc:creator>vfrontiers</dc:creator>
      <dc:date>2011-07-25T15:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145787#M17315</link>
      <description>Done.</description>
      <pubDate>Mon, 25 Jul 2011 15:28:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145787#M17315</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2011-07-25T15:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145788#M17316</link>
      <description>And... you might as well vote here too....&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?p=192471#192471" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... 471#192471"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?p=192471#192471&lt;/LINK_TEXT&gt;&lt;/A&gt;</description>
      <pubDate>Mon, 25 Jul 2011 15:28:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145788#M17316</guid>
      <dc:creator>vfrontiers</dc:creator>
      <dc:date>2011-07-25T15:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145789#M17317</link>
      <description>Success!  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;  Thank you all for your help!</description>
      <pubDate>Fri, 29 Jul 2011 06:56:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145789#M17317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-29T06:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145790#M17318</link>
      <description>Can anybody tell me how i define materials in the master script???</description>
      <pubDate>Mon, 22 Aug 2011 13:01:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145790#M17318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-22T13:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145791#M17319</link>
      <description>Check the GDL Reference Guide:&lt;BR /&gt;
You have to have a file called MASTER_GDL&lt;B&gt;xxxxxxxxx&lt;/B&gt;.gdl&lt;BR /&gt;
In the place of &lt;B&gt;xxxxxxxxx&lt;/B&gt; you can put any characters so the name of the file will be e.g. MASTER_GDL&lt;B&gt;-OfficeMaterials&lt;/B&gt;.gdl&lt;BR /&gt;
&lt;BR /&gt;
This file must be loaded in the loaded libraries.&lt;BR /&gt;
You can edit this file in Notepad, it is a text file, with the GDL extension.&lt;BR /&gt;
&lt;BR /&gt;
In this file you can use any of the DEFINE commands of GDL to define fills, materials, line types, textures etc.&lt;BR /&gt;
These DEFINE commands are covered in the GDL Manual PDF on pages 196-212&lt;BR /&gt;
&lt;BR /&gt;
Their result is when you reload libraries and a library contains a MASTER_GDL... file, the content of the file is executed, and if there are those DEFINE commands, the attributes defined in the MASTER_GDL file will be added to the attribute set of the project.</description>
      <pubDate>Mon, 22 Aug 2011 14:51:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145791#M17319</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2011-08-22T14:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145792#M17320</link>
      <description>Thank you very mutch  laszlonagy and all the other people who replayed. &lt;BR /&gt;
I am very new to GDL so this is very helpful. If its possible, can you post a example? It is a little bit easy for me to understand now in the beggining. &lt;BR /&gt;
Thank you very mutch.</description>
      <pubDate>Tue, 23 Aug 2011 11:30:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145792#M17320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-23T11:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: GDL objects with adjustable materials</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145793#M17321</link>
      <description>The examples are there in the GDL Reference Guide PDF.&lt;BR /&gt;
&lt;BR /&gt;
I copied one example:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;DEFINE MATERIAL "water" 0,
0.5284, 0.5989, 0.6167,
! surface RGB [0.0..1.0]
1.0, 0.5, 0.5, 0.9,
! ambient, diffuse, specular,transparent
! coefficients [0.0..1.0]
2.0,
! shining [0.0..100.0]
1,
! transparency attenuation [0.0..4.0]
0.5284, 0.5989, 0.6167,
! specular RGB [0.0..1.0]
0, 0, 0,
! emission RGB [0.0..1.0]
0.0
! emission attenuation [0.0..65.5]&lt;/PRE&gt;

&lt;BR /&gt;
Note that the lines starting with ! are comments.&lt;BR /&gt;
&lt;BR /&gt;
So the real script is:&lt;BR /&gt;

&lt;PRE&gt;DEFINE MATERIAL "water" 0,
0.5284, 0.5989, 0.6167,
1.0, 0.5, 0.5, 0.9,
2.0,
1,
0.5284, 0.5989, 0.6167,
0, 0, 0,
0.0
&lt;/PRE&gt;

So if you paste this into Notepad, save it as MASTER_GDL-1.gdl for example, then place this file into any of your loaded libraries, reload the libraries, the new material will be there among your materials.</description>
      <pubDate>Tue, 23 Aug 2011 11:44:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/GDL-objects-with-adjustable-materials/m-p/145793#M17321</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2011-08-23T11:44:20Z</dc:date>
    </item>
  </channel>
</rss>

