<?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 How can I Insert an asset aligning its position and scaling it to fit while keeping its proportions intact? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-insert-an-asset-aligning-its-position/m-p/554168#M7485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I have a question I have been trying to solve for a while, shown in the images here below. If anyone can give me a tip on how to proceed I would be grateful.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="439741" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/439741_ReScaleAsset.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:&amp;nbsp;Ideally it would be great for&amp;nbsp;a similar&amp;nbsp;command to be added to the insert operation (something like "keepProportions,alignPosition") in future releases &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2019 14:00:38 GMT</pubDate>
    <dc:creator>AbeleGiandoso</dc:creator>
    <dc:date>2019-03-18T14:00:38Z</dc:date>
    <item>
      <title>How can I Insert an asset aligning its position and scaling it to fit while keeping its proportions intact?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-insert-an-asset-aligning-its-position/m-p/554168#M7485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I have a question I have been trying to solve for a while, shown in the images here below. If anyone can give me a tip on how to proceed I would be grateful.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="439741" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/439741_ReScaleAsset.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:&amp;nbsp;Ideally it would be great for&amp;nbsp;a similar&amp;nbsp;command to be added to the insert operation (something like "keepProportions,alignPosition") in future releases &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 14:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-insert-an-asset-aligning-its-position/m-p/554168#M7485</guid>
      <dc:creator>AbeleGiandoso</dc:creator>
      <dc:date>2019-03-18T14:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I Insert an asset aligning its position and scaling it to fit while keeping its proportions intact?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-insert-an-asset-aligning-its-position/m-p/554169#M7486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;const asset_sx = assetInfo(asset, sx)
const asset_sz = assetInfo(asset, sz)

Lot --&amp;gt;
	InsertAsset(min(scope.sx/asset_sx, scope.sz/asset_sz))
	
InsertAsset(factor) --&amp;gt;
	i(asset, yUp, keepSizeAndPosition)
	s('factor, 'factor, 'factor)
	center(xz)
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:57:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-insert-an-asset-aligning-its-position/m-p/554169#M7486</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-11T23:57:15Z</dc:date>
    </item>
  </channel>
</rss>

