Looking for example python script to create custom lot shapes

745
1
11-08-2016 04:01 PM
RobertYu
New Contributor III

Hi,

I would like to create some custom lots without using the built in Block types using python.

Can someone provide some hints?

Thanks!

-Robert

0 Kudos
1 Reply
LR
by
Occasional Contributor III

This creates a simple 500mx500m rectangle.

from scripting import *

# get a CityEngine instance
ce = CE()

#vertex array xyz
myVertices = [0,0,0, 0,0,500, 500,0,500, 500,0,0]

if __name__ == '__main__':
 myShape = ce.createShape(None, myVertices)‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
0 Kudos