<?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 Shutter rotation problem in my rulefile in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/shutter-rotation-problem-in-my-rulefile/m-p/1418746#M11357</link>
    <description>&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;I'm currently working on a rulefile to generate buildings from an italian town. I wanted to make the some shutters opened with different rotations, but i encountered a problem : My first shutter works perfectly fine, and rotates in the correct way, but the second one rotates from the middle of the window, and i would like it to rotate from the side of the window. Maybe it isn't very clear, so i put screenshots from the models and from my rulefile on this post.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulesChasson_0-1714748440049.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103005iDD8AA6DE5B3DCDE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulesChasson_0-1714748440049.png" alt="JulesChasson_0-1714748440049.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Same problem here...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulesChasson_1-1714748516880.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103007iF480174EB59DEABE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulesChasson_1-1714748516880.png" alt="JulesChasson_1-1714748516880.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulesChasson_2-1714748540420.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103008iC2D6F13AADB913BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulesChasson_2-1714748540420.png" alt="JulesChasson_2-1714748540420.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here is the screenshot of my rule where i tried to do the rotation command. As you can see, i split the "Facade__1_1_5_2_1_2", (it was the 2 shutters combined), and then i tried to use the rotate command on each one of them to create the opening effect :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulesChasson_3-1714748570573.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103009i6EFCEB45510DA98E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulesChasson_3-1714748570573.png" alt="JulesChasson_3-1714748570573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help !&lt;/P&gt;&lt;P&gt;Jules&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2024 15:05:23 GMT</pubDate>
    <dc:creator>JulesChasson</dc:creator>
    <dc:date>2024-05-03T15:05:23Z</dc:date>
    <item>
      <title>Shutter rotation problem in my rulefile</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/shutter-rotation-problem-in-my-rulefile/m-p/1418746#M11357</link>
      <description>&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;I'm currently working on a rulefile to generate buildings from an italian town. I wanted to make the some shutters opened with different rotations, but i encountered a problem : My first shutter works perfectly fine, and rotates in the correct way, but the second one rotates from the middle of the window, and i would like it to rotate from the side of the window. Maybe it isn't very clear, so i put screenshots from the models and from my rulefile on this post.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulesChasson_0-1714748440049.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103005iDD8AA6DE5B3DCDE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulesChasson_0-1714748440049.png" alt="JulesChasson_0-1714748440049.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Same problem here...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulesChasson_1-1714748516880.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103007iF480174EB59DEABE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulesChasson_1-1714748516880.png" alt="JulesChasson_1-1714748516880.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulesChasson_2-1714748540420.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103008iC2D6F13AADB913BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulesChasson_2-1714748540420.png" alt="JulesChasson_2-1714748540420.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here is the screenshot of my rule where i tried to do the rotation command. As you can see, i split the "Facade__1_1_5_2_1_2", (it was the 2 shutters combined), and then i tried to use the rotate command on each one of them to create the opening effect :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulesChasson_3-1714748570573.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103009i6EFCEB45510DA98E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulesChasson_3-1714748570573.png" alt="JulesChasson_3-1714748570573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help !&lt;/P&gt;&lt;P&gt;Jules&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/shutter-rotation-problem-in-my-rulefile/m-p/1418746#M11357</guid>
      <dc:creator>JulesChasson</dc:creator>
      <dc:date>2024-05-03T15:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Shutter rotation problem in my rulefile</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/shutter-rotation-problem-in-my-rulefile/m-p/1418803#M11358</link>
      <description>&lt;P&gt;Hi Jules,&lt;/P&gt;&lt;P&gt;changing the position of the Shutter pivot will do the trick.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Facade__1_1_5_2_1_2 --&amp;gt;
	setupProjection(0, scope.xy, '11.0092, '3.7067, '-1.2927, '-2.2608)
	projectUV(0)
	color(shutt_color)
	split(x){~1:Shutter1 |~1: setPivot(xyz,1) Shutter2}
	
Shutter1 --&amp;gt;
	extrude(0.1)
	rotate(rel, world, 0, 40% : 0
						else : rand(-80,-180),0)
	
Shutter2 --&amp;gt;
	extrude(0.1)
	rotate(rel, world, 0, 40% : 0
						else : rand(80,180),0)&lt;/LI-CODE&gt;&lt;P&gt;If the Shutter hinges along the wrong axis, just change the corner number in the &lt;EM&gt;setPivot&lt;/EM&gt; operation.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 16:20:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/shutter-rotation-problem-in-my-rulefile/m-p/1418803#M11358</guid>
      <dc:creator>plfontes</dc:creator>
      <dc:date>2024-05-03T16:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Shutter rotation problem in my rulefile</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/shutter-rotation-problem-in-my-rulefile/m-p/1499310#M11399</link>
      <description>&lt;P&gt;I installed Shutter Encoder so that I'd be able to flip upside-down video, but I can't seem to make it work...I saw another post that explained how to download 'tools' and drag these into '*' , and I think I'm applying the action correctly in that Shutter Encoder generates a new file as requested...But the new file is not rotated?? I'm starting off with MP4 files and creating new MP4 file&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://speedtest.vet/" target="_blank" rel="noopener"&gt;https://speedtest.vet/&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 08:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/shutter-rotation-problem-in-my-rulefile/m-p/1499310#M11399</guid>
      <dc:creator>o1cker</dc:creator>
      <dc:date>2024-06-30T08:37:03Z</dc:date>
    </item>
  </channel>
</rss>

