kjzhang

Rotating depending on split index

Discussion created by kjzhang on Feb 24, 2013
Latest reply on Feb 25, 2013 by zsoftware
Hi,

I have a simple script that splits a large parcel into smaller subparcels. However, I want the middle rows be rotated, for every OTHER row. I have an inkling of how to do with this split.index being odd or even and rotateScope, but not sure how to do it. Any help would be much appreciated.
Lot -->
 split(x)
  {
   SubDepth:rotateScope (0,-90,0)split(x){~SubWidth:SubparcelShowFront}*|
   ~1:split(z)
    {
    ~SubDepth:split(x)
     {
     ~SubWidth:
     SubparcelShowFront
     }*
    }*|
   SubDepth:rotateScope (0,90,0)split(x){~SubWidth:SubparcelShowFront}*
   }

SubparcelShowFront-->
 setback(2){front:yardfront|remainder:rest}

yardfront-->color(1,0,0)
rest-->color(0,1,0)
[ATTACH=CONFIG]22127[/ATTACH]

Attachments

Outcomes