hi Brian .thank you for your answer . how i can set an indices to make my array output single string/float/bool values. how do I do that? as well as using the recursive mode for the array . It is possible to explain more
this is my rule for this section :
@Order(0)@Enum(valuesAttr=ChamferDirection)
attr chamfer_Direction = stringArray()
@Hidden
attr ChamferDirection = ["FR";
"FL";
"BR";
"BL"]
#-----------------------------
What code should be used for my array to output as a single bool/float/string, and also to create a recursive mode for the array
attr Corner_Trim =false
@Order(0)@Enum(valuesAttr=ChamferDirection)
attr chamfer_Direction = stringArray()
attr Boolian_chamfer_Direction =bool("chamfer_Direction") or
boolArray(chamfer_Direction)
// this after added
@Hidden
attr ChamferDirection = ["FR";
"FL";
"BR";
"BL"]
#----------------------------------------------
BlockLot(n) -->
case Split_axis =="X" : // for X split
case n ==1 && chamfer_Direction ==["FR"] :
alignScopeToAxes(y)
rotateScope(0, 180, 180)
rotateScope(0,chamfer_Angle, 0)
split(x) { chamfer_Dis : NIL |~1:RemaindLand }
case n ==2 && chamfer_Direction ==["FL"] :
alignScopeToAxes(y)
rotateScope(0, 0, 0)
rotateScope(0,chamfer_Angle, 0)
split(x) { chamfer_Dis : NIL |~1:RemaindLand }
case n ==3 && chamfer_Direction ==["BR"] :
alignScopeToAxes(y)
rotateScope(0, 180, 0)
rotateScope(0,chamfer_Angle, 0)
split(x) { chamfer_Dis : NIL |~1:RemaindLand }
case n ==4 && chamfer_Direction ==["BL"] :
alignScopeToAxes(y)
rotateScope(180, 0, 180)
rotateScope(0,chamfer_Angle, 0)
split(x) { chamfer_Dis : NIL |~1:RemaindLand }
else :RemaindLand
else : // for Z split
case n ==1 && chamfer_Direction ==["BR"] :
alignScopeToAxes(y)
rotateScope(0, 180, 180)
rotateScope(0,chamfer_Angle, 0)
split(x) { chamfer_Dis : NIL |~1:RemaindLand }
case n ==2 && chamfer_Direction ==["BL"] :
alignScopeToAxes(y)
rotateScope(0, 180, 0)
rotateScope(0,chamfer_Angle, 0)
split(x) { chamfer_Dis : NIL |~1:RemaindLand }
case n ==3 && chamfer_Direction ==["FR"] :
alignScopeToAxes(y)
rotateScope(0, 0, 0)
rotateScope(0,chamfer_Angle, 0)
split(x) { chamfer_Dis : NIL |~1:RemaindLand }
case n ==4 && chamfer_Direction ==["FL"] :
alignScopeToAxes(y)
rotateScope(180, 0, 180)
rotateScope(0,chamfer_Angle, 0)
split(x) { chamfer_Dis : NIL |~1:RemaindLand }
else :RemaindLand
#--------------------------------------------------
very thanks.