<?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: Create many materials at once ?? in Modeling</title>
    <link>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118344#M62529</link>
    <description>Now I only have one question left regarding this matter.&lt;BR /&gt;
The dimensions of the texture in the Internal engine ( Attachment), how do I set it in the master_GDL_mymaterials.gdl file?&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Extract from master_GDL_mymaterials.gdl:&lt;/B&gt;&lt;BR /&gt;
DIM	tmp_LWA_COGSMASKEDIMAGE_BASECOLOR[3]&lt;BR /&gt;
        tmp_LWA_COGSMASKEDIMAGE_BASECOLOR[1] =      0&lt;BR /&gt;
        tmp_LWA_COGSMASKEDIMAGE_BASECOLOR[2] =      0&lt;BR /&gt;
        tmp_LWA_COGSMASKEDIMAGE_BASECOLOR[3] =      0&lt;BR /&gt;
DIM	tmp_LWA_RFPLASTIC_SPECULARCOLOR[3]&lt;BR /&gt;
        tmp_LWA_RFPLASTIC_SPECULARCOLOR[1] = 0.6980392336845&lt;BR /&gt;
        tmp_LWA_RFPLASTIC_SPECULARCOLOR[2] = 0.6980392336845&lt;BR /&gt;
        tmp_LWA_RFPLASTIC_SPECULARCOLOR[3] = 0.6980392336845&lt;BR /&gt;
define texture "Texture142" "Ikarus01",          1,          1,  512,          0&lt;BR /&gt;
&lt;BR /&gt;
define material	"PKSIkarus01" 20,&lt;BR /&gt;
	         0,          0,          0,&lt;BR /&gt;
         0.73,   0.8,  0.06,     0,   0.64,     0,&lt;BR /&gt;
	  0.921569,   0.827451,   0.972549,&lt;BR /&gt;
	         0,          0,          0,&lt;BR /&gt;
	         0, ind(fill, "Background"),    -1,&lt;BR /&gt;
	ind(texture, "Texture142")		ADDITIONAL_DATA	LWA_COLOR = "LWA_COGSMASKEDIMAGE",&lt;BR /&gt;
        LWA_COGSMASKEDIMAGE_BASECOLOR = tmp_LWA_COGSMASKEDIMAGE_BASECOLOR,&lt;BR /&gt;
        LWA_COGSMASKEDIMAGE_FILE = "Ikarus01", LWA_COGSMASKEDIMAGE_SCALE = 0.3000000119209,&lt;BR /&gt;
        LWA_COGSMASKEDIMAGE_ASPRATIO =            1, LWA_REFLECTANCE = "LWA_RFMATTE",&lt;BR /&gt;
        LWA_RFMATTE_AMBIENT = 0.7300000190735, LWA_RFMATTE_DIFFUSE = 0.8000000119209,&lt;BR /&gt;
        LWA_TRANSPARENCY = "LWA_TRNONE", LWA_TEXTURESPACE = "LWA_TSGSREPLICATE",&lt;BR /&gt;
        LWA_TSGSREPLICATE_SREFLECT =            0, LWA_TSGSREPLICATE_TREFLECT =            0,&lt;BR /&gt;
        LWA_TSGSREPLICATE_SSIZE = 0.03500000014901, LWA_TSGSREPLICATE_TSIZE = 0.03500000014901,&lt;BR /&gt;
        LWA_TSGSREPLICATE_ANGLE =            0, LWA_PIPELINE = "LWA_PLNONE",&lt;BR /&gt;
        LWA_DISPLACEMENT = "LWA_DPWBUMPMAP", LWA_DPWBUMPMAP_FILE = "Ikarus801",&lt;BR /&gt;
        LWA_DPWBUMPMAP_WIDTH = 0.03500000014901, LWA_DPWBUMPMAP_HEIGHT = 0.03500000014901,&lt;BR /&gt;
        LWA_DPWBUMPMAP_AMPLITUDE = 0.1000000014901, LWA_DPWBUMPMAP_SOFTNESS =            1,&lt;BR /&gt;
        LWA_DPWBUMPMAP_SCALE =            1, LWA_DPWBUMPMAP_ASPRATIO =            1&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/6617iDF6A4FA2AF74DC0F/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Mat1.jpg" title="Mat1.jpg" /&gt;</description>
    <pubDate>Sat, 28 May 2011 02:21:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-05-28T02:21:55Z</dc:date>
    <item>
      <title>Create many materials at once ??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118341#M62526</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I'm about to create many materials. All of them have different textures and also the color in 2d. Else they are equal.&lt;BR /&gt;
