<?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: Is there a way to suppress warning messages in a GDL scr in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167634#M20562</link>
    <description>Hi Eric,&lt;BR /&gt;
&lt;BR /&gt;
This bug was there in AC13 but not in AC12. I guess no one uses this in production. We tested it thoroughly when the command came to be, but now I see that we don't have a daily test for this one. So you're the first one to report it.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for bringing this to our attention and sorry again for the annoyance!&lt;BR /&gt;
&lt;BR /&gt;
Regs,</description>
    <pubDate>Fri, 09 Jul 2010 15:13:51 GMT</pubDate>
    <dc:creator>ztaskai</dc:creator>
    <dc:date>2010-07-09T15:13:51Z</dc:date>
    <item>
      <title>Is there a way to suppress warning messages in a GDL script?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167621#M20549</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I am creating an object that will show samples of all the materials defined in a project. &lt;BR /&gt;
&lt;BR /&gt;
To do this, I plan to use a simple loop statement that increments an index value, then tests to see if a material exists for that index using the statement:
&lt;PRE&gt;n=REQUEST ("Name_of_material", index, name)&lt;/PRE&gt;
I tried this, and can see that variable n is 0 when there is no material with that index, while it is 1 when a material exists. &lt;BR /&gt;
&lt;BR /&gt;
However, when the index is not associated with a material, a warning dialog comes up stating "Material not found at line 2 in 3D script of..."&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to suppress this warning message? I know that a user can turn off error messages in general, and then will only get a single message stating "there were errors", but that's not acceptable in this case.&lt;BR /&gt;
&lt;BR /&gt;
Alternatively, is there a way to automatically fill an array with a list of index values for materials, similar to the special request available for a list of font names?&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 03 Jul 2010 19:24:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167621#M20549</guid>
      <dc:creator>Eric Bobrow</dc:creator>
      <dc:date>2010-07-03T19:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167622#M20550</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I do not know if this is usable, but this code makes a sorted value list of the material names - beginning with the given character. The looping would be better with do...while or similar, but just making a "quick one" this time.&lt;BR /&gt;
&lt;BR /&gt;
You need to have a string type parameter named "materials" in addition to the value or master script code below. &lt;BR /&gt;
&lt;BR /&gt;
(The array sorting code is borrowed from Frank Beister or Joachim Suehlo years ago, thanks to those gurus).&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!--define arrays
dim s[], t[]

!--loop thru materials
for xx=1 to 255
	dummy= REQUEST ("Name_of_material", xx, name)
	if dummy &amp;amp; (strsub(materials,1,1) = strsub(name,1,1)) then
		n= n+1
		t&lt;N&gt;= name
	endif
next xx


!--array sorting
for i=1 to vardim1(t)
	s&lt;I&gt;= ""
next i

for i=1 to vardim1(t)
	p=i
	for j=1 to i-1
		if s&lt;J&gt;&amp;gt;t&lt;I&gt; then
			for k=i to j+1 step -1
				s&lt;K&gt;=s[k-1]
			next k
			p=j : j=vardim1(s)
		endif 
	next j
	s&lt;P&gt;=t&lt;I&gt; 
next i


!--deliver the value list
values "materials" s, custom
&lt;/I&gt;&lt;/P&gt;&lt;/K&gt;&lt;/I&gt;&lt;/J&gt;&lt;/I&gt;&lt;/N&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Jul 2010 23:06:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167622#M20550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-06T23:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167623#M20551</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
A little modification; the same code with a word search function.&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!--define arrays
dim s[], t[]

!--loop thru materials
for xx=1 to 255
	dummy= REQUEST ("Name_of_material", xx, name)
	if dummy &amp;amp; strstr(name, materials) then
		n= n+1
		t&lt;N&gt;= name
	endif
next xx


!--array sorting
for i=1 to vardim1(t)
	s&lt;I&gt;= ""
next i

for i=1 to vardim1(t)
	p=i
	for j=1 to i-1
		if s&lt;J&gt;&amp;gt;t&lt;I&gt; then
			for k=i to j+1 step -1
				s&lt;K&gt;=s[k-1]
			next k
			p=j : j=vardim1(s)
		endif 
	next j
	s&lt;P&gt;=t&lt;I&gt; 
next i

!--deliver the value list
values "materials" s, custom

&lt;/I&gt;&lt;/P&gt;&lt;/K&gt;&lt;/I&gt;&lt;/J&gt;&lt;/I&gt;&lt;/N&gt;&lt;/PRE&gt;

