Changing Terrain elevation settings from Python script

254
1
Jump to solution
11-23-2021 01:53 AM
AC22
by
New Contributor

Hello,

I am currently using CityEngine 2021.0 and creating a simple terrain, loading all necessary terrain tiles via python script. After loading I wish to also, using python, change terrain settings visible here:

exampleData.png

 I can change the Positioning settings, using setAttributeLayerExtents and setElevationOffset commands, but I was unable to find anything in the python documentation in order to change Elevation settings: Resolution, Apply Alignments or Heightmap Sampling.

Is it possible with a python script? I am most interested in changing the Resolution - changing those values by hand for every terrain is tiresome, epecially in scenes with over 100 tiles.

Thanks,
Adam

0 Kudos
1 Solution

Accepted Solutions
JonasObertuefer
Esri Contributor

Hi Adam,

These settings are currently not available via python scripting interface; however they will be for the upcoming 2022.0 release.

Until then I don't see another option than doing this manually.

Cheers
Jonas

View solution in original post

0 Kudos
1 Reply
JonasObertuefer
Esri Contributor

Hi Adam,

These settings are currently not available via python scripting interface; however they will be for the upcoming 2022.0 release.

Until then I don't see another option than doing this manually.

Cheers
Jonas

0 Kudos