I am working on a project that uses python to generate road networks, which by enclosing spaces automatically creates lots with blocks inside. I am able to set an attribute to the block, but I can't find how to extrude the block or set a height attribute to make it a building. For example, I can set a height attribute, and when I click after the script runs it shows that height (based on the "Animation" script tutorial https://doc.arcgis.com/en/cityengine/2019.0/tutorials/tutorial-10-python-scripting.htm) def set_building(ce):
lots = ce.getObjectsFrom(ce.scene, ce.withName("*Block*"))
for blocks in lots:
ce.setAttributeSource(blocks, "height", "OBJECT")
ce.setAttribute(blocks, "height", 10) However this does nothing to the model. I see that CGA reference has an 'extrude' method, but the python reference is missing it. How is this done?
... View more