<?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 Improve Xform by adding support for parameters/variable arrays in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263251#M1819</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi there,&lt;BR /&gt;
&lt;BR /&gt;
I would like to suggest that &lt;B&gt;Xform&lt;/B&gt; should undergo an improvement by adding support for input parameters/variable arrays, just like other GDL functions such as values{2}&lt;BR /&gt;
&lt;BR /&gt;
Xform:&lt;BR /&gt;
Is a 3D transformation matrix stack that with it you can move, rotate, scale, shear, tilt any object all at the same time.&lt;BR /&gt;
It's syntax is as follows (see GDL Guide):&lt;BR /&gt;
 XFORM newx_x, newy_x, newz_x, offset_x,&lt;BR /&gt;
		newx_y, newy_y, newz_y, offset_y,&lt;BR /&gt;
		newx_z, newy_z, newz_z, offset_z&lt;BR /&gt;
&lt;BR /&gt;
And as you can see it needs 12 parameters/variable inputs and that is a lot&lt;BR /&gt;
&lt;BR /&gt;
But if you specify for instance&lt;BR /&gt;
Xform{2} paramArray&lt;BR /&gt;
&lt;BR /&gt;
were paramArray can have the full stack then you only need it once, and with &lt;A href="http://gdl.graphisoft.com/gdl-style-guide/library-part-format" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://gdl.graphisoft.com/gdl-style-guide/library-part-format" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://gdl.graphisoft.com/gdl-style-guide/library-part-format" target="_blank"&gt;&lt;/A&gt;&lt;/S&gt;&lt;/R&gt;&lt;E&gt;&lt;/E&gt; the possibilities of improving GDL object parametricity will increase substantially&lt;/DIV&gt;</description>
    <pubDate>Sat, 12 Oct 2019 14:50:21 GMT</pubDate>
    <dc:creator>Nader Belal</dc:creator>
    <dc:date>2019-10-12T14:50:21Z</dc:date>
    <item>
      <title>Improve Xform by adding support for parameters/variable arrays</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263251#M1819</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi there,&lt;BR /&gt;
&lt;BR /&gt;
I would like to suggest that &lt;B&gt;Xform&lt;/B&gt; should undergo an improvement by adding support for input parameters/variable arrays, just like other GDL functions such as values{2}&lt;BR /&gt;
&lt;BR /&gt;
Xform:&lt;BR /&gt;
Is a 3D transformation matrix stack that with it you can move, rotate, scale, shear, tilt any object all at the same time.&lt;BR /&gt;
It's syntax is as follows (see GDL Guide):&lt;BR /&gt;
 XFORM newx_x, newy_x, newz_x, offset_x,&lt;BR /&gt;
		newx_y, newy_y, newz_y, offset_y,&lt;BR /&gt;
		newx_z, newy_z, newz_z, offset_z&lt;BR /&gt;
&lt;BR /&gt;
And as you can see it needs 12 parameters/variable inputs and that is a lot&lt;BR /&gt;
&lt;BR /&gt;
But if you specify for instance&lt;BR /&gt;
Xform{2} paramArray&lt;BR /&gt;
&lt;BR /&gt;
were paramArray can have the full stack then you only need it once, and with &lt;A href="http://gdl.graphisoft.com/gdl-style-guide/library-part-format" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://gdl.graphisoft.com/gdl-style-guide/library-part-format" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://gdl.graphisoft.com/gdl-style-guide/library-part-format" target="_blank"&gt;&lt;/A&gt;&lt;/S&gt;&lt;/R&gt;&lt;E&gt;&lt;/E&gt; the possibilities of improving GDL object parametricity will increase substantially&lt;/DIV&gt;</description>
      <pubDate>Sat, 12 Oct 2019 14:50:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263251#M1819</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-10-12T14:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Xform by adding support for parameters/variable arrays</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263252#M1820</link>
      <description>dim _something[]: _n=1&lt;BR /&gt;
