<?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: mistake in last post in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106886#M33149</link>
    <description>I can tell you the method of doing it, but I do not have the time to actually do it for you.&lt;BR /&gt;
&lt;BR /&gt;
There are GDL Global variables that Library Objects can use to obtain info about the state of the Project or elements in it.&lt;BR /&gt;
One such variable is the GLOB_FRAME_NR variable. Here is is description:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://archicadwiki.com/Global_GDL_Parameters#head-79c77ce70e2254718bd7c757968c9ccaad640986" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://archicadwiki.com/Global_GDL_Parameters#head-79c77ce70e2254718bd7c757968c9ccaad640986" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;http://archicadwiki.com/Global_GDL_Para ... caad640986&amp;quot;&amp;gt;http://archicadwiki.com/Global_GDL_Parameters#head-79c77ce70e2254718bd7c757968c9ccaad640986&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://archicadwiki.com/Global_GDL_Para ... caad640986"&gt;http://archicadwiki.com/Global_GDL_Parameters#head-79c77ce70e2254718bd7c757968c9ccaad640986&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
You need to use this read-only variable in the 3D Script of your Door object to ask from Archicad what Frame of the Animation it is currently creating. It will give you an integer number.&lt;BR /&gt;
&lt;BR /&gt;
In most Door Objects, among the Parameters, under the 3D Representation category, you will find one called 'Opening Angle in 3D'.&lt;BR /&gt;
You must modify your 3D Script so that the GDL variable 'gs_open_3D' changes depending on the value of the Frame.&lt;BR /&gt;
&lt;BR /&gt;
I would use 4 new variable. You will need to create these new parameters for the Door object:&lt;BR /&gt;
&lt;BR /&gt;
1. StartFrame - this will be the Frame of the Animation at which the Door will start to open from its Starting Opening Angle value.&lt;BR /&gt;
2. EndFrame - this will be the Frame of the Animation at which the Door will reach its End Opening Angle value.&lt;BR /&gt;
3. StartAngle - the Angle at which the Door is open when it starts opening.&lt;BR /&gt;
4. EndAngle - the Angle at which the Door stops opening.&lt;BR /&gt;
&lt;BR /&gt;
Then you would have a the following formula:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#ff005b"&gt;FrameNumber=EndFrame-StartFrame&lt;BR /&gt;
CurrentFrame=GLOB_FRAME_NR-StartFrame&lt;BR /&gt;
gs_open_3D=StartAngle+CurrentFrame*(EndAngle-StartAngle)/FrameNumber&lt;BR /&gt;
&lt;/FONT&gt;&lt;BR /&gt;
Example: You want aDoor in your Project to start opening from and Angle of 30 degrees at Frame 150 and reach its final opening angle of 120 degrees at Frame 170.&lt;BR /&gt;
In this case:&lt;BR /&gt;
StartFrame=150&lt;BR /&gt;
EndFrame=170&lt;BR /&gt;
StartAngle=30&lt;BR /&gt;
EndAngle=120&lt;BR /&gt;
&lt;BR /&gt;
At Frame 150 (GLOB_FRAME_NR=150):&lt;BR /&gt;
&lt;FONT color="#ff005b"&gt;gs_open_3D=30+0*(120-30)/20=30+0*4.5=30&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
At Frame 158 (GLOB_FRAME_NR=158):&lt;BR /&gt;
&lt;FONT color="#ff005b"&gt;gs_open_3D=30+8*(120-20)/20=30+8*5=70&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
At Frame 170 (GLOB_FRAME_NR=170):&lt;BR /&gt;
&lt;FONT color="#ff005b"&gt;gs_open_3D=30+20*(120-30)/20=30+20*4.5=120&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
You might also want to create a boolean toggle so this whole thing is executed only when this toggle is set to ON (when you want to use it).&lt;BR /&gt;
&lt;BR /&gt;
You can place this in either in the Master Script or the beginning of the 3D Script of the Door object.&lt;BR /&gt;
I hope you can make it work.</description>
    <pubDate>Mon, 09 Oct 2006 18:55:58 GMT</pubDate>
    <dc:creator>Laszlo Nagy</dc:creator>
    <dc:date>2006-10-09T18:55:58Z</dc:date>
    <item>
      <title>mistake in last post</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106880#M33143</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;am sorry for my last post of "parameterized library parts" . Actually i was interested to know about the meaning of the sentence written in fly-through dialog &lt;B&gt;"Rebuilt model for each frame, use only if any library part is parameterized to change with frame number". &lt;/B&gt; I was unable to get the frame number feature in any library parts parameters, hence still confused, so kindly give me a proper guidelines for the same.&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 07 Oct 2006 06:10:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106880#M33143</guid>
      <dc:creator>Rajesh Patil</dc:creator>
      <dc:date>2006-10-07T06:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: mistake in last post</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106881#M33144</link>
      <description>Parametric (nearly all) objects can react in their shape or behaviour on the frame position in the moment of generating a fly through. For this they need to be executed before the calculation of each (!) frame. This needs a rebuilt of the complete 3D model in each frame position. This slows down calculation dramatic. If you haven't such objects (normally) you can deactivate the checkbox to built once (at the beginning) the 3D model.&lt;BR /&gt;
