<?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: insert obj into scene from rule? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686863#M9035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am I still needed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I have to add is that all inserted objects that are intended to be replaced like street lamps need to have up be in the direction of the Y axis. All objects are aligned scope to axis in the y direction as part of the scope casting I did for the rule. So in software like &lt;A href="http://help.sketchup.com/en/article/167475"&gt;sketchup &lt;/A&gt;where the model is made, the Y axis should be the vertical one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2015 03:12:12 GMT</pubDate>
    <dc:creator>DavidWasserman</dc:creator>
    <dc:date>2015-05-28T03:12:12Z</dc:date>
    <item>
      <title>insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686857#M9029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used the complete_streets rule in a model I have created.&amp;nbsp; However, I want to use my own street lamps. However, they do not show up.&lt;/P&gt;&lt;P&gt;Here is what I have done so far.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Drag and dropped existing globe street lamp from the "complete_streets" rule into the scene.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Converted the obj into shapes&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; re-shaped the new shape into the lamp I want (with textures and size)&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; exported the new shape as an obj into the asset file where the rule is getting its lamps from. (Dir_lamps)&lt;/P&gt;&lt;P&gt;5.&amp;nbsp; Selected the new obj in the inspector window as the lamp I want to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lamps do not show up.&amp;nbsp; They appear in the preview window...but not in the scene.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 20:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686857#M9029</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-05-27T20:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686858#M9030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think &lt;A href="https://community.esri.com/migrated-users/60037"&gt;David Wasserman&lt;/A&gt;​ might know. Otherwise, could you post the OBJ you created and I could try it on my end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 20:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686858#M9030</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-27T20:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686859#M9031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure! Thanks. How do I attach the OBJ to a message here?...or should I just email it to you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 20:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686859#M9031</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-05-27T20:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686860#M9032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I loaded it into City Engine group and tagged you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 20:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686860#M9032</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-05-27T20:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686861#M9033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"use advanced editor" is in upper right of reply form. You will get an "Attach" button there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 21:25:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686861#M9033</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-27T21:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686862#M9034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Micah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can tell that the model origin is very far from the insertion point, so your model might be appearing somewhere off in the distance. This is due to modeling the light &lt;EM&gt;inside&lt;/EM&gt; CityEngine. Although it is possible to edit this type of model in CE, it is not an intended workflow. If you have access to Sketchup or another modeling software (Rhino, 3DS, Mayay), then you could take the model as you did from the Complete Streets example, model it outside of CityEngine, and then put back into the project. Doing it in an "object-scale" modeler will preserve the model origin. When you exported the model after modeling in CityEngine, the model then used the origin of the CityEngine scene as the model's origin. So inserting that model using the rule probably put it in the scene, but at exactly the offset from the CE origin in the new model file. Does this explanation make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 22:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686862#M9034</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-27T22:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686863#M9035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am I still needed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I have to add is that all inserted objects that are intended to be replaced like street lamps need to have up be in the direction of the Y axis. All objects are aligned scope to axis in the y direction as part of the scope casting I did for the rule. So in software like &lt;A href="http://help.sketchup.com/en/article/167475"&gt;sketchup &lt;/A&gt;where the model is made, the Y axis should be the vertical one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 03:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686863#M9035</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2015-05-28T03:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686864#M9036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that makes sense. I did create the model lamp in CE.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 13:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686864#M9036</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-05-28T13:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686865#M9037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I have brought in a new lamp object that I created in Sketchup (Obj).&amp;nbsp; The Complete Streets rule successfully puts the lamps on the sidewalks, but the textures don't show up.&amp;nbsp; They do show up in the preview window, but not on the actual model in the scene.&amp;nbsp; Is their something in the rule I need to adjust to get the textures?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 21:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686865#M9037</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-05-28T21:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686866#M9038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The material file (.MTL) must be present along with the textures alongside the OBJ. I think the textures can also be in a subfolder if the MTL file points there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 21:21:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686866#M9038</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-28T21:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686867#M9039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!...Sketchup didnt export but one color (white) so I thought it was not coloring the object.&amp;nbsp; I added the other colors into the sub folder and then added them in correct place in MTL file. &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 21:58:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686867#M9039</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2015-05-28T21:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686868#M9040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a side note about &lt;A href="http://en.wikipedia.org/wiki/Wavefront_.obj_file#Relative_and_absolute_indices"&gt;OBJ files,&lt;/A&gt; they store the file paths to the MTLs with relative path from the OBJ. So if you want to organize your MTLs into a folder (Sketchup can sometimes be gross in that it may not create a folder), you should open up Notepad++ and manually enter in&amp;nbsp; a few file location relative to the object. &lt;/P&gt;&lt;P&gt;You don't have to, but it is something you CAN do if you want. &lt;/P&gt;&lt;P&gt;Glad things worked out!&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 23:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686868#M9040</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2015-05-28T23:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686869#M9041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a similar issue loading OBJ models to point locations. I have created a quick CGA rule to apply to the points to load the .obj models I need. In my case, I am hoping to insert fire hydrants to point locations in my scene. I keep receiving an 'unknown asset' error at the point locations. If I add in a texture rule them I receive an 'unknown texture error'. I have made sure the .obj, .mtl, and any .jpg textures are included in the mapped folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After having the same issues loading models I had downloaded. I ended up trying to use the fire hydrant in the original Downtown Damage example folder. I have mapped to assets&amp;gt;streets in that folder (the .obj, .mtl, and .jpg images are in the folder) and am still receiving the 'unknown asset' error when I try to load the fire hydrants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unknown Asset.JPG" class="image-1 jive-image" src="/legacyfs/online/132535_Unknown Asset.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="UnknownTexture.JPG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/132539_UnknownTexture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CGA rule I currently have is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;version "2015.1"&lt;/P&gt;&lt;P&gt;attr myFireHydrantPoints = "C:/Users/gardta/Desktop/Example_Downtown_Damage__2011_2/assets/streets/hydrant.obj" &lt;/P&gt;&lt;P&gt;attr H = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@StartRule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point--&amp;gt;&lt;/P&gt;&lt;P&gt;alignScopeToAxes(y) &lt;/P&gt;&lt;P&gt;s(0,H,0) center(xz)&lt;/P&gt;&lt;P&gt;r(0,rand(360),0)&lt;/P&gt;&lt;P&gt;i(myFireHydrantPoints)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried calling the asset using the const operation, using comp (f) {all: HydrantTexture} and using a separate rule for texture, and manually editing the .obj and .mtl files. Any suggestions? I am still pretty new to CGA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 21:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686869#M9041</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2015-10-20T21:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686870#M9042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Tess,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using relative path from your assets folder rather than an absolute path.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_i.html"&gt;"streets/hydrant.obj"&lt;/A&gt; as an example. &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;However, if you want to get fancy, use the &lt;A href="http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/cgareference/cga_annotations.html"&gt;@File annotation &lt;/A&gt;on your attribute so you could pick between different KINDS of fire hydrants if you have another obj (or other similar models).&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;David&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 21:58:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686870#M9042</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2015-10-20T21:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686871#M9043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...hmm the relative path didn't seem to do much. I'll keep pecking away at it though. Thanks for the help!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Tess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 22:37:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686871#M9043</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2015-10-20T22:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686872#M9044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tess, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you are having trouble, it might be worth playing around with some of asset search functions to get an idea of what the directory you are sourcing from is looking like. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See file search here: &lt;A href="http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/cgareference/func_fileSearch.html" title="http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/cgareference/func_fileSearch.html"&gt;http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/cgareference/func_fileSearch.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 22:47:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686872#M9044</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2015-10-20T22:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686873#M9045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the asset search functions performed within a rule? I have been working with a few (i.e. fileSearch, fileExists, and assetInfo) and am not seeing anything being printed. I do not see a CGA console...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help and patience...just learning CE and CGA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 16:53:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686873#M9045</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2015-10-21T16:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686874#M9046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well still no luck with the search functions. I was able to get the hydrant shapes in (with a different .obj file and a relative path), but the textures didn't come through correctly. In order to apply the color I was looking for, I ended up using this CGA rule to apply a custom texture:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;version "2015.1"&lt;/P&gt;&lt;P&gt;attr myFireHydrantPoints = "assets/FireHydrant/fire hydrant.obj"&lt;/P&gt;&lt;P&gt;attr H=0&lt;/P&gt;&lt;P&gt;attr Texture="assets/FireHydrant/red1.jpg"&lt;/P&gt;&lt;P&gt;@StartRule &lt;/P&gt;&lt;P&gt;Point--&amp;gt;&lt;/P&gt;&lt;P&gt;alignScopeToAxes(y)&amp;nbsp; &lt;/P&gt;&lt;P&gt;s(0,H,0) center(xz)&lt;/P&gt;&lt;P&gt;r(0,rand(360),0) &lt;/P&gt;&lt;P&gt;i(myFireHydrantPoints)&lt;/P&gt;&lt;P&gt;comp (f) {all: HydrantTexture} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HydrantTexture--&amp;gt;&lt;/P&gt;&lt;P&gt;texture(Texture)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 21:51:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686874#M9046</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2015-10-21T21:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: insert obj into scene from rule?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686875#M9047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Tess, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File search might be a python function, and in retrospect seems a little silly to recommend. I really just wanted to make sure CE knew where your asset was relative to the project folder. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be the object, and as far as the textures not coming with the object, remember that obj files are simple containers of coordinates &lt;A href="http://paulbourke.net/dataformats/mtl/"&gt;that relate to MTL files&lt;/A&gt;. If you have textures make sure the MTL files are in the same relative location as when they were exported. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 23:25:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/insert-obj-into-scene-from-rule/m-p/686875#M9047</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2015-10-21T23:25:28Z</dc:date>
    </item>
  </channel>
</rss>

