Setback after height?

2612
1
Jump to solution
04-13-2015 01:02 PM
MicahTaylor
Occasional Contributor III

This may be something simple I am missing, but I was wondering how I can set a building model back after x units of extrusion.

here is my simple rule...

@Range(10,50)

attr height = 0

@Range(0.2,1)

attr Trans = 0.5

@StartRule

Lot-->

    set(material.opacity, Trans)

    extrude(height) A

   

A-->

    split(y){~2 : B}*

B-->

    color("#ffffff")

For example, how do I bring the walls of the block 7 units inward on all sides after 20 units elevation?....(where it looks like a smaller volume building on top of a larger volume building)  (See terrible drawing for example maybe)  Thanks!

0 Kudos
1 Solution

Accepted Solutions
MicahTaylor
Occasional Contributor III

Nevermind..Found it...its "offset"...not setback.

@Range(10,50)

attr height = 0

@Range(0.2,1)

attr Trans = 0.5

@StartRule

Lot-->

    set(material.opacity, Trans)

    extrude(height) A

   

A-->

    split(y){~2 : B}*

B-->

    case (split.index <= 3) :

        color("#fff00b")

    else:

        offset(-7, inside)

View solution in original post

0 Kudos
1 Reply
MicahTaylor
Occasional Contributor III

Nevermind..Found it...its "offset"...not setback.

@Range(10,50)

attr height = 0

@Range(0.2,1)

attr Trans = 0.5

@StartRule

Lot-->

    set(material.opacity, Trans)

    extrude(height) A

   

A-->

    split(y){~2 : B}*

B-->

    case (split.index <= 3) :

        color("#fff00b")

    else:

        offset(-7, inside)

0 Kudos