home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar Special 2002 April
/
GSSH42002.iso
/
EDITOREN
/
DS
/
gmax
/
gmaxinst_1-1.exe
/
gmaxsetup11.cab
/
Macro_IKSolvers.mcr
< prev
next >
Wrap
Text File
|
2002-02-13
|
2KB
|
83 lines
-- Easy IK Assignment MacroScript File
--
-- Created: April 18 2000
-- Last Updated: Nov 30 2000
--
-- Author : Frank DeLise
-- Version: 3ds max 4
--
-- IK tools
-- This script increases workflow on assigning IK Solvers.
--***********************************************************************************************
-- MODIFY THIS AT YOUR OWN RISK
--
-- may 22, Removed Temporary Chain Options, Frank D
-- July 18, Added HI Solver
MacroScript IK_Limb
ButtonText:"IK Limb Solver"
Category:"Inverse Kinematics"
internalCategory:"Inverse Kinematics"
Tooltip:"IK Limb Solver"
Icon:#("MainToolbar",49)
SilentErrors:(Debug == undefined or Debug != True)
(
-- Check to see if something is selected
on isEnabled return selection.count == 1 or
selection.count > 1 and
(
local h = selection[1].parent
h != undefined and h.isSelected and isGroupHead h
)
on execute do
(
Global EC_OBJ, EC_TargetObj
EC_OBJ = selection[1]
-------------------------------------------------------------------------------------------
-- Define Filter Function for PickObject Selection
-------------------------------------------------------------------------------------------
fn ChildFilt o = Filters.Is_Child EC_OBJ o or Filters.Is_Parent EC_OBJ o
-------------------------------------------------------------------------------------------
Animate off
(
EC_TargetOBJ = PickObject count:1 select:true filter:ChildFilt Message:"Pick Joint to complete IK Chain" count:#Multiple Rubberband:EC_OBJ.pos ForceListenerFocus:False
If EC_TargetOBJ != #escape or EC_TargetOBJ != undefined then
(
if Filters.Is_Child EC_OBJ EC_TargetOBJ then
(
NIK = iksys.ikchain EC_OBJ EC_TargetOBJ "IKLimb"
)
Else
(
NIK = iksys.ikchain EC_TargetOBJ EC_OBJ "IKLimb"
)
)
Max Motion Mode
)
)
)