<?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: embedding attributes into .obj in Maya...or Max Is it possible? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383744#M5288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank heavens...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wold not say I a fluent in MEL or Python, but with hard work I can find my way around using the help and Script Editor if I know what to look for &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wold you be kind enough to share if possible the script(s) you used before so that I have some kind of a head start?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would it be much easier if I were to draw the shapes directly inside of City Engine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How wold I go about adding attributes to shapes drawn inside of City Engine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't mind redrawing the footprints all over again, it might be less of a headache &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;S&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2012 18:13:24 GMT</pubDate>
    <dc:creator>SahakSahakian</dc:creator>
    <dc:date>2012-09-20T18:13:24Z</dc:date>
    <item>
      <title>embedding attributes into .obj in Maya...or Max Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383740#M5284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder if there is a way to add attribute such as building height or roof type onto footprint .obj files from within Maya or Max?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How does one go about adding an attribute that City Engine can read/show and be usable like shown in the tutorial files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does it have to be in shape format? And if there are other software that allow for adding this attribute before importing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there tutorials that show how one can add building height attribute to a polygonal building footprint before importing to City Engine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: I did some searching and found out that these attributes live in an external to the polygons database, table.dbf file. Is there scripts or exporters that anyone is aware of that allows these attributes ( buildingHeight, buildingType ) to be added and exported from within Maya, Max, Sketchup?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 15:03:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383740#M5284</guid>
      <dc:creator>SahakSahakian</dc:creator>
      <dc:date>2012-09-12T15:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: embedding attributes into .obj in Maya...or Max Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383741#M5285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, .shp, file .gdb or .osm allow you to import such attributed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.obj / .dae / .fbx cannot be used for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you could use Python scripting to assign specific attributes to specific shapes though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 12:33:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383741#M5285</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-09-13T12:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: embedding attributes into .obj in Maya...or Max Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383742#M5286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;hi !&lt;BR /&gt;&lt;BR /&gt;yes, .shp, file .gdb or .osm allow you to import such attributed.&lt;BR /&gt;&lt;BR /&gt;.obj / .dae / .fbx cannot be used for this.&lt;BR /&gt;&lt;BR /&gt;you could use Python scripting to assign specific attributes to specific shapes though.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for hopeful reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Forgive my lack of in depth knowledge on inner workings of attributes between software. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to write a Python script (with a GUI) that enables &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;assignment of specific attributes to (selected) polygonal shapes inside of Maya&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and export a .gdb file to later tie it to imported .obj files? Or would one also need to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;write a .shp exporter?&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If yes. &lt;/SPAN&gt;&lt;STRONG&gt;How wold the workflow be? &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please sketch out a rough guide to steps involved in such process?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a set of building footprints in Maya that have no attributes associated to them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And I want to be able to import them and use attributes for building height etc. for generation of &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;models.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Another question is if it it possible to assign the attributes to imported or hand drawn footprints from within City Engine? &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess one wold need to be able to generate the database .gdb file in City Engine....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;If yes. How?&lt;/STRONG&gt;&lt;SPAN&gt; Is there a tutorial on this that I have missed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If no. Is there a guide (preferably a tutorial) on how does one assign the attributes and exports it out before importing it to City Engine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And which software has features for assigning attributes and exporting .shp? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri Suite are a bit overwhelming for me at this point. And I haven't found a straight forward &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;explanation for this process. Please refer to or make a step by step tutorial (if possible) on how one does add attributes to shapes or imported polygons. I get lost in all the options, menus and complexity of ArcGIS.&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt; I only need to add attributes and export from it. Is there a tutorial on this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am hoping for a easy way to assign attributes to footprints and export it out for importing into City Engine. And footprints I have at his point are "dumb" polygonal objects in Maya...Please advice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;S.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 06:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383742#M5286</guid>
      <dc:creator>SahakSahakian</dc:creator>
      <dc:date>2012-09-20T06:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: embedding attributes into .obj in Maya...or Max Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383743#M5287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When trying to bring attributed footprints from Maya to CityEngine, I'd try the following :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Write a MEL (or PY) script, which:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- grabs all vertices of the footprint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- grabs the xyz coordinated&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- the attributes you want&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- and spits out the Python code you can directly run in CE to :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- produce new footprints&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- and assign the attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've done things like this before, so it's possible .. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you fluent in MEL coding ? How about Python in CityEngine ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 17:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383743#M5287</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-09-20T17:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: embedding attributes into .obj in Maya...or Max Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383744#M5288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank heavens...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wold not say I a fluent in MEL or Python, but with hard work I can find my way around using the help and Script Editor if I know what to look for &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wold you be kind enough to share if possible the script(s) you used before so that I have some kind of a head start?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would it be much easier if I were to draw the shapes directly inside of City Engine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How wold I go about adding attributes to shapes drawn inside of City Engine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't mind redrawing the footprints all over again, it might be less of a headache &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;S&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 18:13:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383744#M5288</guid>
      <dc:creator>SahakSahakian</dc:creator>
      <dc:date>2012-09-20T18:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: embedding attributes into .obj in Maya...or Max Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383745#M5289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I guess it all also depends on what type of attributes you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In CityEngine, you can create attributes manually, create/set them with Python or set them with images via Map Layers. E.g. use a bitmap's brightness to drive values between 50 and 200 or whatever.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know what precise attributes you need, then I may think of something more intuitive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 18:59:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383745#M5289</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-09-20T18:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: embedding attributes into .obj in Maya...or Max Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383746#M5290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For now it is enough with building height and roof type and street width..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The building heights are known values so imageLayer route would not be useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps set them with Python. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it to follow the Python scripting page in the manual and do? :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Assuming a block is selected&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; block = ce.getObjectsFrom(ce.selection)[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; ce.setAttribute(block,"/ce/block/shapeCreation", False)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; ce.setAttributeSource(block,"/ce/block/shapeCreation", "USER")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; block = ce.getObjectsFrom(ce.selection)[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; ce.setAttribute(block,"buildingHeight", 27)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this generate a .gdb file or is the attribute than handled internally?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully it will get me started to do more advanced...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 19:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383746#M5290</guid>
      <dc:creator>SahakSahakian</dc:creator>
      <dc:date>2012-09-20T19:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: embedding attributes into .obj in Maya...or Max Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383747#M5291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this code just sets an attribute value to 27 on a block. that does not export anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;other question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how does that height information get into Maya ? do you define the values there or do you otherwise import it there ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just need to know the desired pipeline better.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 09:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383747#M5291</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-09-21T09:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: embedding attributes into .obj in Maya...or Max Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383748#M5292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The height information in Maya is from building models from Google Warehouse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to proceduralise those models. To be able to Rule&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And later to export through Python for importing into a game engine. Most likely UDK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 10:20:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383748#M5292</guid>
      <dc:creator>SahakSahakian</dc:creator>
      <dc:date>2012-09-21T10:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: embedding attributes into .obj in Maya...or Max Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383749#M5293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how do you actually store the attribute ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume you have 1 mesh for each building footprint which contains e.g. an 'Extra Attribute'. (?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 15:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383749#M5293</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-09-21T15:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: embedding attributes into .obj in Maya...or Max Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383750#M5294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do have (mostly) one mesh for each building. But these models are inefficient and have no extra attributes associated to them. It is relatively easy to add an extra attribute in Maya. Getting an attribute out of her and in to the City Engine is the part I don't yet know how to do. I guess attributes are handled differently internally and are stripped out during the exporting from Maya. To work around this requires Python and 3D math matrices ninjahood that I do not yet possess :P...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am measuring building height with Mayas Measure Tool and can plot these manually or automate the process when I know more about the route the attributes are taking between Maya and City Engine...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The footprints are separate pieces of geometry. I can remodel them by hand or programatically if I knew how, inside of City Engine. It may be better to just redraw them manually, to ensure correct point order and facade facing the streets etc.. I also have a version of the footprints as separate curves for each footprint, in Maya but the point order in both curves and polygons is probably messy...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;choices choices..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 16:27:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383750#M5294</guid>
      <dc:creator>SahakSahakian</dc:creator>
      <dc:date>2012-09-21T16:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: embedding attributes into .obj in Maya...or Max Is it possible?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383751#M5295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To get the building height, I'd rather set up a script which calculates the meshes bounding box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Polys with holes would not be supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've written some MEL code which gets a vertex list of one polygon with which you can directly create a corresponding shape in CityEngine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That could be a starting point. You'd have to continue using the output of this, then go on and create the text for CityEngine python code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;float $resultArray[] = `getFaceVertexCoordList("polySurface1" )`;
print $resultArray;

global proc float[] getFaceVertexCoordList(string $shapeName)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; float $resultArray[] = {};
&amp;nbsp;&amp;nbsp;&amp;nbsp; string $ftv[] = `polyInfo -faceToVertex ($shapeName+ ".f[0]")`;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; string $buf[];
 $numTokens = `tokenize $ftv[0] ":" $buf`;
 $numTokens = `tokenize $buf[1] " " $buf`;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for ($element in $buf)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; float $coords[] = `xform -ws -q -t ($shapeName + ".vtx[" + int($element) +"]")`;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $resultArray[size($resultArray)] = $coords[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $resultArray[size($resultArray)] = $coords[1];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $resultArray[size($resultArray)] = $coords[2];
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return $resultArray;
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that this obviously only works if the input mesh has just 1 face.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:39:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/embedding-attributes-into-obj-in-maya-or-max-is-it/m-p/383751#M5295</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-11T17:39:40Z</dc:date>
    </item>
  </channel>
</rss>

