--The BM Breaker V1.0 Beta
lzz rzx^ --Script to fracture Objects , explode Elements , calculate the mass of each fragment and assign mass to Rigid body mass
)6#dxb9 --in Reactor
A.<HOx --help : all is self explanatory , just walk down the script in order or it will break !
pOlo_na}[ --known issues: slow , and no fool proof measures yet
Y,OSQBgk -- Sliders are a hell to manipulate , just use your mouse !
E~5r8gM,0 --Usage : create a box ! Cut random then precise , frag and give wight
%j %}iM/(< --You should know the density of the material you fracture and enter the value in the type-in
sw{,l"]< --if you want to change the mass after assignning them , just select none and hit weight again
h4x*C=?A --you will have a RBCollection and A fracture Collection by the End
DTrS9j?z --WARNNING: please Stick to real measures !
i.Iiwe0G --Dettacher part was kindly provided by neil blevins from his Object_Dettacher Script --See roll_3
8 munw --Use at your own risk
vdrV)^ --written by mohab gamal |||
mtawfeek2@yahoo.co.uk|||
R4G$!6Ld v]|^.x: macroScript BM_Breaker
_sIhQ8$: category:" cyfer "
6%Ap/zvCZ> tooltip:"BM Breaker"
X96>N{C*> (
kxt@t# v#
ab2 rollout roll_1 "random cutter" width:150 height:113 category:1
k L2(M6m (--start roll_1
n5dFp%k spinner spin1 "No.of loops" pos:[13,6] width:124 height:16 range:[1,100,5] type:#integer
<U`lh spinner spinx "X" pos:[88,27] width:44 height:16 range:[-360,360,0] type:#integer
<CIJg* spinner spiny "Y" pos:[88,47] width:44 height:16 range:[-360,360,0] type:#integer
4]O{Nko) spinner spinz "Z" pos:[88,68] width:44 height:16 range:[-360,360,0] type:#integer
K.c6n,' button bt1 "do it " pos:[31,88] width:88 height:21
9X&Xc --groupBox grp2 "GroupBox" pos:[6,11] width:169 height:150
FI++A` :&ir5xHS on bt1 pressed do
{h/[!I` (--start bt1 pressed
($EA/|z D+?/MrP if $ != undefined then
S4uX utd (--start If
IiTV*azVh $.name = "themokaka"
[sJ f)< for i = 1 to spin1.value do
]vRte!QJ; (
! iuDmL rZ`ob x\S A=spinx.value ---random -360 360
$5kb3x<W B=spiny.value ---random -360 360
eMyh&@7(F C=spinz.value ---random -360 360
^=:e9i3u centerpivot $
[. Vy modpanel.addmodtoselection (SliceModifier ()) ui:on
!J`>;& $.modifiers[#slice].Slice_Type = 1
;hb;%<xqT $.modifiers[#slice].Slice_Plane.position = random $.min $.max
ZDEz&{3U; $.modifiers[#slice].Slice_Plane.rotation= eulerangles A B c
!5I;3EN modpanel.addmodtoselection (Cap_holes()) ui:on
eV:I ::: addmod xform
d-/{@
maxOps.collapsenode $ on
Xg+Eeg# )
o
4G%m>$ )--end If
BfZAK0+*$ else messagebox "No MooKa'Ka is selected !"
:[![9JS/ )--end bt1 pressed
UrtA]pc3L )--end roll_1
S -$ L2N Bgb~ Tz' rollout roll_2 "Precise Cutter" width:160 height:328 category:2
='r86vq (
Jr|"QRC button btn_Start "Start" pos:[19,14] width:123 height:16
>s0A.7,5 slider slideX "X.pos" pos:[15,36] width:34 height:99 range:[-100,100,0] orient:#vertical
TCShS}q;% slider slideY "Y.pos" pos:[66,36] width:30 height:99 range:[-100,100,0] orient:#vertical
p;8I@~dh slider slideZ "Z.pos" pos:[117,36] width:27 height:99 range:[-100,100,0] orient:#vertical
=NJ:%kvF slider slideX_Rot "X.rot" pos:[15,133] width:25 height:99 range:[-100,100,0] orient:#vertical
%3p~5jhm1 slider slideY_Rot "Y.rot" pos:[66,133] width:29 height:99 range:[-100,100,0] orient:#vertical
_8zZ.~) slider slideZ_Rot "Z.rot" pos:[118,133] width:34 height:99 range:[-100,100,0] orient:#vertical
ng,64(wOY button btn_Cut "Cut" pos:[19,233] width:123 height:16
87&BF)] }jL_/gvgy on btn_Start pressed do
H]]UsY` 1#nR$ (--start on btn_start pressed
s,z$Vt"h*K centerpivot $
n,,hE_ modpanel.addmodtoselection (SliceModifier ()) ui:on
<H; z4 subobjectlevel=1
/Kw}R5l $.modifiers[#slice].Slice_Type = 1
2Ra}&ie XIep3l* )
+ConK>; on slideX changed val do
W't?aj I| ($.modifiers[#slice].Slice_Plane.position.x = slidex.value )
Xa,d"R~ on slideY changed val do
pxGDzU ($.modifiers[#slice].Slice_Plane.position.y = slidey.value )
e7O9q8b on slideZ changed val do
T"bH{|:%*= ($.modifiers[#slice].Slice_Plane.position.z = slidez.value )
CjQ)Bu*4 on slideX_Rot changed val do
#7*{ $v ($.modifiers[#slice].Slice_Plane.rotation = eulerangles slideX_Rot.value slideY_Rot.value slideZ_Rot.value )
9Z[EzKd<~' on slideY_Rot changed val do
`)aIFAW ($.modifiers[#slice].Slice_Plane.rotation = eulerangles slideX_Rot.value slideY_Rot.value slideZ_Rot.value )
#9/^)^k on slideZ_Rot changed val do
/N8>>g ($.modifiers[#slice].Slice_Plane.rotation = eulerangles slideX_Rot.value slideY_Rot.value slideZ_Rot.value )
X]1Q# $b on btn_Cut pressed do
cWU9mzsE (
Iq?#kV9) modpanel.
\*+-Bm:$j addrollout roll_5 MaR
x
&
ZW
f? )