Python - Take parameter value set as attribute

06-09-2020 01:57 AM
New Contributor


I need to export a shape file with a height attribute from CityEngine. Instead of me manually checking every buildings height and apply as an attribute to that shape, I'm trying to write a script that does it for me.

The idea is that the script goes through all shapes, check if they have a sertain rule attached, take the height value, create a attribute and insert the value.

The issue is that the command getAttribute() only takes a user-set value, so if you haven't manually inserted a height, the value getAttribute() takes will not be correct. I'm using CityEngine 2018

How can I get this to work?

Tags (2)
0 Kudos
0 Replies