How could I bind the shape attributes to rules attr in python script

2992
2
Jump to solution
03-06-2012 10:56 PM
gouzhun
New Contributor
HI, I want to batch export my model from cityengine without setting attr in UI,but in the py script I don't know how to bind the shape attr to rules attr. 
please help!
thanks!

gouzhun
Tags (3)
0 Kudos
1 Solution

Accepted Solutions
MatthiasBuehler1
Frequent Contributor
I'm not perfectly sure if I understood correctly, but I gues this is what you need :

    ce.setAttributeSource()


check the Help Menu for the Python docs under :

CityEngine Help > Python Scripting > Scripting Interface Usage > Commands by Category

and search for that command.


does this work ?

View solution in original post

0 Kudos
2 Replies
MatthiasBuehler1
Frequent Contributor
I'm not perfectly sure if I understood correctly, but I gues this is what you need :

    ce.setAttributeSource()


check the Help Menu for the Python docs under :

CityEngine Help > Python Scripting > Scripting Interface Usage > Commands by Category

and search for that command.


does this work ?
0 Kudos
gouzhun
New Contributor
I'm not perfectly sure if I understood correctly, but I gues this is what you need :

    ce.setAttributeSource()


check the Help Menu for the Python docs under :

CityEngine Help > Python Scripting > Scripting Interface Usage > Commands by Category

and search for that command.


does this work ?

Yes!
With your suggestion,I've solved the problem smoothly,thanks for your help,matthiasbuehler!

gouzhun
0 Kudos