&lt;BR /&gt;
Hope this helps.&lt;BR /&gt;
&lt;BR /&gt;
Regards, Juha&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/6033iDBDE41C2239C4FA9/image-size/large?v=v2&amp;amp;px=999" border="0" alt="search.png" title="search.png" /&gt;</description>
      <pubDate>Tue, 06 Jul 2010 23:20:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167623#M20551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-06T23:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167624#M20552</link>
      <description>Juha -&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the extensive code samples. I had already worked out a way to sort the materials by name, so this was not the main question. I do like how you create the arrays and then make a value list for a materials popup.&lt;BR /&gt;
&lt;BR /&gt;
My main question is how to avoid getting an error message during execution of the script when the index does not have a defined material. This happens for me when the statement:
&lt;PRE&gt;n=REQUEST ("Name_of_material", index, name)
&lt;/PRE&gt;
is executed, and you have a similar statement in your script as you loop through to collect the material names. Do you get error messages when your script is executed?&lt;BR /&gt;
&lt;BR /&gt;
Eric</description>
      <pubDate>Tue, 06 Jul 2010 23:32:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167624#M20552</guid>
      <dc:creator>Eric Bobrow</dc:creator>
      <dc:date>2010-07-06T23:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167625#M20553</link>
      <description>Hello Eric,&lt;BR /&gt;
&lt;BR /&gt;
Now I understand - yes the looping gives an error. I checked other possibilities and seems that REQUEST{2} behaves better.&lt;BR /&gt;
&lt;BR /&gt;
I made an extra checking here.&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;

!--define arrays
dim s[], t[]

!--loop thru materials
for xx=1 to 255
	test= REQUEST{2}("Material_info", xx, "gs_mat_surface_rgb", r, g, b)
	if test then
		dummy= REQUEST("Name_of_material", xx, name)
		if strsub(materials,1,1) = strsub(name,1,1) then
			n= n+1
			t&lt;N&gt;= name
		endif
	endif
next xx


!--array sorting
for i=1 to vardim1(t)
	s&lt;I&gt;= ""		!--for numbers--&amp;gt;0 | for strings--&amp;gt;""
next i

for i=1 to vardim1(t)
	p=i
	for j=1 to i-1
		if s&lt;J&gt;&amp;gt;t&lt;I&gt; then
			for k=i to j+1 step -1
				s&lt;K&gt;=s[k-1]
			next k
			p=j : j=vardim1(s)
		endif 
	next j
	s&lt;P&gt;=t&lt;I&gt; 
next i

!--deliver the value list
values "materials" s, custom


&lt;/I&gt;&lt;/P&gt;&lt;/K&gt;&lt;/I&gt;&lt;/J&gt;&lt;/I&gt;&lt;/N&gt;&lt;/PRE&gt;

&lt;BR /&gt;
Hope this helps.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards, Juha</description>
      <pubDate>Wed, 07 Jul 2010 05:10:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167625#M20553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-07T05:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167626#M20554</link>
      <description>Thank you!&lt;BR /&gt;
The REQUEST{2} test works perfectly, allowing one to test whether an index number is valid before requesting the material name for that index.&lt;BR /&gt;
&lt;BR /&gt;
I greatly appreciate your assistance.&lt;BR /&gt;
&lt;BR /&gt;
Now, I have one other question...&lt;BR /&gt;
&lt;BR /&gt;
I would like to show the material texture directly on plan, but am having problems with the script syntax, and the GDL manual documentation isn't very helpful. &lt;BR /&gt;
&lt;BR /&gt;
My script currently is creating an array of little square slabs that each have a different material, and they show beautifully in 3D. In 2D, I'm using the following statement to show the squares on plan:
&lt;PRE&gt;project2{2} 3,270,3+1024
&lt;/PRE&gt;
This is crude, but gives a quick preview of the squares with a simple color based on the material, but it does not use the actual texture files of the materials.&lt;BR /&gt;
&lt;BR /&gt;
I'd like to create temporary Symbol Fill definitions in the 2D script, and then run my loop to draw my little squares in 2D instead of using the Project2 statement. I have coded the following two lines - the first one queries the material texture file name and size, then the second one attempts to create a new Image Fill definition:
&lt;PRE&gt;n=REQUEST{2} ("Material_info", "07 | Spanish Tile", "gs_mat_texture", file_name, w, h, mask, alpha)
DEFINE IMAGE_FILL "TestFill" file_name, fillTYPES_MASK 2, 85, 255, 136, 255, 34, 255, 136, 255, h, w, 0, 0&lt;/PRE&gt;
However, when I use the Check Script button, I get a syntax error for the second line that says "String type expression required at line 7..." I don't know what my error is - can you try this and let me know what I'm doing wrong? &lt;BR /&gt;
&lt;BR /&gt;
Thanks again, in advance, for your help!&lt;BR /&gt;
&lt;BR /&gt;
Eric</description>
      <pubDate>Wed, 07 Jul 2010 06:40:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167626#M20554</guid>
      <dc:creator>Eric Bobrow</dc:creator>
      <dc:date>2010-07-07T06:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167627#M20555</link>
      <description>Juha -&lt;BR /&gt;
