<?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 Betreff: GDL Stretch fill in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652228#M7448</link>
    <description>&lt;P&gt;Yeah, I did and still not working.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 13:59:45 GMT</pubDate>
    <dc:creator>Richard Allili</dc:creator>
    <dc:date>2025-02-18T13:59:45Z</dc:date>
    <item>
      <title>GDL Stretch fill</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652074#M7445</link>
      <description>&lt;P&gt;I'm creating a custom gdl object where the user can scale it's texture and fill also. I managed to scale the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;texture, but I'm having trouble scaling the fill. I'm looking to scale the fill which can be seen in the elevation view.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For the texture I follow these steps:&lt;/P&gt;
&lt;P&gt;1. Get the surface index from the building material&lt;/P&gt;
&lt;P&gt;2. Get the texture information from the surface index&lt;/P&gt;
&lt;P&gt;3. Create a new texture with scaled sizes (based on the informations from 2.)&lt;/P&gt;
&lt;P&gt;4. Apply it to a new material&lt;/P&gt;
&lt;P&gt;5. use this new material as a face of a wall (CWALL_ to be precise)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I tried out to set it in 2D script with GLOB_CONTEXT=4 (Elevation view) but nothing happened.&lt;/P&gt;
&lt;P&gt;Anyone could help me out how this can be done?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Code for the texture part (3D script) :&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;n = REQUEST{2} ("Building_Material_info", custom_material, "gs_bmat_surface", _surface_index)
n = REQUEST{2} ("Material_info", _surface_index, "gs_mat_texture",
            _file_name, _w, _h, _mask, _alpha)
define texture "CUSTOMTEXTURE" _file_name, _w * textureSegmentSizeX, _h * textureSegmentSizeY, _mask, 0
define material "CUSTOMmaterial" 21,
  1, 1, 1,
  1, 1, 0, 0.0,
  0, 0,
  IND(FILL, "CUSTOMFILL"), 1, ! Tried to make a custom fill from the building material's fill, but here is where I stuck.
  ind (texture, "CUSTOMTEXTURE")

CWALL_ "CUSTOMmaterial", 0, 0, ...&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;SPAN&gt;&lt;BR /&gt;Note: In case of slab I've "cheated" my way and drawed a POLY2_B with the correct transformation matrix.&lt;BR /&gt;Is there a way to apply this to the elevation view's uncut fill?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Feb 2025 02:15:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652074#M7445</guid>
      <dc:creator>Richard Allili</dc:creator>
      <dc:date>2025-02-20T02:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Stretch fill</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652218#M7446</link>
      <description>&lt;P&gt;Hi Richard,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also have trouble with&amp;nbsp;&lt;SPAN&gt;GLOB_CONTEXT not doing anything in my script. I would be keen to see how that works in practice if anyone has experience in it. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers, Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 12:55:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652218#M7446</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2025-02-18T12:55:25Z</dc:date>
    </item>
    <item>
      <title>Betreff: GDL Stretch fill</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652227#M7447</link>
      <description>&lt;DIV class="page" title="Page 471"&gt;
&lt;DIV class="layoutArea"&gt;
&lt;DIV class="column"&gt;
&lt;P&gt;&lt;SPAN&gt;GLOB_CONTEXT is depracted.&lt;BR /&gt;Have you tried GLOB_VIEW_TYPE instead?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Feb 2025 13:58:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652227#M7447</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2025-02-18T13:58:34Z</dc:date>
    </item>
    <item>
      <title>Betreff: GDL Stretch fill</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652228#M7448</link>
      <description>&lt;P&gt;Yeah, I did and still not working.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 13:59:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652228#M7448</guid>
      <dc:creator>Richard Allili</dc:creator>
      <dc:date>2025-02-18T13:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Stretch fill</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652368#M7452</link>
      <description>&lt;P&gt;Hi Richard,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried Jochens solution and this works for the 3D window. When viewed in Elevation there is nothing, but in 3D window the sphere is present. Note:&amp;nbsp;&lt;A href="https://gdl.graphisoft.com/gdl-basics/scale-sensitivity" target="_self"&gt;&lt;SPAN&gt;3D – 3, Section – 4.&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;I can't find what the other values 1, 2 and 5 would represent but prehaps they could be the floor plan or elevation?&lt;/P&gt;
&lt;P&gt;!! 3D Script&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF GLOB_VIEW_TYPE = 3 THEN
ADD 0,0,0
SPHERE 0.105
Del 1
ENDIF&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry I can't help with the scaling, that is a bit beyond my knowledge. Best regards, Matt&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 02:18:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652368#M7452</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2025-02-20T02:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Stretch fill</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652444#M7455</link>
      <description>&lt;P&gt;There is no GLOB_VIEW_TYPE = 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryKelly_0-1740015609581.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/83444iC8704745A52E61A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="BarryKelly_0-1740015609581.png" alt="BarryKelly_0-1740015609581.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 01:40:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Stretch-fill/m-p/652444#M7455</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2025-02-20T01:40:39Z</dc:date>
    </item>
  </channel>
</rss>