&lt;BR /&gt;
Here you find a movie completely rendered in AC without postproduction.&lt;BR /&gt;
&lt;A href="http://www.opengdl.org/gdl-de/00009/ant.mov" target="_blank"&gt;http://www.opengdl.org/gdl-de/obj00009.htm&lt;/A&gt;</description>
      <pubDate>Sat, 07 Oct 2006 12:11:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106881#M33144</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-10-07T12:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: mistake in last post</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106882#M33145</link>
      <description>sir,&lt;BR /&gt;
thnx for your reply. but still i need some more help about making the door or window to be get open as i create a fly-through via AC9, i.e. say if my camera1 to camera2 have 20 frames how can i use those frames to show door opening effect from 0 to 90deg. If you know any document in "english" kingly give me the URL for same. I did tried with &lt;A href="http://www.opengdl.org" target="_blank"&gt;www.opengdl.org&lt;/A&gt; but the site is not opening in english though i pick on "english" option on top-left of same window. egarly waiting for your reply.</description>
      <pubDate>Mon, 09 Oct 2006 10:09:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106882#M33145</guid>
      <dc:creator>Rajesh Patil</dc:creator>
      <dc:date>2006-10-09T10:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: mistake in last post</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106883#M33146</link>
      <description>I have only seen a small number of library parts ever use this feature. I'm not sure that I have ever seen any in the Archicad library itself. Offhand, the only ones I can think of are the 3rd-party Smart Parts kit of objects.</description>
      <pubDate>Mon, 09 Oct 2006 11:30:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106883#M33146</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2006-10-09T11:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: mistake in last post</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106884#M33147</link>
      <description>You could use TheAnt from opengdl.org. Unfortunatly I searched in the German user community for people sharing their code. So the English button does work only on tentmaker page. The selfgdl-project took most of my "free" resources the last two years, so opengdl.org has not got my focus. In the view of the obejct depository, I will change now the intention of this site to be a workbench for gdl developers á la sourceforge.net. But this will take a few time, but then will be in (broken) English. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
I did not understand, that you really want to program a dynamic object. As Tom said, there are no(t much) objects, which use this feature. You will have to add this to an existing door, if you are not able not use TheAnt. It is not as heavy as it sounds, but you should have a tiny scripting, better GDL experience. Which door do you want to change? If it is not in the int. library, send it to me I will have a look on it. OK?</description>
      <pubDate>Mon, 09 Oct 2006 12:27:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106884#M33147</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-10-09T12:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: mistake in last post</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106885#M33148</link>
      <description>The Porsche 911 that used to be free on ObjectsOnLine long time ago had the moving script built in.&lt;BR /&gt;
&lt;BR /&gt;
It is attached here ... keep in mind that it was written for ArchiCAD 6.o</description>
      <pubDate>Mon, 09 Oct 2006 18:42:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106885#M33148</guid>
      <dc:creator>Djordje</dc:creator>
      <dc:date>2006-10-09T18:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: mistake in last post</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106886#M33149</link>
      <description>I can tell you the method of doing it, but I do not have the time to actually do it for you.&lt;BR /&gt;