Are there some way to make this more automatically? It's awfully much work to make it in the regular way.&lt;BR /&gt;
I thought maybe the AttributeManager has some possibility to do this. But, when I look at the material definitions and compare two of them, I see the parameters have different values. So my idea to make an input-file that way is impossible.&lt;BR /&gt;
So help is appreciated &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 May 2011 10:24:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118341#M62526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-27T10:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create many materials at once ??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118342#M62527</link>
      <description>Anne Helene,&lt;BR /&gt;
For this situation, Special Menu can be a good help.&lt;BR /&gt;
&lt;BR /&gt;
From a 3D view, with Special Menu save as "Materials.gdl" (or something like that).&lt;BR /&gt;
Keep just the material definitions you need.&lt;BR /&gt;
&lt;BR /&gt;
If your changes are cosmetic, from what I understand, &lt;BR /&gt;
just duplicate material definitions under a new name,&lt;BR /&gt;
and do the changes about RVB values and texture definition.&lt;BR /&gt;
It should be much easy.&lt;BR /&gt;
&lt;BR /&gt;
Refer to GDL Reference Guide (Help Menu) about material definitions, it is not complicated.&lt;BR /&gt;
&lt;BR /&gt;
Be aware that if you add this file under "Master_GDL_my materials.gdl" into your library, &lt;BR /&gt;
The process will be automatical, and all material definitions will show in Attribute Manager.&lt;BR /&gt;
You will not be able to remove them.&lt;BR /&gt;
&lt;BR /&gt;
Better to add material definitions into each object.&lt;BR /&gt;
This way, you will not polluate the file of the end user, with unexpected materials.</description>
      <pubDate>Fri, 27 May 2011 19:36:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118342#M62527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-27T19:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create many materials at once ??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118343#M62528</link>
      <description>Thank you, Olivier!&lt;BR /&gt;
&lt;BR /&gt;
This was exactly ehat I asked for. I'm about to test it out.&lt;BR /&gt;
Suddenly my Special Menu has disappeared. &lt;BR /&gt;
I must see if the Registry has changed.</description>
      <pubDate>Fri, 27 May 2011 22:10:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118343#M62528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-27T22:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create many materials at once ??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118344#M62529</link>
      <description>Now I only have one question left regarding this matter.&lt;BR /&gt;
The dimensions of the texture in the Internal engine ( Attachment), how do I set it in the master_GDL_mymaterials.gdl file?&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Extract from master_GDL_mymaterials.gdl:&lt;/B&gt;&lt;BR /&gt;
DIM	tmp_LWA_COGSMASKEDIMAGE_BASECOLOR[3]&lt;BR /&gt;
        tmp_LWA_COGSMASKEDIMAGE_BASECOLOR[1] =      0&lt;BR /&gt;
        tmp_LWA_COGSMASKEDIMAGE_BASECOLOR[2] =      0&lt;BR /&gt;
        tmp_LWA_COGSMASKEDIMAGE_BASECOLOR[3] =      0&lt;BR /&gt;
DIM	tmp_LWA_RFPLASTIC_SPECULARCOLOR[3]&lt;BR /&gt;
        tmp_LWA_RFPLASTIC_SPECULARCOLOR[1] = 0.6980392336845&lt;BR /&gt;
        tmp_LWA_RFPLASTIC_SPECULARCOLOR[2] = 0.6980392336845&lt;BR /&gt;
        tmp_LWA_RFPLASTIC_SPECULARCOLOR[3] = 0.6980392336845&lt;BR /&gt;
