home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar Special 2002 April
/
GSSH42002.iso
/
EDITOREN
/
DS
/
gmax
/
gmaxinst_1-1.exe
/
gmaxsetup11.cab
/
Macro_ModifierStackTools.mcr
< prev
next >
Wrap
Text File
|
2002-02-13
|
4KB
|
167 lines
-- Convert To: MacroScript File
--
-- Created: May 15 2000
-- Last Updated: 10 6 2000
--
-- Author : Frank DeLise
-- Version: 3ds max 4
--
--
-- This script enables all surface conversions through Macroscripts.
--***********************************************************************************************
-- MODIFY THIS AT YOUR OWN RISK
--
MacroScript Collapse_Stack
ButtonText:"Collapse Stack"
Category:"Modifier Stack"
internalCategory:"Modifier Stack"
Tooltip:"Collapse Stack"
-- Needs Icon
--Icon:#("Max_edit_modifiers",1)
(
On isEnabled return Try(Filters.Are_Modifiers_Applied())Catch()
On isVisible return Try(Filters.Are_Modifiers_Applied())Catch()
On Execute Do
(
Undo on
(
if SubObjectLevel == undefined then Max Modify Mode
For i in 1 to selection.count do
(
Try(CollapseStack Selection[i])Catch()
)
)
)
)
MacroScript Modify_Mode
ButtonText:"Modify Mode"
Category:"Modifier Stack"
internalCategory:"Modifier Stack"
Tooltip:"Modify Mode"
-- Needs Icon
--Icon:#("Max_edit_modifiers",1)
(
On isEnabled return (Try(getCommandPanelTaskMode() != #modify)Catch())
On isVisible return (Try(getCommandPanelTaskMode() != #modify)Catch())
On Execute Do
(
Max Modify Mode
)
)
MacroScript Create_Mode
ButtonText:"Create Mode"
Category:"Modifier Stack"
internalCategory:"Modifier Stack"
Tooltip:"Create Mode"
-- Needs Icon
--Icon:#("Max_edit_modifiers",1)
(
On isEnabled return (Try(getCommandPanelTaskMode() != #create)Catch())
On isVisible return (Try(getCommandPanelTaskMode() != #create)Catch())
On Execute Do
(
Max Create Mode
)
)
MacroScript Convert_to_Mesh
ButtonText:"Convert to Editable Mesh"
Category:"Modifier Stack"
internalCategory:"Modifier Stack"
Tooltip:"Convert to Editable Mesh"
Icon:#("Max_edit_modifiers",1)
(
On isEnabled return (Try(Selection.count != 0 and CanConvertTo Selection[1] Mesh)Catch())
On isVisible return (Try(Selection.count != 0 and CanConvertTo Selection[1] Mesh)Catch())
On Execute Do
(
for i in 1 to selection.count do
(
Try(ConvertToMesh Selection[i])Catch()
)
Max modify mode
)
)
MacroScript Convert_to_Patch
ButtonText:"Convert to Editable Patch"
Category:"Modifier Stack"
internalCategory:"Modifier Stack"
Tooltip:"Convert to Editable Patch"
Icon:#("Max_edit_modifiers",2)
(
On isEnabled return (Try(Selection.count != 0 and CanConvertTo Selection[1] Editable_Patch)Catch())
On isVisible return (Try(Selection.count != 0 and CanConvertTo Selection[1] Editable_Patch)Catch())
On Execute Do
(
for i in 1 to selection.count do
(
Try(ConvertTo Selection[i] Editable_Patch)Catch()
)
Max modify mode
)
)
MacroScript Convert_to_Spline
ButtonText:"Convert to Editable Spline"
Category:"Modifier Stack"
internalCategory:"Modifier Stack"
Tooltip:"Convert to Editable Spline"
Icon:#("Max_edit_modifiers",11)
(
On isEnabled return (Try(Selection.count != 0 and CanConvertTo Selection[1] SplineShape)Catch())
On isVisible return (Try(Selection.count != 0 and CanConvertTo Selection[1] SplineShape)Catch())
On Execute Do
(
for i in 1 to selection.count do
(
Try(ConvertToSplineShape Selection[i])Catch()
)
Max modify mode
)
)
MacroScript Convert_to_Poly
ButtonText:"Convert to Editable Poly"
Category:"Modifier Stack"
internalCategory:"Modifier Stack"
Tooltip:"Convert to Editable Polygon"
Icon:#("Max_edit_modifiers",16)
(
On isEnabled return (Try(Selection.count != 0 and CanConvertTo Selection[1] Mesh)Catch())
On isVisible return (Try(Selection.count != 0 and CanConvertTo Selection[1] Mesh)Catch())
On Execute Do
(
Try(
for i in 1 to selection.count do
(
Try(ConvertTo Selection[i] Editable_Poly)Catch()
)
Max modify mode
)
Catch()
)
)