Explode Shape: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
New page: {| |- |global num, list(5) |- |contour [ |- |start -1, -1 |- |line -1, 1 |- |line 1, 1 |- |line 1, -1 |- |line -1, -1 |- |] |- |select_shape contourref |- |extrude 0, 2 |- |iref = solid...
 
ConnerO (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 34: Line 34:
|-
|-
|for i = 1 to num
|for i = 1 to num
|-
|}
|deselect_all_solids
:deselect_all_solids
|-
 
|select_solid list(i)
:select_solid list(i)
|-
 
|redraw
:redraw
|-
 
|message "next shape"
:message "next shape"
|-
 
{|
|next i
|next i
|}
|}

Latest revision as of 14:29, 29 July 2010

global num, list(5)
contour [
start -1, -1
line -1, 1
line 1, 1
line 1, -1
line -1, -1
]
select_shape contourref
extrude 0, 2
iref = solidref
select_solid iref
translate_solid 5, 0, 0, 4
iref2 = solidref
shrink_wrap
explode_solid iref2, num, list
for i = 1 to num
deselect_all_solids
select_solid list(i)
redraw
message "next shape"
next i