<?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: How can I adjust A and B and the same time? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-adjust-A-and-B-and-the-same-time/m-p/296131#M5838</link>
    <description>If you want the ratio adjustable by the user then I would set up a new parameter for the ration of B compared to A.&lt;BR /&gt;
&lt;BR /&gt;
ratio = 0.6&lt;BR /&gt;

&lt;PRE&gt;if GLOB_MODPAR_NAME = "A" then 
    B=A*ratio 
 endif 

 if GLOB_MODPAR_NAME = "B" then 
    A=B/ratio 
 endif 

 PARAMETERS A=A, B=B &lt;/PRE&gt;

Now you can adjust the ration parameter to whatever you want in each object.&lt;BR /&gt;
If it will always be fixed at 0.6 then forget the 'ratio' parameter and just substitute '0.6'&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Thu, 13 Jul 2017 02:00:20 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2017-07-13T02:00:20Z</dc:date>
    <item>
      <title>How can I adjust A and B and the same time?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-adjust-A-and-B-and-the-same-time/m-p/296127#M5834</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi,&lt;BR /&gt;
I am trying to adjust my object using A and B in proportion to eachother. I just need A to equal B and visa versa. Any help?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Jul 2017 12:42:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-adjust-A-and-B-and-the-same-time/m-p/296127#M5834</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-07-11T12:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I adjust A and B and the same time?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-adjust-A-and-B-and-the-same-time/m-p/296128#M5835</link>
      <description>&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;
I am trying to adjust my object using A and B in proportion to eachother. I just need A to equal B and visa versa. Any help?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/BLOCKQUOTE&gt;
! Master&lt;BR /&gt;
PARAMETERS A=B</description>
      <pubDate>Tue, 11 Jul 2017 17:34:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-adjust-A-and-B-and-the-same-time/m-p/296128#M5835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-11T17:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I adjust A and B and the same time?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-adjust-A-and-B-and-the-same-time/m-p/296129#M5836</link>
      <description>To make it a 2-way interaction I would add this to the master script.&lt;BR /&gt;

&lt;PRE&gt;if GLOB_MODPAR_NAME = "A" then
	B=A
endif

if GLOB_MODPAR_NAME = "B" then
	A=B
endif

PARAMETERS A=A, B=B
&lt;/PRE&gt;

Barry.</description>
      <pubDate>Wed, 12 Jul 2017 01:34:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-adjust-A-and-B-and-the-same-time/m-p/296129#M5836</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-07-12T01:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I adjust A and B and the same time?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-adjust-A-and-B-and-the-same-time/m-p/296130#M5837</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;To make it a 2-way interaction I would add this to the master script.&lt;BR /&gt;

&lt;PRE&gt;if GLOB_MODPAR_NAME = "A" then
	B=A
endif

if GLOB_MODPAR_NAME = "B" then
	A=B
endif

PARAMETERS A=A, B=B
&lt;/PRE&gt;

Barry.&lt;/BLOCKQUOTE&gt; Thanks, this worked nicely. Do you know if there is a way to get A to scale with B whilst keeping the same ratio? for example;&lt;BR /&gt;
A = 1&lt;BR /&gt;
B = 0.6&lt;BR /&gt;
&lt;BR /&gt;
then &lt;BR /&gt;
&lt;BR /&gt;
A = 2&lt;BR /&gt;
B = 1.2&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
A = 4&lt;BR /&gt;
B = 2.4... If that makes sense. &lt;BR /&gt;
&lt;BR /&gt;
This is currently in my script but it doesn't keep them in proportion. Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
mulx	A/0.01425853658068&lt;BR /&gt;
muly	B/0.01284951110122&lt;BR /&gt;
&lt;BR /&gt;
I want the same effect as if they were 'chained' after being placed but set inside the object.</description>
      <pubDate>Wed, 12 Jul 2017 11:57:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-adjust-A-and-B-and-the-same-time/m-p/296130#M5837</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-07-12T11:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I adjust A and B and the same time?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-adjust-A-and-B-and-the-same-time/m-p/296131#M5838</link>
      <description>If you want the ratio adjustable by the user then I would set up a new parameter for the ration of B compared to A.&lt;BR /&gt;
&lt;BR /&gt;
ratio = 0.6&lt;BR /&gt;

&lt;PRE&gt;if GLOB_MODPAR_NAME = "A" then 
    B=A*ratio 
 endif 

 if GLOB_MODPAR_NAME = "B" then 
    A=B/ratio 
 endif 

 PARAMETERS A=A, B=B &lt;/PRE&gt;

Now you can adjust the ration parameter to whatever you want in each object.&lt;BR /&gt;
If it will always be fixed at 0.6 then forget the 'ratio' parameter and just substitute '0.6'&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 13 Jul 2017 02:00:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-can-I-adjust-A-and-B-and-the-same-time/m-p/296131#M5838</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-07-13T02:00:20Z</dc:date>
    </item>
  </channel>
</rss>

