<?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: Material definitions calling from macro is - it possible in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184657#M21535</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Put / Get can transfer data between the macro &lt;BR /&gt;
and the caller object. Some example can be found &lt;BR /&gt;
in the Finstone.lib where stone materials are defined &lt;BR /&gt;
by a macro.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.</description>
    <pubDate>Mon, 08 Feb 2010 19:25:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-02-08T19:25:00Z</dc:date>
    <item>
      <title>Material definitions calling from macro is - it possible</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184653#M21531</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am preparing a library with quite a lot of material options - and I do not want do add them to the normal materials as they are strictly binded to the objects only - so master gdl file is out of the question.&lt;BR /&gt;
&lt;BR /&gt;
I would like to make a call from the objects to the material definitions stored in separate file - and it looks like it is impossible without tricks.&lt;BR /&gt;
&lt;BR /&gt;
For now I have to put the definitions to the mastrscript of every 3d macro  unfortumately.&lt;BR /&gt;
I have done that for another library by calling an outside  texture list etc and compiling the material in the main file, but it is painfull as well...&lt;BR /&gt;
&lt;BR /&gt;
So is there any way to call a macro that contains materials definitions?&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 Feb 2010 13:31:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184653#M21531</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2010-02-07T13:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Material definitions calling from macro is - it possible</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184654#M21532</link>
      <description>I would guess the only way would be to return parameters and use those in a generic material definition.</description>
      <pubDate>Sun, 07 Feb 2010 15:29:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184654#M21532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-07T15:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Material definitions calling from macro is - it possible</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184655#M21533</link>
      <description>So I did  in some of my previous works...but this time I wanted to have the all materials defined, and would not work this way...&lt;BR /&gt;
&lt;BR /&gt;
Anyway - it is wired that the value lists can be passed from macro - even without any parameters given nor returned, same for parts of UI script...but materials definitions - that do not use any parameters cannot be passed from macro to the main object.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Sun, 07 Feb 2010 16:34:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184655#M21533</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2010-02-07T16:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Material definitions calling from macro is - it possible</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184656#M21534</link>
      <description>It may not do what you are looking for but what I meant was not to define the materials in the macro but to assign the parameters (arrays or otherwise) that could be used in generic material definitions in the internal scripts of the calling macros.</description>
      <pubDate>Sun, 07 Feb 2010 18:25:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184656#M21534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-07T18:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Material definitions calling from macro is - it possible</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184657#M21535</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Put / Get can transfer data between the macro &lt;BR /&gt;
and the caller object. Some example can be found &lt;BR /&gt;
in the Finstone.lib where stone materials are defined &lt;BR /&gt;
by a macro.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.</description>
      <pubDate>Mon, 08 Feb 2010 19:25:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184657#M21535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-08T19:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Material definitions calling from macro is - it possible</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184658#M21536</link>
      <description>Thanks for the tips...&lt;BR /&gt;
&lt;BR /&gt;
My original way of doing this was:&lt;BR /&gt;
&lt;BR /&gt;
Main macro code:
&lt;PRE&gt;if material_XXX="AAN" THEN 
	material_XXX_T = "AAN_antracyt.jpg"
	material_XXX_R=  38: material_XXX_G= 36: material_XXX_B= 37
ENDIF&lt;/PRE&gt;

So the list of textures and RGB values are in the main macro...to pass by returned parameters...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
and in the calling file:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;DEFINE TEXTURE "material_XXX_TT" material_XXX_T, 1, 1, 0, 0
DEFINE MATERIAL	material_XXX 20, [...]&lt;/PRE&gt;

I will check the tips...hope I will find better than above  &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Mon, 08 Feb 2010 20:39:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184658#M21536</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2010-02-08T20:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Material definitions calling from macro is - it possible</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184659#M21537</link>
      <description>Piotr, did you find a better way?&lt;BR /&gt;
I think all the developers working on manufacturer objects have the same problem.&lt;BR /&gt;
&lt;BR /&gt;
Graphisoft, do you have a better solution? &lt;BR /&gt;
If not, it would be great for futurer GDL features that a kind of master_gdl file exists, that is a macro or does not write all the definitions into the ArchiCAD attributets.</description>
      <pubDate>Sat, 26 Feb 2011 09:47:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Material-definitions-calling-from-macro-is-it-possible/m-p/184659#M21537</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2011-02-26T09:47:22Z</dc:date>
    </item>
  </channel>
</rss>

