Python Script Based Export: finishModel - initialShapeUUID, ModelUUID
Using the initialShapeUUID or ModelUUID from within finishModel(), Is it possible to get to the base shape and query for attribute values from within the finishModel export step? Code: model =...
View ArticlePython :- Selection- Suggestion
Not so nice: myListOfShapes=ce.getObjectsFrom(ce.selection(), ce.isShape) This would be far nicer: whatEverIsSelected = ce.getSelection() myListOfShapes=ce.getSelection(type="Shape")...
View ArticleExternal script changes, do not reload(), have to delete script$py.class files
So I have a number of scripts (myAdditionalScript.py) that are imported into the script based exporter(scriptexport.py). I am finding that if I alter one of these myAdditionalScript.py scripts...
View ArticleWorking with paths in cityengine python script execution - Tip
This may help others if you come across odd behaviour. I'm running on win7. I was having a number of issues breaking a path up in script execution, the confusing thing is that it works fine in the...
View ArticleGUI in City Engine using Python
Hi Matt, as your request. here i open new thread for GUI in City engine using python. THANKS!
View ArticlePython Console OLE Exception Error
Good morning. WhenI try to open the Python console in CityEngine Vue 2010.3 (Win 64-bit), I get an OLE Exception Error. It says cannot create the in-place editor. I’ve attached an image of the error...
View ArticleHow do you get from a shape to a graph segment?
How do you get from a shape to a graph segment when working with roads in python? It would appear that you can only get to graphSegments from layers? is this correct... the reason I ask is because the...
View ArticleFrom a graphSegment how do you determine a sidewalkLeftShape from...
From a graphSegment how do you determine a sidewalkLeftShape from sidewalkRightShape? Since the return from, the assumption is that I am trying to iterate through the shapes returned from:...
View ArticleFrom graphNode how do i get to connected graphSegments
From graphNode how do i get to connected graphSegments?
View ArticleSuggestion: ce.getVertices
Why would ce.getVertices return an unstructured list of floating point numbers? Is it assumed that when returning from a shape the coord listings are in vertex order so we can structure as needed?...
View ArticleError Handling
How do i raise my own errors to the error Log window? Is there a CEError exception class I can use?
View ArticleAccess to Meshes with Python
Hi, I'm using a licensed version of CityEngine (Esri CityEngine 2012.1 build 120913 (release, win32-64bit)) which is registered to a Japanese account. After using a cga-rule file to generate a shape I...
View ArticleImporting a obstacle map in python
Hello, I'm writing a python script to automate some stuff, and one of the things I'd like to automate is setting up an obstacle map. Importing the obstacle map file is no trouble, but for it to...
View ArticleSelect - Select Objects By Map Layer in Python?
Hello, I'd like to automate the following process in the GUI: Select -> Select Objects By Map Layer -> Obstacle:obstacle In my scene I have lots that are being generated over a river, despite the...
View ArticleFlood Simulation
Hello, I saw on Facebook this video. I was wondering if City Engine can do flood simulation as found under the link below? Or Was that real flow ? http://www.youtube.com/watch?v=JcGXGTiV0Zw Regards,
View ArticleSet Rule Attribute in Export Script
Hi, im trying to use a rule-attribute to enable and disable the report() calls during shape generation so that I dont waste time amd memory creating report data that i only need during export. If I...
View ArticleGraph object export scripts
Hello, I'm wondering if it's possible to attach export script whilst exporting graph objects? It seems on initial inspection that you can only attach an export script to the shape exports. I'm trying...
View Articlece.getAttribute returns wrong street width
If I use ce.getAttribute to get a street width, it will return a wrong value under these circumstances: 1. Select a street 2. Change the default street width value to something else in the inspector...
View ArticleImporting Scripts
Hi, I have a number of scripts in the Workspace "scripts" folder, using the sys.path.append() method I am oftem but seeminlgy randomly getting errors when trying to run scripts that import scripts in...
View ArticleAccess Scene Light values using python?
Hello, I wold like to ask a question regarding the layer Scene Light in City engine. Is there a way to access the attributes of the layer using python? Thank you
View Article
More Pages to Explore .....