triazo / immersive_scaler

VRChat correct proportions, made easy in blender.
MIT License
122 stars 6 forks source link

Model floor is set incorrectly when an object on the avatar is lower than the feet. #8

Closed NotAKidoS closed 2 years ago

NotAKidoS commented 2 years ago

My model has a long tail that clips with the floor a tiny bit. After running the script, the tail is aligned with the floor, pushing the avatars feet up in the air. I would guess avatars with chains and other accessories run into the same issue.

One possible solution would be to set the avatars position to the ankle/foots position before scaling, so once it is scaled the avatar is roughly in the same spot.

NotAKidoS commented 2 years ago

A cheapo workaround I am using is to move the object up with a shapekey, apply to basis, run the script, then apply the reverted shapekey back to basis.

triazo commented 2 years ago

It was getting the bottom of the avatar based on the lowest point, I changed it so it'll get it based on the lowest point weighted to the foot This doesn't cover every conceivable use case, but since the foot is scaled in the process and could be kinda tall on certian avatars with, say, high heels, I don't want to just fix a height for the ankle bone.