define texture "Texture142" "Ikarus01",          1,          1,  512,          0&lt;BR /&gt;
&lt;BR /&gt;
define material	"PKSIkarus01" 20,&lt;BR /&gt;
	         0,          0,          0,&lt;BR /&gt;
         0.73,   0.8,  0.06,     0,   0.64,     0,&lt;BR /&gt;
	  0.921569,   0.827451,   0.972549,&lt;BR /&gt;
	         0,          0,          0,&lt;BR /&gt;
	         0, ind(fill, "Background"),    -1,&lt;BR /&gt;
	ind(texture, "Texture142")		ADDITIONAL_DATA	LWA_COLOR = "LWA_COGSMASKEDIMAGE",&lt;BR /&gt;
        LWA_COGSMASKEDIMAGE_BASECOLOR = tmp_LWA_COGSMASKEDIMAGE_BASECOLOR,&lt;BR /&gt;
        LWA_COGSMASKEDIMAGE_FILE = "Ikarus01", LWA_COGSMASKEDIMAGE_SCALE = 0.3000000119209,&lt;BR /&gt;
        LWA_COGSMASKEDIMAGE_ASPRATIO =            1, LWA_REFLECTANCE = "LWA_RFMATTE",&lt;BR /&gt;
        LWA_RFMATTE_AMBIENT = 0.7300000190735, LWA_RFMATTE_DIFFUSE = 0.8000000119209,&lt;BR /&gt;
        LWA_TRANSPARENCY = "LWA_TRNONE", LWA_TEXTURESPACE = "LWA_TSGSREPLICATE",&lt;BR /&gt;
        LWA_TSGSREPLICATE_SREFLECT =            0, LWA_TSGSREPLICATE_TREFLECT =            0,&lt;BR /&gt;
        LWA_TSGSREPLICATE_SSIZE = 0.03500000014901, LWA_TSGSREPLICATE_TSIZE = 0.03500000014901,&lt;BR /&gt;
        LWA_TSGSREPLICATE_ANGLE =            0, LWA_PIPELINE = "LWA_PLNONE",&lt;BR /&gt;
        LWA_DISPLACEMENT = "LWA_DPWBUMPMAP", LWA_DPWBUMPMAP_FILE = "Ikarus801",&lt;BR /&gt;
        LWA_DPWBUMPMAP_WIDTH = 0.03500000014901, LWA_DPWBUMPMAP_HEIGHT = 0.03500000014901,&lt;BR /&gt;
        LWA_DPWBUMPMAP_AMPLITUDE = 0.1000000014901, LWA_DPWBUMPMAP_SOFTNESS =            1,&lt;BR /&gt;
        LWA_DPWBUMPMAP_SCALE =            1, LWA_DPWBUMPMAP_ASPRATIO =            1&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/6617iDF6A4FA2AF74DC0F/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Mat1.jpg" title="Mat1.jpg" /&gt;</description>
      <pubDate>Sat, 28 May 2011 02:21:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118344#M62529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-28T02:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create many materials at once ??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118345#M62530</link>
      <description>Preview image of the texture has no effect. Just consider the size of original texture. Avoid big textures if possible.&lt;BR /&gt;
You can resize it with x, y dimensions (keep current proportions). Save as a new Master_gdl.gdl file, and AC will update the texture definition.&lt;BR /&gt;
&lt;BR /&gt;
The main interest of a Master_gdl.gdl file, is that you can work on several definitions at once.&lt;BR /&gt;
All materials will show in attribute manager. The coons is that you can not delete them.&lt;BR /&gt;
&lt;BR /&gt;
Add the Master_gdl.gdl file to your libraries. Reload them. Open the Master_gdl.gdl file.&lt;BR /&gt;
Do the cosmetic changes you need there. Duplicate what you want under a new name.&lt;BR /&gt;
Reload your libraries for checking.&lt;BR /&gt;
&lt;BR /&gt;
When OK, remove the Master_gdl.gdl file. Keep just the textures folder.&lt;BR /&gt;
Copy the exact definitions (including texture) into the master script of your object.&lt;BR /&gt;
If you want several materials for a single object, create a list of values.&lt;BR /&gt;

&lt;PRE&gt;values "matList" "PKSIkarus01", "PKSIkarus02"
mat = ind (material, matList)&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 May 2011 11:56:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118345#M62530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-28T11:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create many materials at once ??</title>
      <link>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118346#M62531</link>
      <description>I had forgot that this dimensions didn't have any effect.&lt;BR /&gt;
So then I don't need to care about them.&lt;BR /&gt;
&lt;BR /&gt;
Now I know the whole process to make new materials that I use in my objects, in an effective way.&lt;BR /&gt;
&lt;BR /&gt;
So thank you very much, Olivier &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;</description>
      <pubDate>Sat, 28 May 2011 12:33:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Modeling/Create-many-materials-at-once/m-p/118346#M62531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-28T12:33:46Z</dc:date>
    </item>
  </channel>
</rss>

