Created
September 3, 2020 08:49
-
-
Save 0xN1/700be0809916e550b5e0a37d7d555def to your computer and use it in GitHub Desktop.
Blender snippet to resize gltf exported from Substance Painter. Scale object to 0.01 scale.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Snippet for blender to quickly resize gltf model (.glb) exported from Substance Painter with scale problem. | |
import bpy | |
bpy.context.object.location = bpy.context.object.location/100 | |
bpy.ops.transform.resize(value=(0.01,0.01,0.01)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment