|
POST
|
Yes. There is a cleanup graph command in Python: Python Scripting Command Reference: CE.cleanupGraph - CleanupGraphSettings @example:
# Settings class used to control parameters for cleanupGraph operation
cleanupSettings = CleanupGraphSettings()
cleanupSettings.setIntersectSegments(True)
cleanupSettings.setMergeNodes(True)
cleanupSettings.setMergingDist(10)
cleanupSettings.setSnapNodesToSegments(True)
cleanupSettings.setSnappingDist(10)
cleanupSettings.setResolveConflictShapes(True)
graphlayer = ce.getObjectsFrom(ce.scene, ce.isGraphLayer)
ce.cleanupGraph(graphlayer, cleanupSettings) It works the same way as in the GUI.
... View more
10-03-2018
09:25 AM
|
1
|
0
|
598
|
|
POST
|
Thank you for your question. The answer is, that the position needs to be subtracted to move the objects to the center. position = ce.getPosition(toExport)
settings.setGlobalOffset([-position[0],-position[1],-position[2]])
... View more
10-03-2018
09:19 AM
|
3
|
1
|
1245
|
|
POST
|
You are right in the CGA Language there are Shape Attributes. These Shape Attributes are properties of current shape the rule is applied on. The are completely unrelated to the CGA Attributes attr id = expression that can be connected to Object Attributes, Shape Parameters and Layer Attributes (see above)
... View more
09-28-2018
09:31 AM
|
0
|
1
|
3961
|
|
POST
|
There are Object Attributes and Shape Parameters, there are no Shape Attributes. Shape parameters define the dynamic shape generated by CityEngine. Please read the CE help on Creation of Shapes from Graph Networks . Also Note: Shape Parameters can also be connected to Object Attributes.
... View more
09-20-2018
03:27 AM
|
2
|
4
|
3961
|
|
POST
|
Thank you for your question. Objects is generic term that comprises (Shapes, Models, Graphs, Terrains, Viewsheds ...) Some of these Objects like Shapes or Graphs can have Object Attributes. I hope this clarifies the semantic.
... View more
09-17-2018
07:53 AM
|
2
|
6
|
3961
|
|
POST
|
No apparently not. I'd like to analyze your scene and cga rules. I've sent you a private message.
... View more
09-12-2018
07:03 AM
|
2
|
0
|
1833
|
|
POST
|
Hello Chistoph In your code you used "color" as a rule name. Additionally it is also a CGA operation http://desktopdev.arcgis.com/en/cityengine/latest/cga/cga-color.htm I advise you to rename the rule to "setColor" and do not hand over the attribute "Nutzungsart". This should do the trick: version "2018.1"
// Attributes
attr VPKOTE = 0
attr Radius = 0
attr Form = ("Pipe")
attr Nutzungsart = 0
// Functions
red = "#ffaaaa"
green = "#00ae00"
blue = "#aaaaff"
turquoise = "#ooebeb"
white = "#ffffff"
yellow = "#ffff73"
grey = "#9c9c9c"
// Start !
@StartRule
LOT -->
extrude(world.y, VPKOTE)
extrude(Radius)
setColor
setColor -->
case Nutzungsart == 1 : color(red)
case Nutzungsart == 2 : color(green)
else : color (yellow)
PipeAsset =
case Form == "Pipe" :
"assets/pipe.obj"
else: "assets/pipe.obj" mfG Thomas F
... View more
09-12-2018
06:24 AM
|
1
|
1
|
1307
|
|
POST
|
Hi Carla and Abele, can you please confirm, this happens with CityEngine 2018.0? It includes a bugfix, that deals with a crash that matches your description. Thank you Thomas F
... View more
09-12-2018
02:40 AM
|
2
|
3
|
1833
|
|
BLOG
|
3D content generation can easily become unmanageable when processing tasks are reaching country scale. To bypass the capacity limitations of working in a semiautomatic process, Esri CityEngine now supports full automation via its Python API. Predefined jobs such as importing, analyzing, cleaning up your source data and assigning procedural rules for exporting 3D models can be conveniently run from the system command line. To reach this goal, the CityEngine team worked closely with developers in the entertainment, 3D visualization and mapping industries to successfully integrate CityEngine technology into their automated content production processes. This fully automated process is open to all users with CityEngine 2018.0 and later. Tutorial 10 Python Scripting includes an example of automatically modeling KML buildings from building footprints.
... View more
08-21-2018
04:11 AM
|
2
|
2
|
1607
|
|
POST
|
Hello Haval Thank you for your question. The problem is, that in the imported shape has inverted face normals. In the WebScene the backfaces are culled. To fix this problem, select the shapes and run the "Menu > Shapes > Cleanup Shapes..." tool with the setting "Conform Normals" enabled. If there are still some faces in the wrong direction, select them and do "Menu > Shapes > Reverse Normals"
... View more
07-27-2018
06:33 AM
|
1
|
1
|
1361
|
|
POST
|
Hi Ryan, Thank you for sharing your thoughts. The CityEngine team is committed to support all 3 desktop operating systems to provide solutions for our diverse user community. There are no plans to drop support for macOS.
... View more
07-24-2018
02:48 AM
|
0
|
0
|
797
|
|
POST
|
Hi Kerry There is 2 ways to do this: In the Inspector highlight the table with the visibility information, then copy paste into a spreadsheet Use Python to query the information and write it out to a .csv file, see: Python Scripting Command Reference getVisibleSolidAngle(self, viewshed, requestedLayers)
Get the layers' visible solid angle from the viewshed.
@param viewshed: The Viewshed . [Analysis]
@param requestedLayers: An array of layers . [sequence of ]
@return: result. [sequence of float]
@example:
# get the Solid Angles of the Viewshed per Object Layer
viewshed = ce.getObjectsFrom(ce.scene, ce.isViewshed)[0]
panoramaLayer = ce.getObjectsFrom(ce.scene, ce.withName("'Panorama'"))[0]
newShapesLayer = ce.getObjectsFrom(ce.scene, ce.isLayer, ce.withName("'New Shapes'"))[0]
layers = [panoramaLayer,newShapesLayer]
solidAngles = ce.getVisibleSolidAngle(viewshed, layers)
print "Panorama : ", solidAngles [0], " steradians"
print "New Shapes: ", solidAngles [1], " steradians"
... View more
07-23-2018
05:54 AM
|
1
|
1
|
1198
|
|
POST
|
Hi April, Thank you for your question. The example is a riddle made up of models that can be modified with handles in Local Edits mode. There is an introduction video. You will find yourself transported to Treasure Island on a hunt for hidden treasure. You will encounter friendly residents, save animals, and build castles on your way to discovering the legendary treasure of Treasure Island. Find out more about the Local Edit capability in Tutorial 20: Local edits—CityEngine Tutorials | ArcGIS Desktop
... View more
07-09-2018
03:13 PM
|
0
|
1
|
1023
|
|
POST
|
When the finish button is deactivated usually ther is a wrong or missing input. Is there any error or hint shown on the first page the greyed out finish button appears? The hint is usually shown below the tiltle of the dialog.
... View more
06-08-2018
02:08 AM
|
1
|
0
|
1485
|
|
POST
|
Hi John Your method might work, but the GIS2VR: From CityEngine via Unity to HTC Vive tutorial describes a better way: Autodesk FBX works great both in CityEngine and Untiy. In the next dialog, you can tweak some parameters. Simpify Terrain Meshes reduces the amount of triangles in flat areas, and is important for good performance. Also select Create Texture Atlases, this will decrease the amount of drawcalls. You can further choose to Embed Textures for easier transfer to Unity. You might need to scroll down to find those options.
... View more
05-17-2018
02:38 AM
|
2
|
0
|
1184
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-15-2025 08:03 AM | |
| 1 | 10-16-2025 03:16 AM | |
| 3 | 10-20-2025 06:11 AM | |
| 1 | 04-19-2023 12:30 AM | |
| 1 | 02-27-2025 05:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|