diff --git a/scripts/max4ds/init.ms b/scripts/max4ds/init.ms index 5c39808..944d5f8 100644 --- a/scripts/max4ds/init.ms +++ b/scripts/max4ds/init.ms @@ -2,7 +2,7 @@ local set_heapsize = 64 * 1024 * 1024 --64 MiB if heapsize < set_heapsize then heapsize = set_heapsize - global Max4ds_version = "v0.8.2" + global Max4ds_version = "v0.8.3" --global Max4ds_scriptsPath = getFilenamePath (getThisScriptFilename()) fn DisableScript file = ( diff --git a/scripts/max4ds/ui_find_weights.ms b/scripts/max4ds/ui_find_weights.ms index 1a500b3..00b3155 100644 --- a/scripts/max4ds/ui_find_weights.ms +++ b/scripts/max4ds/ui_find_weights.ms @@ -369,7 +369,13 @@ rollout Max4ds_FindWeights "" ( --module ) - local verts = skinOps.getSelectedVertices skinMod + local maxver = (maxVersion())[1] + if maxver >= 22000 then ( + local verts = skinOps.getSelectedVertices skinMod + ) + else ( + local verts = grp.verts + ) for vertId in verts do ( util.TransferWeight skinMod vertId oldid newId @@ -399,7 +405,13 @@ rollout Max4ds_FindWeights "" ( --module newId = grp.upBoneIds[grp.upBoneIds.count] ) - local verts = skinOps.getSelectedVertices skinMod + local maxver = (maxVersion())[1] + if maxver >= 22000 then ( + local verts = skinOps.getSelectedVertices skinMod + ) + else ( + local verts = grp.verts + ) for vertId in verts do ( util.TransferWeight skinMod vertId oldid newId