<?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 Stretchy object in section in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-object-in-section/m-p/72363#M27979</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi all. I was wondering if anyone knew how to script an object that can be stretched horizontally and vertically in section similar to the way complex profiles do. I have a script that was posted by someone a while ago (see below) that has a stretchy hotspot with text attatched to it for 2d but can't figure out how to do it in 3D with a solid object. Just a simple stretchable block would be fine.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Doug&lt;BR /&gt;
&lt;BR /&gt;
unID=1 &lt;BR /&gt;
&lt;BR /&gt;
!_________________________moving it horizontally &lt;BR /&gt;
hotspot2 0,verti,unID,horz,1+128 : unID=unID+1 &lt;BR /&gt;
hotspot2 -1,verti,unID,horz,3 : unID=unID+1 &lt;BR /&gt;
hotspot2 horz,verti,unID,horz,2+256 : unID=unID+1 &lt;BR /&gt;
&lt;BR /&gt;
!_________________________moving it vertically &lt;BR /&gt;
hotspot2 horz,0,unID,verti,1+128 : unID=unID+1 &lt;BR /&gt;
hotspot2 horz,-1,unID,verti,3 : unID=unID+1 &lt;BR /&gt;
hotspot2 horz,verti,unID,verti,2+256 : unID=unID+1 &lt;BR /&gt;
&lt;BR /&gt;
define style 'identify' arial, x_B ,2 ,0 &lt;BR /&gt;
set style 'identify' &lt;BR /&gt;
&lt;BR /&gt;
text2 horz,verti,"Your Text Here"&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 13 Apr 2008 20:08:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-04-13T20:08:16Z</dc:date>
    <item>
      <title>Stretchy object in section</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-object-in-section/m-p/72363#M27979</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi all. I was wondering if anyone knew how to script an object that can be stretched horizontally and vertically in section similar to the way complex profiles do. I have a script that was posted by someone a while ago (see below) that has a stretchy hotspot with text attatched to it for 2d but can't figure out how to do it in 3D with a solid object. Just a simple stretchable block would be fine.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Doug&lt;BR /&gt;
&lt;BR /&gt;
unID=1 &lt;BR /&gt;
&lt;BR /&gt;
!_________________________moving it horizontally &lt;BR /&gt;
hotspot2 0,verti,unID,horz,1+128 : unID=unID+1 &lt;BR /&gt;
hotspot2 -1,verti,unID,horz,3 : unID=unID+1 &lt;BR /&gt;
hotspot2 horz,verti,unID,horz,2+256 : unID=unID+1 &lt;BR /&gt;
&lt;BR /&gt;
!_________________________moving it vertically &lt;BR /&gt;
hotspot2 horz,0,unID,verti,1+128 : unID=unID+1 &lt;BR /&gt;
hotspot2 horz,-1,unID,verti,3 : unID=unID+1 &lt;BR /&gt;
hotspot2 horz,verti,unID,verti,2+256 : unID=unID+1 &lt;BR /&gt;
&lt;BR /&gt;
define style 'identify' arial, x_B ,2 ,0 &lt;BR /&gt;
set style 'identify' &lt;BR /&gt;
&lt;BR /&gt;
text2 horz,verti,"Your Text Here"&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 13 Apr 2008 20:08:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-object-in-section/m-p/72363#M27979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-13T20:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy object in section</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-object-in-section/m-p/72364#M27980</link>
      <description>This edits the basic length and height params; no reason you couldn't change them to custom params:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;hsid=1
!! Height edit&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;
HOTSPOT A, 0, 0, hsid, ZZYZX, 1+128 : hsid=hsid+1 !b
HOTSPOT A, 0, ZZYZX, hsid, ZZYZX, 2 : hsid=hsid+1 !m
HOTSPOT A, 0, -1, hsid, ZZYZX, 3 : hsid=hsid+1 !r

!! Length edit&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;
HOTSPOT 0, 0, ZZYZX, hsid, A, 1+128 : hsid=hsid+1 !b
HOTSPOT A, 0, ZZYZX, hsid, A, 2 : hsid=hsid+1 !m
HOTSPOT -1, 0, ZZYZX, hsid, A, 3 : hsid=hsid+1 !r
&lt;/PRE&gt;

This works reliably for me in 3D. Graphical editing in section is still buggy IMO, but when it works it works.&lt;BR /&gt;
&lt;BR /&gt;
Of course this is in the 3D script, which means that TEXT2 isn't going to do anything. And they need to be HOTSPOTs, no '2'. Three params (X, Y, Z) before the ID.&lt;BR /&gt;
&lt;BR /&gt;
This is the way to offer stretchy height for objects in section. It makes you wonder why plain vertical stretching can't just work.&lt;BR /&gt;
&lt;BR /&gt;
Tip: Put a space after a comma, it makes the code easier to read. Another: Do a find/replace of ',' with ', '.</description>
      <pubDate>Mon, 14 Apr 2008 13:05:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-object-in-section/m-p/72364#M27980</guid>
      <dc:creator>James Murray</dc:creator>
      <dc:date>2008-04-14T13:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Stretchy object in section</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-object-in-section/m-p/72365#M27981</link>
      <description>&lt;BLOCKQUOTE&gt;This is the way to offer stretchy height for objects in section. It makes you wonder why plain vertical stretching can't just work. &lt;/BLOCKQUOTE&gt;

I agree James. I had a feeling that the same type of script would do the same thing in 3D as the 2D I posted(with modifications). I'm not claiming to fully understand how it works but I'm glad it does. Now I've got to try to put it to use. Thank you very much for your input.&lt;BR /&gt;
&lt;BR /&gt;
Doug</description>
      <pubDate>Mon, 14 Apr 2008 22:22:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Stretchy-object-in-section/m-p/72365#M27981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-14T22:22:33Z</dc:date>
    </item>
  </channel>
</rss>

