Product banner image

RdM Tools V2 - FK Skeleton to Games Conversion

Esteban Rodriguez
(14 ratings)
Product description
1 ratings

RdM Tools V2 - FK Skeleton to Games Conversion

This script will convert your FK Skeleton to a game engine friendly skeleton

*This will only work with FK spine!

 

https://youtu.be/4dLNsVGnCXA

 

#Create joints for game!

gameJoints = ['COG', 'Spine_1','Spine_2','Spine_3','Spine_4','Head_JJ','Neck_JJ','ReverseSpine_JJ',
'L_arm_1','L_arm_2_Twist_0','L_arm_3_Twist_0','L_arm_3_Twist_2',
'R_arm_1','R_arm_2_Twist_0','R_arm_3_Twist_0','R_arm_3_Twist_2',
'L_Palm','R_Palm',
#'L_Index_1_JJ','L_Index_2_JJ','L_Index_3_JJ',
#'R_Index_1_JJ','R_Index_2_JJ','R_Index_3_JJ',
#'L_Middle_1_JJ','L_Middle_2_JJ','L_Middle_3_JJ',
#'R_Middle_1_JJ','R_Middle_2_JJ','R_Middle_3_JJ',
#'L_Ring_1_JJ','L_Ring_2_JJ','L_Ring_3_JJ',
#'R_Ring_1_JJ','R_Ring_2_JJ','R_Ring_3_JJ',
#'L_Pinky_1_JJ','L_Pinky_2_JJ','L_Pinky_3_JJ',
#'R_Pinky_1_JJ','R_Pinky_2_JJ','R_Pinky_3_JJ',
#'L_Thumb_0_JJ','L_Thumb

JJ','L_Thumb_3_JJ',
#'R_Thumb_0_JJ','R_Thumb_1_JJ','R_Thumb_3_JJ',

'L_Leg_JJ_Twist_0','L_Knee_JJ_Twist_0','L_Ankle_JJ','L_Ball_JJ',
'R_Leg_JJ_Twist_0','R_Knee_JJ_Twist_0','R_Ankle_JJ','R_Ball_JJ']

for i in gameJoints:
cmds.select(cl = True)
try:
if cmds.objExists(i):
newJoint = cmds.joint(n = str(i)+'_Game')
cmds.parentConstraint(i, newJoint, mo =False)
cmds.setAttr(newJoint + '.segmentScaleCompensate',0)
except:
pass

cmds.select(cl = True)
cmds.joint(n = 'root')
cmds.setAttr('root.segmentScaleCompensate', 0)

try:
cmds.parent

RdM Tools V2 - FK Skeleton to Games Conversion

Product description
1 ratings

RdM Tools V2 - FK Skeleton to Games Conversion

This script will convert your FK Skeleton to a game engine friendly skeleton

*This will only work with FK spine!

 

https://youtu.be/4dLNsVGnCXA

 

#Create joints for game!

gameJoints = ['COG', 'Spine_1','Spine_2','Spine_3','Spine_4','Head_JJ','Neck_JJ','ReverseSpine_JJ',
'L_arm_1','L_arm_2_Twist_0','L_arm_3_Twist_0','L_arm_3_Twist_2',
'R_arm_1','R_arm_2_Twist_0','R_arm_3_Twist_0','R_arm_3_Twist_2',
'L_Palm','R_Palm',
#'L_Index_1_JJ','L_Index_2_JJ','L_Index_3_JJ',
#'R_Index_1_JJ','R_Index_2_JJ','R_Index_3_JJ',
#'L_Middle_1_JJ','L_Middle_2_JJ','L_Middle_3_JJ',
#'R_Middle_1_JJ','R_Middle_2_JJ','R_Middle_3_JJ',
#'L_Ring_1_JJ','L_Ring_2_JJ','L_Ring_3_JJ',
#'R_Ring_1_JJ','R_Ring_2_JJ','R_Ring_3_JJ',
#'L_Pinky_1_JJ','L_Pinky_2_JJ','L_Pinky_3_JJ',
#'R_Pinky_1_JJ','R_Pinky_2_JJ','R_Pinky_3_JJ',
#'L_Thumb_0_JJ','L_Thumb

JJ','L_Thumb_3_JJ',
#'R_Thumb_0_JJ','R_Thumb_1_JJ','R_Thumb_3_JJ',

'L_Leg_JJ_Twist_0','L_Knee_JJ_Twist_0','L_Ankle_JJ','L_Ball_JJ',
'R_Leg_JJ_Twist_0','R_Knee_JJ_Twist_0','R_Ankle_JJ','R_Ball_JJ']

for i in gameJoints:
cmds.select(cl = True)
try:
if cmds.objExists(i):
newJoint = cmds.joint(n = str(i)+'_Game')
cmds.parentConstraint(i, newJoint, mo =False)
cmds.setAttr(newJoint + '.segmentScaleCompensate',0)
except:
pass

cmds.select(cl = True)
cmds.joint(n = 'root')
cmds.setAttr('root.segmentScaleCompensate', 0)

try:
cmds.parent

ratings
0(0 ratings)
5 stars
100%
4 stars
0%
3 stars
0%
2 stars
0%
1 star
0%
Product Details
Software
Published
2022-12-06
Updated
2024-09-30