home *** CD-ROM | disk | FTP | other *** search
- -- Skin Operations MacroScript File
- --
- -- Created: Aug 6 2000
- -- Last Updated: Jan 2 2001 Fred Ruff
- --
- --
- -- Author : Peter Watje
- -- Version: 3ds max 4
- --
- --
- -- SkinOps operations Macroscript file.
- --***********************************************************************************************
- -- MODIFY THIS AT YOUR OWN RISK
- --
-
- MacroScript AddBonesFromView
- ButtonText:"Add Bones"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Add Bones (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- On Execute do
- (
- format "-- Click object to add as Bone\n"
- skinOps.AddBoneFromViewStart (modPanel.GetcurrentObject())
- )
- )
-
- MacroScript multiRemove
- ButtonText:"Remove Bones"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Remove Multiple Bones (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- On Execute do
- (
- skinOps.MultiRemove (modPanel.GetcurrentObject())
- )
- )
-
- MacroScript selectPrevious
- ButtonText:"Previous Bone"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Select Previous Bone (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- On Execute do
- (
- skinOps.SelectPreviousBone (modPanel.GetcurrentObject())
- )
- )
-
- MacroScript selectNext
- ButtonText:"Next Bone"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Select Next Bone (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- On Execute do
- (
- skinOps.SelectNextBone (modPanel.GetcurrentObject())
- )
- )
-
- MacroScript zoomToBone
- ButtonText:"Zoom To Bone"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Zoom To Selected Bone (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- On Execute do
- (
- skinOps.ZoomToBone (modPanel.GetcurrentObject()) FALSE
- )
- )
-
- MacroScript zoomToGizmo
- ButtonText:"Zoom To Gizmo"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Zoom To Selected Gizmo (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- On Execute do
- (
- skinOps.ZoomToGizmo (modPanel.GetcurrentObject()) FALSE
- )
- )
-
-
- MacroScript selectEndPoint
- ButtonText:"Select End Point"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Select End Point (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- On Execute do
- (
- skinOps.SelectEndPoint (modPanel.GetcurrentObject())
- )
- )
-
- MacroScript selectStartPoint
- ButtonText:"Select Start Point"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Select Start Point (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- On Execute do
- (
- skinOps.SelectStartPoint (modPanel.GetcurrentObject())
- )
- )
-
- MacroScript filterVertices
- ButtonText:"Select Vertices"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Filter Vertices (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- on isChecked return (
- if (classof(modPanel.GetcurrentObject())) == Skin then return (modPanel.GetcurrentObject()).filter_vertices
- return FALSE
- )
-
- On Execute do
- (
- if (modPanel.GetcurrentObject()).filter_vertices then
- (modPanel.GetcurrentObject()).filter_vertices = FALSE
- else (modPanel.GetcurrentObject()).filter_vertices = TRUE
- )
- )
-
- MacroScript filterEnvelopes
- ButtonText:"Select Envelopes"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Filter Envelopes (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- on isChecked return (
- if (classof(modPanel.GetcurrentObject())) == Skin then return (modPanel.GetcurrentObject()).filter_cross_sections
- return FALSE
- )
-
- On Execute do
- (
- if (modPanel.GetcurrentObject()).filter_cross_sections then
- (modPanel.GetcurrentObject()).filter_cross_sections = FALSE
- else (modPanel.GetcurrentObject()).filter_cross_sections = TRUE
- )
- )
-
- MacroScript filterCrossSections
- ButtonText:"Select Cross Sections"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Filter Cross Sections (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- on isChecked return (
- if (classof(modPanel.GetcurrentObject())) == Skin then return (modPanel.GetcurrentObject()).filter_envelopes
- return FALSE
- )
-
- On Execute do
- (
- if (modPanel.GetcurrentObject()).filter_envelopes then
- (modPanel.GetcurrentObject()).filter_envelopes = FALSE
- else (modPanel.GetcurrentObject()).filter_envelopes = TRUE
- )
- )
-
- MacroScript excludeVerts
- ButtonText:"Exclude Verts"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Exclude Verts (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
-
- On Execute do
- (
- skinOps.ButtonExclude (modPanel.GetcurrentObject())
- )
- )
-
- MacroScript includeVerts
- ButtonText:"Include Verts"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Include Verts (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
-
- On Execute do
- (
- skinOps.ButtonInclude (modPanel.GetcurrentObject())
- )
- )
-
- MacroScript selectIncludeVerts
- ButtonText:"Select Excluded Verts"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Select Excluded Verts (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
-
- On Execute do
- (
- skinOps.ButtonSelectExcluded (modPanel.GetcurrentObject())
- )
- )
-
- -- Added August 27 2000 Fred Ruff
-
- MacroScript CopySelectedBone
- ButtonText:"Copy Envelope"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Copy Envelope (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
-
- On Execute do
- (
- skinOps.copySelectedBone (modPanel.GetcurrentObject())
- )
- )
- MacroScript PasteToSelectedBone
- ButtonText:"Paste Envelope"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Paste Envelope (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
-
- On Execute do
- (
- skinOps.PasteToSelectedBone (modPanel.GetcurrentObject())
- )
- )
- MacroScript PasteToAllBones
- ButtonText:"Paste to All Envelope"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Paste To All Envelopes (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
-
- On Execute do
- (
- skinOps.PasteToAllBones (modPanel.GetcurrentObject())
- )
- )
- MacroScript AddCrossSection
- ButtonText:"Add Cross Section"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Add Cross Section (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
-
- On Execute do
- (
- skinOps.ButtonAddCrossSection (modPanel.GetcurrentObject())
- )
- )
- MacroScript RemoveCrossSection
- ButtonText:"Remove Cross Section"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Remove Cross Section (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
-
- On Execute do
- (
- skinOps.ButtonRemoveCrossSection (modPanel.GetcurrentObject())
- )
- )
- MacroScript DrawEnvelopeOnTop
- ButtonText:"Envelope On Top"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Draw Envelope On Top (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- on isChecked return (
- if (classof(modPanel.GetcurrentObject())) == Skin then return (modPanel.GetcurrentObject()).envelopesAlwaysOnTop
- return FALSE
- )
-
- On Execute do
- (
- if Selection[1].modifiers[#Skin].envelopesAlwaysOnTop then
- Selection[1].modifiers[#Skin].envelopesAlwaysOnTop = FALSE
- else Selection[1].modifiers[#Skin].envelopesAlwaysOnTop = TRUE
- )
- )
- MacroScript DrawCrossSectionsOnTop
- ButtonText:"CrossSections On Top"
- Category:"Skin Modifier"
- internalCategory:"Skin Modifier"
- Tooltip:"Draw CrossSections On Top (Skin)"
- -- Needs Icon
- (
- on isVisible return ( (classof(modPanel.GetcurrentObject())) == Skin)
- on isEnabled return ((classof(modPanel.GetcurrentObject())) == Skin)
- on isChecked return (
- if (classof(modPanel.GetcurrentObject())) == Skin then return (modPanel.GetcurrentObject()).crossSectionsAlwaysOnTop
- return FALSE
- )
-
- On Execute do
- (
- if (modPanel.GetcurrentObject()).crossSectionsAlwaysOnTop then
- (modPanel.GetcurrentObject()).crossSectionsAlwaysOnTop = FALSE
- else (modPanel.GetcurrentObject()).crossSectionsAlwaysOnTop = TRUE
- )
- )
-