<?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 Replace image with texture in Picture GDL object in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Replace-image-with-texture-in-Picture-GDL-object/m-p/634237#M45783</link>
    <description>&lt;P&gt;I want to replace in the GDL script the image of the Picture GDL object with an Archicad texture. The main reason for doing this is because when exporting my projects into Twinmotion or Enscape the pictures becomes white without any picture. I've opened the GDL but I don't know how to do it, even if is it possible to do what I need..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the place where to change things is in this part of the 3d code (lines 193-207 of the script):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;LI-CODE lang="markup"&gt;MATERIAL "pictmat"

add -a/2 + bIsFrame * _picOffset,
bIsFrame * _picOffset,
b + 0.001

if gs_picture_custom = 0 then
picture 1, a - 2*bIsFrame * _picOffset, zzyzx - 2*bIsFrame * _picOffset, 0
else
if gs_picture_name &amp;lt;&amp;gt; "" then
picture gs_picture_name, a - 2*bIsFrame * _picOffset, zzyzx - 2*bIsFrame * _picOffset, 0
else
picture 1, a - 2*bIsFrame * _picOffset, zzyzx - 2*bIsFrame * _picOffset, 0
endif
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've attached a screen capture of what happens when exporting my project.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Mac Apple Silicon 14 - Sonoma&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2024-10-04 a las 10.53.40.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77656i7466C7B42E68B683/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de pantalla 2024-10-04 a las 10.53.40.png" alt="Captura de pantalla 2024-10-04 a las 10.53.40.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2024 18:13:14 GMT</pubDate>
    <dc:creator>Jose Gradoli</dc:creator>
    <dc:date>2024-10-04T18:13:14Z</dc:date>
    <item>
      <title>Replace image with texture in Picture GDL object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Replace-image-with-texture-in-Picture-GDL-object/m-p/634237#M45783</link>
      <description>&lt;P&gt;I want to replace in the GDL script the image of the Picture GDL object with an Archicad texture. The main reason for doing this is because when exporting my projects into Twinmotion or Enscape the pictures becomes white without any picture. I've opened the GDL but I don't know how to do it, even if is it possible to do what I need..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the place where to change things is in this part of the 3d code (lines 193-207 of the script):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;LI-CODE lang="markup"&gt;MATERIAL "pictmat"

add -a/2 + bIsFrame * _picOffset,
bIsFrame * _picOffset,
b + 0.001

if gs_picture_custom = 0 then
picture 1, a - 2*bIsFrame * _picOffset, zzyzx - 2*bIsFrame * _picOffset, 0
else
if gs_picture_name &amp;lt;&amp;gt; "" then
picture gs_picture_name, a - 2*bIsFrame * _picOffset, zzyzx - 2*bIsFrame * _picOffset, 0
else
picture 1, a - 2*bIsFrame * _picOffset, zzyzx - 2*bIsFrame * _picOffset, 0
endif
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've attached a screen capture of what happens when exporting my project.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Mac Apple Silicon 14 - Sonoma&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2024-10-04 a las 10.53.40.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/77656i7466C7B42E68B683/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de pantalla 2024-10-04 a las 10.53.40.png" alt="Captura de pantalla 2024-10-04 a las 10.53.40.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 18:13:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Replace-image-with-texture-in-Picture-GDL-object/m-p/634237#M45783</guid>
      <dc:creator>Jose Gradoli</dc:creator>
      <dc:date>2024-10-04T18:13:14Z</dc:date>
    </item>
  </channel>
</rss>

