Original User: lialiaok,matt. well, let's do it all again. thx for your patient.:oi'll show you 4 figures, and you can see my way of thinking.i define three wings different colors(blue, magenta and orange) and different height(50,24,12), street setbacks light grey and inner block light green.figure 1: nothing to do with the "scope", so all directions of the opening which i don't expect at all.[ATTACH=CONFIG]33855[/ATTACH]Lot --> sublot
sublot-->setback(10) { all : setbacks | remainder : footprint }
setbacks --> color("#C0C0C0")
footprint --> split(z) { 12 : mass |\1: midpart |20: mass2 }
midpart --> split(x) { 12 : mass3 |\1: inner }
mass --> extrude(world.y, 24) mass1color
mass2 --> extrude(world.y, 50) mass2color
mass1color --> color("#FF8000")
mass3 --> extrude(world.y, 12) mass3color
mass2color --> color("#0000FF")
mass3color --> color("#FF0080")
inner --> color("#CAF497")
then figure 2, alignScopeToGeometry(yUp, any, world.lowset) which a big step in my right direction but not perfect.[ATTACH=CONFIG]33856[/ATTACH]Lot -->
alignScopeToGeometry(yUp, any, world.lowset) sublot
sublot-->setback(10) { all : setbacks | remainder : footprint }
setbacks --> color("#C0C0C0")
footprint --> split(z) { 12 : mass |\1: midpart |20: mass2 }
midpart --> split(x) { 12 : mass3 |\1: inner }
mass --> extrude(world.y, 24) mass1color
mass2 --> extrude(world.y, 50) mass2color
mass1color --> color("#FF8000")
mass3 --> extrude(world.y, 12) mass3color
mass2color --> color("#0000FF")
mass3color --> color("#FF0080")
inner --> color("#CAF497")
and figure 3 , as your suggestion, alignScopeToGeometry(yUp, any, longest), and the 3d image. it looks like the "lowest" one.[ATTACH=CONFIG]33857[/ATTACH]Lot --> .
alignScopeToGeometry(yUp, any, longest) sublot
sublot-->setback(10) { all : setbacks | remainder : footprint }
setbacks --> color("#C0C0C0")
footprint --> split(z) { 12 : mass |\1: midpart |20: mass2 }
midpart --> split(x) { 12 : mass3 |\1: inner }
mass --> extrude(world.y, 24) mass1color
mass2 --> extrude(world.y, 50) mass2color
mass1color --> color("#FF8000")
mass3 --> extrude(world.y, 12) mass3color
mass2color --> color("#0000FF")
mass3color --> color("#FF0080")
inner --> color("#CAF497")
last, figure 4 illustrates my target pattern. the red line is defined as the rear of each lot or the same direction(i cannot define that in cityengine so i draw the red lines in photoshop...). I want all the blue wings of building align to the red lines, just as the right figure(achieved by several rules slightly changed by degrees of rotatescope).[ATTACH=CONFIG]33858[/ATTACH]A long thread and hope to make that clear. thanku:)sorry, I don't seem to follow.
can you make a very clear text of the rules of what part should be aligned where ?
you say the 'grey part' must be aligned to the 'red line'. but all parts are grey ..
maybe use colors for each building wing .. and tell me how the red line is actually defined... ok ?
sry .. matt .. 😮