<?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 An object's position in the world coordinate system in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/an-object-s-position-in-the-world-coordinate/m-p/716448#M9382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I placed some objects on streets and I want to export their positions. I read in the documentation about the pivot, then I tried to export pivot.p(x|y|z), but these coordinates are strange. The documentation says&amp;nbsp;&lt;SPAN&gt;they are relative to initialShape.origin, but I don't think so. For example, the initialShape.origin is (2, 0, 1), the street has length 10, but pivot.p(x|y|z) of some placed object may be (70, 0, 54).Why? How can the positions of placed objects be exported? I want to export the positions of the spheres in the attached screenshot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for answers.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Jun 2020 10:17:43 GMT</pubDate>
    <dc:creator>AlexanderTemnyakov</dc:creator>
    <dc:date>2020-06-21T10:17:43Z</dc:date>
    <item>
      <title>An object's position in the world coordinate system</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/an-object-s-position-in-the-world-coordinate/m-p/716448#M9382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I placed some objects on streets and I want to export their positions. I read in the documentation about the pivot, then I tried to export pivot.p(x|y|z), but these coordinates are strange. The documentation says&amp;nbsp;&lt;SPAN&gt;they are relative to initialShape.origin, but I don't think so. For example, the initialShape.origin is (2, 0, 1), the street has length 10, but pivot.p(x|y|z) of some placed object may be (70, 0, 54).Why? How can the positions of placed objects be exported? I want to export the positions of the spheres in the attached screenshot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for answers.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2020 10:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/an-object-s-position-in-the-world-coordinate/m-p/716448#M9382</guid>
      <dc:creator>AlexanderTemnyakov</dc:creator>
      <dc:date>2020-06-21T10:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: An object's position in the world coordinate system</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/an-object-s-position-in-the-world-coordinate/m-p/716449#M9383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get the position of the spheres in the world coordinate system, you don't want to use the pivot.&amp;nbsp; Instead, it's easier to&amp;nbsp;use&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;convert()&lt;/SPAN&gt;&amp;nbsp;to convert from scope coordinates to the world coordinate system.&amp;nbsp; For each sphere, you can convert the scope's origin (or the scope's center - whatever point you want) to world coordinates as follows:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;convert(x, scope, world, pos, 0, 0, 0)  // x coord in world coords
convert(y, scope, world, pos, 0, 0, 0)  // y coord in world coords
convert(z, scope, world, pos, 0, 0, 0)  // z coord in world coords&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A class="link-titled" href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-convert-function.htm" title="https://doc.arcgis.com/en/cityengine/latest/cga/cga-convert-function.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;convert function—ArcGIS CityEngine Resources | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:40:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/an-object-s-position-in-the-world-coordinate/m-p/716449#M9383</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-12T06:40:58Z</dc:date>
    </item>
  </channel>
</rss>