&lt;BR /&gt;
There are GDL Global variables that Library Objects can use to obtain info about the state of the Project or elements in it.&lt;BR /&gt;
One such variable is the GLOB_FRAME_NR variable. Here is is description:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://archicadwiki.com/Global_GDL_Parameters#head-79c77ce70e2254718bd7c757968c9ccaad640986" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://archicadwiki.com/Global_GDL_Parameters#head-79c77ce70e2254718bd7c757968c9ccaad640986" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;http://archicadwiki.com/Global_GDL_Para ... caad640986&amp;quot;&amp;gt;http://archicadwiki.com/Global_GDL_Parameters#head-79c77ce70e2254718bd7c757968c9ccaad640986&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://archicadwiki.com/Global_GDL_Para ... caad640986"&gt;http://archicadwiki.com/Global_GDL_Parameters#head-79c77ce70e2254718bd7c757968c9ccaad640986&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
You need to use this read-only variable in the 3D Script of your Door object to ask from Archicad what Frame of the Animation it is currently creating. It will give you an integer number.&lt;BR /&gt;
&lt;BR /&gt;
In most Door Objects, among the Parameters, under the 3D Representation category, you will find one called 'Opening Angle in 3D'.&lt;BR /&gt;
You must modify your 3D Script so that the GDL variable 'gs_open_3D' changes depending on the value of the Frame.&lt;BR /&gt;
&lt;BR /&gt;
I would use 4 new variable. You will need to create these new parameters for the Door object:&lt;BR /&gt;
&lt;BR /&gt;
1. StartFrame - this will be the Frame of the Animation at which the Door will start to open from its Starting Opening Angle value.&lt;BR /&gt;
2. EndFrame - this will be the Frame of the Animation at which the Door will reach its End Opening Angle value.&lt;BR /&gt;
3. StartAngle - the Angle at which the Door is open when it starts opening.&lt;BR /&gt;
4. EndAngle - the Angle at which the Door stops opening.&lt;BR /&gt;
&lt;BR /&gt;
Then you would have a the following formula:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#ff005b"&gt;FrameNumber=EndFrame-StartFrame&lt;BR /&gt;
CurrentFrame=GLOB_FRAME_NR-StartFrame&lt;BR /&gt;
gs_open_3D=StartAngle+CurrentFrame*(EndAngle-StartAngle)/FrameNumber&lt;BR /&gt;
&lt;/FONT&gt;&lt;BR /&gt;
Example: You want aDoor in your Project to start opening from and Angle of 30 degrees at Frame 150 and reach its final opening angle of 120 degrees at Frame 170.&lt;BR /&gt;
In this case:&lt;BR /&gt;
StartFrame=150&lt;BR /&gt;
EndFrame=170&lt;BR /&gt;
StartAngle=30&lt;BR /&gt;
EndAngle=120&lt;BR /&gt;
&lt;BR /&gt;
At Frame 150 (GLOB_FRAME_NR=150):&lt;BR /&gt;
&lt;FONT color="#ff005b"&gt;gs_open_3D=30+0*(120-30)/20=30+0*4.5=30&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
At Frame 158 (GLOB_FRAME_NR=158):&lt;BR /&gt;
&lt;FONT color="#ff005b"&gt;gs_open_3D=30+8*(120-20)/20=30+8*5=70&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
At Frame 170 (GLOB_FRAME_NR=170):&lt;BR /&gt;
&lt;FONT color="#ff005b"&gt;gs_open_3D=30+20*(120-30)/20=30+20*4.5=120&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
You might also want to create a boolean toggle so this whole thing is executed only when this toggle is set to ON (when you want to use it).&lt;BR /&gt;
&lt;BR /&gt;
You can place this in either in the Master Script or the beginning of the 3D Script of the Door object.&lt;BR /&gt;
I hope you can make it work.</description>
      <pubDate>Mon, 09 Oct 2006 18:55:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/mistake-in-last-post/m-p/106886#M33149</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2006-10-09T18:55:58Z</dc:date>
    </item>
  </channel>
</rss>

