<?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: Help with script in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61129#M39710</link>
    <description>Tanks for the reply. I am getting somewhere with this. I have tried the GLOB_MODPAR_NAME technique, but it doesn't quite work because the important thing is that it is the difference &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;before&lt;E&gt;&lt;/E&gt; the parameter is changed that determines the later relationship. As soon as you change the parameter the difference has changed!&lt;BR /&gt;
Wolf (see earlier reply from him in this topic) helped me towards this with some suggestions we traded by private messaging, but I haven't got it to work perfectly yet. His original idea didn't work, but it steered me in the right direction.&lt;BR /&gt;
One problem I encountered was that GLOB_MODPAR_NAME didn't seem to work until I used a 'workaround' provided by my reseller. This involved setting up a new text parameter (in the Parameters script) to read and store the value of GLOB_MODPAR_NAME. I used a new parameter called var.&lt;BR /&gt;
&lt;BR /&gt;
The current status of the in the master script is as follows:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;IF var="lg" THEN &lt;BR /&gt;
PARAMETERS old_diff=h-lg&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF var="h" THEN&lt;BR /&gt;
lg=h-old_diff&lt;BR /&gt;
ENDIF&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
This may seem somewhat confusing based on my first post on this topic, because, in fact, h must always be greater than lg.&lt;BR /&gt;
&lt;BR /&gt;
This little script does not achieve the required effect when h is changed for the first time after lg has changed, but if the parameter h is varied for a second time, then the relationship of lg to h is maintained. So my task is now to find out why that happens and to try to fix it. Any ideas would be greatly appreciated.&lt;BR /&gt;
&lt;BR /&gt;
The curious thing is that although old_diff is now defined as a (hidden) parameter, if the script is changed as follows:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;IF var="lg" THEN &lt;BR /&gt;
PARAMETERS old_diff=h-lg&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF var="h" THEN&lt;BR /&gt;
&lt;B&gt;PARAMETERS&lt;/B&gt; lg=h-old_diff&lt;BR /&gt;
ENDIF&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
the script doesn't work even on the second 'iteration'!! (N.B. h, and lg, are both parameters)</description>
    <pubDate>Wed, 17 Nov 2004 19:09:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-11-17T19:09:00Z</dc:date>
    <item>
      <title>Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61126#M39707</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I may be being stupid but, I hope that someone v. kind can assist.&lt;BR /&gt;
&lt;BR /&gt;
I have two variables h and lg, both controlled by user input and by hotspots in 3D. h is always less than lg, but the difference between the variables is not always the same, because the user can set either independently.&lt;BR /&gt;
&lt;BR /&gt;
BUT... I want the difference between the two variables to remain the same when the user varies the larger of the two i.e. lg. The problem seems to be that if I establish the relationship, any increase in lg automatically affects the difference. I have tried PUTs and GETs but this one has me completely stumped.&lt;BR /&gt;
&lt;BR /&gt;
Can anyone, PLEASE, help?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Nov 2004 20:00:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61126#M39707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-11-15T20:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61127#M39708</link>
      <description>Mikes, what you said is too difficult to understand.&lt;BR /&gt;
&lt;BR /&gt;
Would you like to show me some code?</description>
      <pubDate>Tue, 16 Nov 2004 06:54:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61127#M39708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-11-16T06:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61128#M39709</link>
      <description>mate, you have to write dependency script in the parameter script window, something like this:&lt;BR /&gt;