Just a quick note - I first posted a short reply thanking you for your help. Then I went back and edited my post to add another question. &lt;BR /&gt;
Since I'm not sure whether you'd get another notification about the edited post, I'm adding this extra "reply" to make sure you know that I have another question that I hope you can help me with!&lt;BR /&gt;
Eric</description>
      <pubDate>Wed, 07 Jul 2010 07:56:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167627#M20555</guid>
      <dc:creator>Eric Bobrow</dc:creator>
      <dc:date>2010-07-07T07:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167628#M20556</link>
      <description>&lt;BLOCKQUOTE&gt;Eric wrote:&lt;BR /&gt;... when I use the Check Script button [with DEFINE IMAGE_FILL], I get a syntax error for the second line that says "String type expression required at line 7..." I don't know what my error is - can you try this and let me know what I'm doing wrong? &lt;/BLOCKQUOTE&gt;

Hi Eric,&lt;BR /&gt;
&lt;BR /&gt;
I'm afraid you found an annoying bug in the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;DEFINE IMAGE_FILL&lt;E&gt;&lt;/E&gt; command. AC doesn't accept a string type variable as the file name, only a constant string expression in quotes. I can't think of any workaround. I entered this as a bug in GDL and I think the fix can get into a v14 hotfix.&lt;BR /&gt;
&lt;BR /&gt;
I'm sorry you have to wait for the solution.&lt;BR /&gt;
&lt;BR /&gt;
Best regards,</description>
      <pubDate>Thu, 08 Jul 2010 12:21:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167628#M20556</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2010-07-08T12:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167629#M20557</link>
      <description>Zsolt -&lt;BR /&gt;
Wow! Did this bug exist in AC13? Is this the first time this bug has been reported?&lt;BR /&gt;
I hope we don't have to wait too long for a hotfix...&lt;BR /&gt;
Thanks for letting me know that it's a bug rather than user error!&lt;BR /&gt;
Eric</description>
      <pubDate>Thu, 08 Jul 2010 14:54:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167629#M20557</guid>
      <dc:creator>Eric Bobrow</dc:creator>
      <dc:date>2010-07-08T14:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167630#M20558</link>
      <description>Hello Eric,&lt;BR /&gt;
&lt;BR /&gt;
This might be worth trying;&lt;BR /&gt;
&lt;BR /&gt;
- make a new string type parameter "pict" and make it a table with one cell&lt;BR /&gt;
&lt;BR /&gt;
- put the file_name into that table with "parameters" command before using it&lt;BR /&gt;
&lt;BR /&gt;
- use a new, just invented command: SET IMAGE_FILL&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;
n=REQUEST{2} ("Material_info", "Testing Material", "gs_mat_texture", file_name, w, h, mask, alpha)
parameters pict[1]= file_name
DEFINE IMAGE_FILL "Testing" pict[1], 255, 255, 255, 255, 255, 255, 255, 255, w, h, 0, 0

set IMAGE_FILL "Testing"
poly2_ 4, 1+2+4+8,
	0, 0, 0,
	a, 0, 0,
	a, b, 0,
	0, b, 0

&lt;/PRE&gt;

&lt;BR /&gt;
It works for me, hopefully for you too.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards; Juha</description>
      <pubDate>Thu, 08 Jul 2010 19:52:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167630#M20558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-08T19:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167631#M20559</link>
      <description>Juha -&lt;BR /&gt;