&lt;BR /&gt;
_something[_n]=xxxx: _n=_n+1&lt;BR /&gt;
....&lt;BR /&gt;
_something[_n]=zzzz: _n=_n+1&lt;BR /&gt;
&lt;BR /&gt;
or have the array handy&lt;BR /&gt;
&lt;BR /&gt;
for _i=1 to  12 :vardim1(_something)&lt;BR /&gt;
put _something[_i]&lt;BR /&gt;
next _i&lt;BR /&gt;
&lt;BR /&gt;
Xform get(nsp)&lt;BR /&gt;
&lt;BR /&gt;
I did not try but should work, as it works in other non array aware commands.&lt;BR /&gt;
&lt;BR /&gt;
Piotr</description>
      <pubDate>Sat, 12 Oct 2019 19:47:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263252#M1820</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2019-10-12T19:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Xform by adding support for parameters/variable arrays</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263253#M1821</link>
      <description>@Piotr&lt;BR /&gt;
&lt;BR /&gt;
I know that trick, and the other one using parameter buffer, but try to follow my logic.&lt;BR /&gt;
&lt;BR /&gt;
Any GDL object is already loaded to the memory will all it's data (&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;including parameters&lt;E&gt;&lt;/E&gt;), so why I have to load a second time the same values and data in memory just to make xform funtions, &lt;FONT size="150"&gt;KNOWNING&lt;/FONT&gt; that their is some GDL functions such as &lt;FONT size="150"&gt;values{2}&lt;/FONT&gt; that accepts array variables and parameters !!!&lt;BR /&gt;
&lt;BR /&gt;
By the way, did you read the section of the link that I have posted ???</description>
      <pubDate>Sun, 13 Oct 2019 11:16:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263253#M1821</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-10-13T11:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Xform by adding support for parameters/variable arrays</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263254#M1822</link>
      <description>There are "problems" with discussing the obvious...&lt;BR /&gt;
I am of course PRO...&lt;BR /&gt;
&lt;BR /&gt;
I remember discussion regarding the commands  related with NURBS...when the answer was that those commands were not supposed to be "human operated"  ;P... I think the answer regarding Xform would be the same... &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
Piotr&lt;BR /&gt;
&lt;BR /&gt;
PS I do not use xform much, I rather split the tranformations - becuase it is way easier to find what is not working...(either code...or the commands like some do not after mul*)</description>
      <pubDate>Mon, 14 Oct 2019 06:46:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263254#M1822</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2019-10-14T06:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Xform by adding support for parameters/variable arrays</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263255#M1823</link>
      <description>@Piotr&lt;BR /&gt;
&lt;BR /&gt;
Well to be honest, I understand why Nurbs are not supposed to be human operated, since that the amount of settings that any GDL scriptor is quiet high in comparison to that of the rest of GDL functions, but I understand your point of view and I totally support it, besides I have never doubted you being a pro.&lt;BR /&gt;
&lt;BR /&gt;
Splitting the transformations into various steps is cool, but their were cases that I have seen that using xform was much better, but I managed to harness that beast to a great extense point.&lt;BR /&gt;
&lt;BR /&gt;
Anyway, I believe that GDL for what it was intended to be, and what it can project in the future have good future, and that's why I'm calling for improvements ... &lt;A href="https://archicad-talk.graphisoft.com/viewtopic.php?f=6&amp;amp;t=67959&amp;amp;start=10" target="_blank"&gt;just like the thread I once created asking for improvements to the GDL Reference manual&lt;/A&gt;, you basically you will see the same issues repeated by many people in the past years.</description>
      <pubDate>Mon, 14 Oct 2019 20:30:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263255#M1823</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-10-14T20:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Xform by adding support for parameters/variable arrays</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263256#M1824</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
Thank you for posting your ideas on the forum.&lt;BR /&gt;
&lt;BR /&gt;
I'm glad to say that we took notice and we have added this Wish into our Wish database.&lt;BR /&gt;
(For future reference, you can refer to it as Wish 12539)&lt;BR /&gt;
&lt;BR /&gt;
I hope we see this get implemented in the future &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
I wish you all a fantastic day!&lt;BR /&gt;
Kind regards,&lt;BR /&gt;
Ghaleb</description>
      <pubDate>Tue, 17 Dec 2019 14:54:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Improve-Xform-by-adding-support-for-parameters-variable-arrays/m-p/263256#M1824</guid>
      <dc:creator>Ghaleb Khadra</dc:creator>
      <dc:date>2019-12-17T14:54:54Z</dc:date>
    </item>
  </channel>
</rss>

