justdintdoit
02-12-2006, 01:26 AM
Hello world,
I've modeled a floor plan using the AEC wall object but now all wall need to be few units higher and considering it are 200+ pieces of wall i thought it would be great to select all and use a maxscript for it.
because i never touched maxscript before i did some reading and with some examples/tutorial 'I' made a script that works for all objects, with a height parameter, except for my wall objects it doesnt give a error when i press my button but nothing happens to my object(s).
what am i doing wrong here?
Thx
rollout myRollout "Wall Rollout" width:168 height:232
(
button btn1 "change height now!" pos:[16,95] width:135 height:38
spinner spn3 "" pos:[38,28] width:68 height:16 type:#worldunits
on btn1 pressed do
(
print $
print spn3.value
for obj in selection do
(
try
(
(
$.height = spn3.value
)
)
catch()
)
)
)
myFloater = newrolloutfloater "Wall changer" 300 400
addrollout myRollout myFloater
I've modeled a floor plan using the AEC wall object but now all wall need to be few units higher and considering it are 200+ pieces of wall i thought it would be great to select all and use a maxscript for it.
because i never touched maxscript before i did some reading and with some examples/tutorial 'I' made a script that works for all objects, with a height parameter, except for my wall objects it doesnt give a error when i press my button but nothing happens to my object(s).
what am i doing wrong here?
Thx
rollout myRollout "Wall Rollout" width:168 height:232
(
button btn1 "change height now!" pos:[16,95] width:135 height:38
spinner spn3 "" pos:[38,28] width:68 height:16 type:#worldunits
on btn1 pressed do
(
print $
print spn3.value
for obj in selection do
(
try
(
(
$.height = spn3.value
)
)
catch()
)
)
)
myFloater = newrolloutfloater "Wall changer" 300 400
addrollout myRollout myFloater