&lt;BR /&gt;
I tried your code, and was only partly successful. It does not generate an error message, but the value the script assigns for the pict[1] cell does not seem to be picked up properly. &lt;BR /&gt;
&lt;BR /&gt;
I set the initial value for pict[1] to be "abc", then in the script assigned it to the value returned in the variable file_name. &lt;BR /&gt;
&lt;BR /&gt;
When assigning this using the "parameters" option (as you suggested):
&lt;PRE&gt;parameters pict[1]= file_name&lt;/PRE&gt;
the value is not picked up. &lt;BR /&gt;
&lt;BR /&gt;
I verified this using the following line:
&lt;PRE&gt;print "pict value= ", pict[1], ", ", file_name&lt;/PRE&gt;
which results in this message:
&lt;BLOCKQUOTE&gt;pict value= abc, Terracotta roof tile&lt;/BLOCKQUOTE&gt;

When I take off the "parameters" option:
&lt;PRE&gt;pict[1]= file_name&lt;/PRE&gt;
then the script generates an error (like it did earlier):
&lt;BLOCKQUOTE&gt;String type expression required at line 11 in the 2D script of file AMT Material Matrix.gsm.&lt;/BLOCKQUOTE&gt;

As a last resort, I tried using both lines (the two variations of the pict[1]= statement, one with "parameters" and the other without), and still couldn't get it to work.&lt;BR /&gt;
&lt;BR /&gt;
So, I am at a loss. If you have any ideas, please let me know!&lt;BR /&gt;
&lt;BR /&gt;
Eric</description>
      <pubDate>Thu, 08 Jul 2010 22:21:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167631#M20559</guid>
      <dc:creator>Eric Bobrow</dc:creator>
      <dc:date>2010-07-08T22:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167632#M20560</link>
      <description>Hello Eric,&lt;BR /&gt;
&lt;BR /&gt;
I wonder if you have the code in the master script? At least the &lt;BR /&gt;
first part;&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!--master script
n=REQUEST{2} ("Material_info", "Testing Material", "gs_mat_texture", file_name, w, h, mask, alpha) 
parameters pict[1]= file_name 
DEFINE IMAGE_FILL "Testing" pict[1], 255, 255, 255, 255, 255, 255, 255, 255, w, h, 0, 0 
&lt;/PRE&gt;

&lt;BR /&gt;
The second part can be in the master or 2D script
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!--master or 2D script
set IMAGE_FILL "Testing" 
poly2_ 4, 1+2+4+8, 
   0, 0, 0, 
   a, 0, 0, 
   a, b, 0, 
   0, b, 0 
&lt;/PRE&gt;

I tested again and works nicely here.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards, Juha</description>
      <pubDate>Fri, 09 Jul 2010 06:12:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167632#M20560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-09T06:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167633#M20561</link>
      <description>Juha -&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your suggestions. Based on your idea, I created an object that draws an Image Fill in 2D based on the texture image file for any material chosen parametrically. I then adapted my original matrix part to call the new object repeatedly, once for each material swatch sample. &lt;BR /&gt;
