-
Notifications
You must be signed in to change notification settings - Fork 6
/
randomx_0.4.ms
141 lines (124 loc) · 5.15 KB
/
randomx_0.4.ms
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
-- RandomX
-- Description: Transform Randomizer for 3ds Max
-- Version: 0.4
-- Author: Markulie
-- Created: May 4, 2015
-- Updated: August 21, 2022
global rltRandomX
try destroyDialog rltRandomX catch()
rollout rltRandomX "RandomX v0.4"
(
label lbl_move_rotate "M O V E R O T A T E" pos:[30,3]
spinner spn_mxMove "Max:" type:#integer range:[0,3000,30] pos:[20,20] width:65
spinner spn_mnMove "Min: " type:#integer range:[0,3000,0] pos:[20,40] width:65
radiobuttons rdi_movAxis labels:#("X","Y","Z") pos:[5,62] offset:[0,5] default:1
slider sld_move pos:[5,80]
type:#integer range:[-(spn_mxMove.value),(spn_mxMove.value),0]
width:95 offset:[0,5]
on spn_mxMove changed value do
(
sld_move.range = [-(spn_mxMove.value),(spn_mxMove.value),0]
sld_move.ticks = 8
)
on sld_move buttonup do
(
if selection.count<=1 then
(
messagebox "Please select some objects first."
sld_move.range = [-(spn_mxMove.value),(spn_mxMove.value),0]
sld_move.ticks =8
)
else
(
if (rdi_movAxis.state == 1) do
(
coll2 = $
arr = coll2 as array
for i = 1 to arr.count do
(
seed (random 1 50000)
in coordsys local arr[i].pos = random [(spn_mnMove.value),0,0] [(sld_move.value),0,0]
)
)
if (rdi_movAxis.state == 2) do
(
coll2 = $
arr = coll2 as array
for i = 1 to arr.count do
(
seed (random 1 50000)
in coordsys local arr[i].pos = random [0,(spn_mnMove.value),0] [0,(sld_move.value),0]
)
)
if (rdi_movAxis.state == 3) do
(
coll2 = $
arr = coll2 as array
for i = 1 to arr.count do
(
seed (random 1 50000)
in coordsys local arr[i].pos = random [0,0,(spn_mnMove.value)] [0,0,(sld_move.value)]
)
)
sld_move.range = [-(spn_mxMove.value),(spn_mxMove.value),0]
sld_move.ticks =8
)
)
spinner spn_mxRotation " Max: " type:#integer range:[0,360,30] pos:[110-5+3,20] width:65
spinner spn_mnRotation " Min: " type:#integer range:[0,(spn_mxRotation.value),0] pos:[110-5+3,40] width:65
radiobuttons rdi_rotAxis labels:#("X","Y","Z") pos:[91,62] offset:[0,5] default:1
slider sld_rotate pos:[93,80] \
type:#integer range:[-(spn_mxRotation.value),(spn_mxRotation.value),0]\
width:95 offset:[0,5]
on spn_mxRotation changed value do
(
sld_rotate.range = [-(spn_mxRotation.value),(spn_mxRotation.value),0]
sld_rotate.ticks = 8
)
on sld_rotate buttonup do
(
if selection.count<=1 then
(
messagebox "Please select some objects first."
sld_rotate.range = [-(spn_mxRotation.value),(spn_mxRotation.value),0]
sld_rotate.ticks = 8
)
else
(
if (rdi_rotAxis.state == 1) do
(
coll2 = $
arr = coll2 as array
for i = 1 to arr.count do
(
seed (random 1 50000)
in coordsys local rotate arr[i] (EulerAngles (random (spn_mnRotation.value) (sld_rotate.value)) 0 0)
)
)
if (rdi_rotAxis.state == 2) do
(
coll2 = $
arr = coll2 as array
for i = 1 to arr.count do
(
seed (random 1 50000)
in coordsys local rotate arr[i] (EulerAngles 0(random (spn_mnRotation.value) (sld_rotate.value))0)
)
)
if (rdi_rotAxis.state == 3) do
(
coll2 = $
arr = coll2 as array
for i = 1 to arr.count do
(
seed (random 1 50000)
in coordsys local rotate arr[i] (EulerAngles 0 0 (random (spn_mnRotation.value) (sld_rotate.value)))
)
)
sld_rotate.range = [-(spn_mxRotation.value),(spn_mxRotation.value),0]
sld_rotate.ticks = 8
)
)
hyperLink author "markulie" address:"https://markulie.github.io" color:(color 255 255 255) hovercolor:(color 255 150 255) visitedcolor:(color 255 255 255) align:#center
)
createDialog rltRandomX 180 140