jbw
03-05-2004, 03:00 PM
Please can someone help me... I'm starting to get really wound up with myself for not being able to sort this. I've been using Max for about 5 years now and have never touched on Maxscript... until now.
All I need to do is create a script that will create a floater with 2 buttons in it. One button will show objects that end in a certain word and hide other objects that end in another. The other button will reverse the above action.
Please can someone give me a push in the right direction. Whilst this is most likely the easiest script you guys have come across... I'm completely out of my league. I've been looking at the help file and I've been experimenting and playing with scripts for a couple of days but nothing is working. I've followed the macro recorder to find out how maxscript uses unhide and hide but all I get are syntax errors. My syntax errors kick in whenever I place another line in a do action?
rollout FloaterRenderUtil "HiResFloater"
(
button HiRes "Hi-Res"
button LowRes "Low-Res"
on HiRes pressed do
hide $*LowRes
unhide $*HiRes
)
ta,
jbw
All I need to do is create a script that will create a floater with 2 buttons in it. One button will show objects that end in a certain word and hide other objects that end in another. The other button will reverse the above action.
Please can someone give me a push in the right direction. Whilst this is most likely the easiest script you guys have come across... I'm completely out of my league. I've been looking at the help file and I've been experimenting and playing with scripts for a couple of days but nothing is working. I've followed the macro recorder to find out how maxscript uses unhide and hide but all I get are syntax errors. My syntax errors kick in whenever I place another line in a do action?
rollout FloaterRenderUtil "HiResFloater"
(
button HiRes "Hi-Res"
button LowRes "Low-Res"
on HiRes pressed do
hide $*LowRes
unhide $*HiRes
)
ta,
jbw