&lt;BR /&gt;
Unfortunately, although the new object will draw appropriate textures when placed on the floor plan, when it is called from the matrix object, the parameters assignment statement isn't working. I don't know if this is a bug, or if it is a limitation in the way that PARAMETERS statements work in the master script. (I tried placing some or all of the code into the Parameter Script, but couldn't get it to work at all.)&lt;BR /&gt;
&lt;BR /&gt;
Here is my Master Script, which has a print statement included for testing purposes:
&lt;PRE&gt;n=REQUEST{2} ("Material_info", materialtype, "gs_mat_texture", file_name, w, h, mask, alpha)
parameters pict[1]= file_name
print "materialtype=",materialtype," file_name=",file_name,", pict[1]=",pict[1]
DEFINE IMAGE_FILL "newimagefill" pict[1], 255, 255, 255, 255, 255, 255, 255, 255, w, h, 0, 0 
&lt;/PRE&gt;

When I ran a small loop with my matrix object, which called the simple object once for each material, I got the following report:
&lt;BLOCKQUOTE&gt;materialtype= 73  file_name=Brick Common Flemmish alpha, pict[1]=Brick Running alpha&lt;BR /&gt;
materialtype= 72  file_name=Brick English alpha, pict[1]=Brick Running alpha&lt;BR /&gt;
materialtype= 70  file_name=Brick Surface alpha, pict[1]=Brick Running alpha&lt;BR /&gt;
materialtype= 71  file_name=Stucco alpha, pict[1]=Brick Running alpha&lt;BR /&gt;
materialtype= 74  file_name=Tiles Wall alpha, pict[1]=Brick Running alpha&lt;/BLOCKQUOTE&gt;

You can see that each time the object was called, it received a different materialtype as a parameter from the matrix object. The file_name variable successfully picks up the proper texture file name, however the pict[1] string array variable is somehow not being set even though I am using the parameters statement as you did in the Master Script.&lt;BR /&gt;
&lt;BR /&gt;
If you send me a private message with your email address, I'll send you a copy of the two GDL parts for you to see for yourself!</description>
      <pubDate>Fri, 09 Jul 2010 08:46:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167633#M20561</guid>
      <dc:creator>Eric Bobrow</dc:creator>
      <dc:date>2010-07-09T08:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167634#M20562</link>
      <description>Hi Eric,&lt;BR /&gt;
&lt;BR /&gt;
This bug was there in AC13 but not in AC12. I guess no one uses this in production. We tested it thoroughly when the command came to be, but now I see that we don't have a daily test for this one. So you're the first one to report it.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for bringing this to our attention and sorry again for the annoyance!&lt;BR /&gt;
&lt;BR /&gt;
Regs,</description>
      <pubDate>Fri, 09 Jul 2010 15:13:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167634#M20562</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2010-07-09T15:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167635#M20563</link>
      <description>Hello Eric,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the email and the posted objects. Here is a general &lt;BR /&gt;
piece of code where the textures react correctly. I stored the fill &lt;BR /&gt;
and texture names in the "pict" parameter table and picked them &lt;BR /&gt;
for 2D plan from there. Seems to work.&lt;BR /&gt;
&lt;BR /&gt;
I post it here just in case someone finds it useful, therefore I added &lt;BR /&gt;
some comments too.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
As before a string type parameter "pict" is needed, it is made &lt;BR /&gt;
a table with two columns -&amp;gt; pict[1][1]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
This is a master script:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;
!--stretching the table
for xx=1 to 255
	parameters pict[xx][1]="", pict[xx][2]=""
next xx

!--looping thru materials
for xx=1 to 255
	test= REQUEST{2}("Material_info", xx, "gs_mat_surface_rgb", r, g, b)

	if test then!&amp;lt;--we have a material with index xx

		dummy= REQUEST("Name_of_material", xx, name) 
		file_name= ""
		n=REQUEST{2} ("Material_info", name, "gs_mat_texture", file_name, w, h, mask, alpha)
		nr= nr+1

		if file_name#"" then!&amp;lt;--we have a material with a texture --- store the fill name and the texture name, define image fill

			fill_name= name
			parameters pict[nr][1]= fill_name, pict[nr][2]= file_name
			DEFINE IMAGE_FILL pict[nr][1] pict[nr][2], 255, 255, 255, 255, 255, 255, 255, 255, w, h, 0, 0

		else!&amp;lt;--we have a material but no texture --- store just the fill name

			parameters pict[nr][1]= name, pict[nr][2]= ""

		endif
	endif
next xx



!--just limiting a stretching hotspot values
values "A" range[1,nr] step 1, 1

&lt;/PRE&gt;

&lt;BR /&gt;
This is a 2D script:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;
hotspot2 0, 0
hotspot2 a, 0

!--looping thru stored materials
for xx= 1 to vardim1(pict)

	if pict[xx][2]#"" then!&amp;lt;--we have an image fill

		set IMAGE_FILL pict[xx][1]!&amp;lt;--get the mage fill name
		poly2_ 4, 1+2+4+8,
			0,   0, 1,
			1,   0, 1,
			1,	-1, 1,
			0,	-1, 1

  		!--texture matrix transformation  
		if dx&amp;lt;a-1 then
			add2 1, 0
			dx= dx+1
		else
			add2 -a+1, -1
			dx= 0
		endif
		nt=nt+1

	endif

next xx
del nt

&lt;/PRE&gt;

&lt;BR /&gt;
Best Regards, Juha</description>
      <pubDate>Fri, 09 Jul 2010 20:42:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167635#M20563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-09T20:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to suppress warning messages in a GDL scr</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167636#M20564</link>
      <description>Thank you!&lt;BR /&gt;
I haven't had a chance to test it out, but it looks great.&lt;BR /&gt;
Eric</description>
      <pubDate>Sat, 10 Jul 2010 07:38:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Is-there-a-way-to-suppress-warning-messages-in-a-GDL-script/m-p/167636#M20564</guid>
      <dc:creator>Eric Bobrow</dc:creator>
      <dc:date>2010-07-10T07:38:50Z</dc:date>
    </item>
  </channel>
</rss>

