For example like this, to produce a red 10m tall block. The script is very simplified, just to show the general idea.. I can't just pack the function into Lot.
Lot -->
ColorScript
extrude(10)
ColorScript -->
color(1,0,0)
Also is it somehow possible to call another cga within a cga file? For example, I have one function (coloring) I need to execute on every building and that function doesn't change. It's also rather big and gets in the way because I can't collapse it. Another case would be the roof construction parts, or texturing parts. So what I basically want to do is something like
Lot -->
extrude (10)
ColorScript.cga
is that possible somehow?