Solved! Go to Solution.
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 ?