&lt;BR /&gt;
IF GLOB_MODPAR_NAME="lg" THEN PARAMETERS h=*whatever formula here to get it right*&lt;BR /&gt;
&lt;BR /&gt;
so, it means when lg gets changed (GLOB_MODPAR_NAME stores the very last changed parameter name, be careful it's case sensitive) it will 'force' parameter h to a defined equation</description>
      <pubDate>Wed, 17 Nov 2004 11:00:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61128#M39709</guid>
      <dc:creator>Rob</dc:creator>
      <dc:date>2004-11-17T11:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61129#M39710</link>
      <description>Tanks for the reply. I am getting somewhere with this. I have tried the GLOB_MODPAR_NAME technique, but it doesn't quite work because the important thing is that it is the difference &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;before&lt;E&gt;&lt;/E&gt; the parameter is changed that determines the later relationship. As soon as you change the parameter the difference has changed!&lt;BR /&gt;
Wolf (see earlier reply from him in this topic) helped me towards this with some suggestions we traded by private messaging, but I haven't got it to work perfectly yet. His original idea didn't work, but it steered me in the right direction.&lt;BR /&gt;
One problem I encountered was that GLOB_MODPAR_NAME didn't seem to work until I used a 'workaround' provided by my reseller. This involved setting up a new text parameter (in the Parameters script) to read and store the value of GLOB_MODPAR_NAME. I used a new parameter called var.&lt;BR /&gt;
&lt;BR /&gt;
The current status of the in the master script is as follows:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;IF var="lg" THEN &lt;BR /&gt;
PARAMETERS old_diff=h-lg&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF var="h" THEN&lt;BR /&gt;
lg=h-old_diff&lt;BR /&gt;
ENDIF&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
This may seem somewhat confusing based on my first post on this topic, because, in fact, h must always be greater than lg.&lt;BR /&gt;
&lt;BR /&gt;
This little script does not achieve the required effect when h is changed for the first time after lg has changed, but if the parameter h is varied for a second time, then the relationship of lg to h is maintained. So my task is now to find out why that happens and to try to fix it. Any ideas would be greatly appreciated.&lt;BR /&gt;
&lt;BR /&gt;
The curious thing is that although old_diff is now defined as a (hidden) parameter, if the script is changed as follows:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;IF var="lg" THEN &lt;BR /&gt;
PARAMETERS old_diff=h-lg&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
IF var="h" THEN&lt;BR /&gt;
&lt;B&gt;PARAMETERS&lt;/B&gt; lg=h-old_diff&lt;BR /&gt;
ENDIF&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
the script doesn't work even on the second 'iteration'!! (N.B. h, and lg, are both parameters)</description>
      <pubDate>Wed, 17 Nov 2004 19:09:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61129#M39710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-11-17T19:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61130#M39711</link>
      <description>Mike,&lt;BR /&gt;
&lt;BR /&gt;
It might help if you explain what you are trying to do in real terms. What is this part? Why does it need this particular relationship between the parameters?&lt;BR /&gt;
&lt;BR /&gt;
It does seem that if you need a value existing before the parameter changes, just put it into a place holder variable that you only use if the parameter is changed.</description>
      <pubDate>Thu, 18 Nov 2004 00:11:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61130#M39711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-11-18T00:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61131#M39712</link>
      <description>Matthew&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your reply. For reasons I don't wish to go into in this forum, I don't want to disclose the nature of the object.&lt;BR /&gt;
&lt;BR /&gt;
But in general terms, I have an object that has (amongst others) two parameters that the user can vary, either in the object's settings interface or by using stretchy hotspots in the 3D window.&lt;BR /&gt;
&lt;BR /&gt;
One parameter, h, will always be longer than the other, lg. (This reverses the relationship described in my initial post here, but the principle remains the same.) &lt;BR /&gt;
&lt;BR /&gt;
Both parameters are used to determine the length of inter-related parts of the object.&lt;BR /&gt;
&lt;BR /&gt;
I want to be able to set things up such that lg (the smaller dimension) can be adjusted without affecting h, but that when h is adjusted, 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;difference&lt;E&gt;&lt;/E&gt; - not the ratio - between h and lg is maintained  - subject, of course, to control parameters to prevent impossibilities, which are established in a RANGE declaration.&lt;BR /&gt;
&lt;BR /&gt;
I have failed to crack this 'little' problem and have been struggling for several hours now (and several more hours of trial-and-error before I resorted to seeking help via the forum).&lt;BR /&gt;
&lt;BR /&gt;
Simply put as a script (&lt;B&gt;not in GDL&lt;/B&gt;) with all 'changes' made by user input:&lt;BR /&gt;
&lt;BR /&gt;
IF lg changes THEN, the difference between h and lg is then calculated and stored as, say, old_diff, and, of course, lg changes.&lt;BR /&gt;
&lt;BR /&gt;
h remains unaffected by the change in lg&lt;BR /&gt;
&lt;BR /&gt;
IF h changes THEN lg changes to h-old_diff, and, of course, h changes.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;OR in GDL&lt;/B&gt; (theoretically, and ignoring the constraints established in a RANGE declaration)&lt;BR /&gt;
&lt;BR /&gt;
IF GLOB_MODPAR_NAME="lg" THEN old_diff=h-lg&lt;BR /&gt;
&lt;BR /&gt;
IF GLOB_MODPAR_NAME="h" THEN lg=h-old_diff&lt;BR /&gt;
&lt;BR /&gt;
Put like that it seems very simple, but the reality seems to be very different. As far as I can tell there are no script steps or evaluations elsewhere that are going to affect either h or lg, other than the RANGE statement. I have tried omitting the RANGE declaration with virtually every attaempt, but still haven't had success!!&lt;BR /&gt;
&lt;BR /&gt;
I hope this helps to clarify things, but if I haven't made myself clear enough I would be only too pleased to be able to try to explain again.</description>
      <pubDate>Thu, 18 Nov 2004 01:54:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61131#M39712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-11-18T01:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61132#M39713</link>
      <description>in the parameters script:&lt;BR /&gt;

&lt;PRE&gt;!! control your "lg" parameter
IF lg &amp;gt; h THEN
lg = h/2 !! or how ever you want to control it
ENDIF

!! establish the difference between the two
msDiff= h - lg  !! set difference regardless of "lg" changing or not!
IF GLOB_MODPAR_NAME = "lg" THEN
msDIff = h - lg
ENDIF

!! redefine "lg" if "h" changes as described before
IF GLOB_MODPAR_NAME = "h" THEN
lg = h - msDiff
PARAMETERS lg = lg
ENDIF&lt;/PRE&gt;

unless you've got some other super-secret stuff going on in there that affects it, this ought to work right?&lt;BR /&gt;
&lt;BR /&gt;
~/archiben</description>
      <pubDate>Thu, 18 Nov 2004 06:38:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61132#M39713</guid>
      <dc:creator>__archiben</dc:creator>
      <dc:date>2004-11-18T06:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61133#M39714</link>
      <description>I am still not having success!! I have now stripped the scripts to the bare bones.&lt;BR /&gt;
&lt;BR /&gt;
Here are the scripts:&lt;BR /&gt;
&lt;BR /&gt;
Firstly the parameters are: &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;h; lg; BrktDst; swan; d; old_diff&lt;E&gt;&lt;/E&gt;  - these are all length parameters. The last one is &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;var&lt;E&gt;&lt;/E&gt;, to ensure that GLOB_MODPAR_NAME works and is a text parameter.&lt;BR /&gt;
&lt;BR /&gt;
Set the metric initial values as follows, for example: h=1600; lg=1200; BrktDst=50; swan=300; d=50; old_diff and var are calculated and would normally be hidden parameters.&lt;BR /&gt;
&lt;BR /&gt;
The Master script is as follows: &lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;r=d/2&lt;BR /&gt;
v=22.5&lt;BR /&gt;
ang=v/2&lt;BR /&gt;
cosv=COS(v)&lt;BR /&gt;
sinv=SIN(v)&lt;BR /&gt;
tanv=TAN(v)&lt;BR /&gt;
k=swan-(r+BrktDst)&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;!IF var="lg" THEN&lt;BR /&gt;
!PARAMETERS old_diff=h-lg&lt;BR /&gt;
!ENDIF&lt;BR /&gt;
&lt;BR /&gt;
!IF var="h" THEN&lt;BR /&gt;
!lg=h-old_diff&lt;BR /&gt;
!ENDIF&lt;/B&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
The parameters script is as follows, along the lines described by archiben, earlier:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;VALUES "var" GLOB_MODPAR_NAME&lt;BR /&gt;
&lt;BR /&gt;
VALUES "lg" RANGE (0,h-k*tanv-2*d)&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;!! establish the difference between the two &lt;BR /&gt;
old_diff=h-lg  !! set difference regardless of "lg" changing or not! &lt;BR /&gt;
IF var="lg" THEN &lt;BR /&gt;
old_diff=h-lg&lt;BR /&gt;
ENDIF &lt;BR /&gt;
&lt;BR /&gt;
!! redefine "lg" if "h" changes as described before &lt;BR /&gt;
IF var="h" THEN &lt;BR /&gt;
lg=h-old_diff&lt;BR /&gt;
PARAMETERS lg=lg &lt;BR /&gt;
ENDIF&lt;/B&gt;&lt;E&gt;&lt;/E&gt;&lt;I&gt;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
The 3D script is as follows:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;unID=1&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT 0,0,0,unID,h,1+256: unID=unID+1&lt;BR /&gt;
HOTSPOT 0,0,-h,unID,h,3: unID=unID+1&lt;BR /&gt;
HOTSPOT 0,0,h,unID,h,2+128: unID=unID+1&lt;BR /&gt;
&lt;BR /&gt;
HOTSPOT 0,0,0,unID,lg,1+128: unID=unID+1&lt;BR /&gt;
HOTSPOT 0,0,-lg,unID,lg,3: unID=unID+1&lt;BR /&gt;
HOTSPOT 0,0,lg,unID,lg,2: unID=unID+1&lt;BR /&gt;
LIN_ 0,0,lg,0,0,lg+0.06&lt;BR /&gt;
LIN_ 0.004,0,lg+0.05,0,0,lg+0.06&lt;BR /&gt;
LIN_ -0.004,0,lg+0.05,0,0,lg+0.06&lt;BR /&gt;
&lt;BR /&gt;
ADDY -BrktDst&lt;BR /&gt;
HOTSPOT 0,swan,0,unID,h,1+128: unID=unID+1&lt;BR /&gt;
HOTSPOT 0,swan,-h,unID,h,3: unID=unID+1&lt;BR /&gt;
HOTSPOT 0,swan,h,unID,h,2: unID=unID+1&lt;BR /&gt;
LIN_ 0,swan,h,0,swan,h+0.015&lt;BR /&gt;
LIN_ 0.003,swan,h+0.01,0,swan,h+0.015&lt;BR /&gt;
LIN_ -0.003,swan,h+0.01,0,swan,h+0.015&lt;BR /&gt;
DEL 1&lt;BR /&gt;
&lt;BR /&gt;
IF swan&amp;gt;0 THEN&lt;BR /&gt;
ADDY -BrktDst-r&lt;BR /&gt;
FOR ct=1 to 2&lt;BR /&gt;
HOTSPOT r,0,h,unID,swan,1+128: unID=unID+1&lt;BR /&gt;
HOTSPOT r,-swan,h,unID,swan,3: unID=unID+1&lt;BR /&gt;
HOTSPOT r,swan,h,unID,swan,2: unID=unID+1&lt;BR /&gt;
MUL -1,1,1&lt;BR /&gt;
NEXT ct&lt;BR /&gt;
DEL 3&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
rotz 90&lt;BR /&gt;
cone lg,r,r,90,90+v+ang&lt;BR /&gt;
&lt;BR /&gt;
add k,0,lg+(k*tanv)&lt;BR /&gt;
cone h-(lg+k*tanv),r,r,90+v+ang,90&lt;BR /&gt;
del 2&lt;BR /&gt;
&lt;BR /&gt;
addz lg&lt;BR /&gt;
rotx -(v+45)&lt;BR /&gt;
rotz 90&lt;BR /&gt;
&lt;BR /&gt;
cone k/cosv,r,r,90-(v+ang),90-(v+ang)&lt;BR /&gt;
del 3&lt;BR /&gt;
&lt;BR /&gt;
END&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
I think that you will find that the relationship that I require is not maintained i.e when h changes lg follows at the same distance, but when lg changes h remains the same.&lt;BR /&gt;
&lt;BR /&gt;
If you convert the emboldened script steps in the Parameters script to comments; and un-comment the emboldened steps in the Master script, you will find that the script works - but ONLY when you change h for the SECOND (or successive) time(s), without having changed lg!!&lt;BR /&gt;
&lt;BR /&gt;
Can anyone spot where this is going wrong? It's driving me nuts!!</description>
      <pubDate>Fri, 19 Nov 2004 03:01:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61133#M39714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-11-19T03:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61134#M39715</link>
      <description>Mike,&lt;BR /&gt;
&lt;BR /&gt;
try this in the parameter script window:&lt;BR /&gt;
&lt;BR /&gt;
PARAMETERS old_diff=h-lg&lt;BR /&gt;
IF GLOB_MODPAR_NAME="h" THEN PARAMETERS lg=h-old_diff&lt;BR /&gt;
IF GLOB_MODPAR_NAME="lg" THEN PARAMETERS h=lg+old_diff</description>
      <pubDate>Sun, 21 Nov 2004 00:33:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61134#M39715</guid>
      <dc:creator>Rob</dc:creator>
      <dc:date>2004-11-21T00:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61135#M39716</link>
      <description>Rob&lt;BR /&gt;
&lt;BR /&gt;
That works, but only if the value of h is reduced, if h is increased the upper part of the object extends upwards without the lower part following!&lt;BR /&gt;
&lt;BR /&gt;
I do appreciate your input, and many thanks for looking at this!!&lt;BR /&gt;
&lt;BR /&gt;
Mike</description>
      <pubDate>Sun, 21 Nov 2004 14:43:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61135#M39716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-11-21T14:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61136#M39717</link>
      <description>Mike, &lt;BR /&gt;
 &lt;BR /&gt;
I am sorry I did not really pay enough attention when I wrote the reply yesterday. &lt;BR /&gt;
 &lt;BR /&gt;
the script in the parameter script window should go like this: &lt;BR /&gt;
 &lt;BR /&gt;
VALUES "lg" RANGE [0,h) &lt;BR /&gt;
IF GLOB_MODPAR_NAME="h" THEN PARAMETERS lg=h-old_diff &lt;BR /&gt;
IF GLOB_MODPAR_NAME="lg" THEN PARAMETERS h=lg+old_diff,old_diff=h-lg &lt;BR /&gt;
 &lt;BR /&gt;
the first line limits the lg values to 0&amp;lt;=lg&amp;lt;h  otherwise when lg&amp;gt;h you would get the error message</description>
      <pubDate>Mon, 22 Nov 2004 08:21:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61136#M39717</guid>
      <dc:creator>Rob</dc:creator>
      <dc:date>2004-11-22T08:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61137#M39718</link>
      <description>Rob&lt;BR /&gt;
&lt;BR /&gt;
That doesn't seem to work 100% either! The problem I now encounter is that there seems to be a restriction on the parameter lg. It's v. difficult to describe. I now find that changing lg also changes h, which is not what I want to do, I want lg to be changeable without affecting h, and h to change whilst affecting lg!&lt;BR /&gt;
&lt;BR /&gt;
Ho-hum, I am beginning to lose heart, but thanks, once again, for your suggestion.&lt;BR /&gt;
&lt;BR /&gt;
Mike</description>
      <pubDate>Mon, 22 Nov 2004 20:05:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61137#M39718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-11-22T20:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61138#M39719</link>
      <description>Mike,&lt;BR /&gt;
&lt;BR /&gt;
Try this. not sure if i understood correctly the relationship priorites you want within your object. &lt;BR /&gt;
Not fully tested, some weaks in case of minimal values, but hope this can help.</description>
      <pubDate>Mon, 22 Nov 2004 20:32:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61138#M39719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-11-22T20:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61139#M39720</link>
      <description>Eureka! That script works. &lt;BR /&gt;
&lt;BR /&gt;
Now I need to change the angles, and control the variables to prevent impossible conditions, but I reckon I can do that.&lt;BR /&gt;
&lt;BR /&gt;
Thank you, Olivier and all contributors - my quest is over!!</description>
      <pubDate>Mon, 22 Nov 2004 23:13:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Help-with-script/m-p/61139#M39720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-11-22T23:13:37Z</dc:date>
    </item>
  </channel>
</rss>

