Skip to content

Instantly share code, notes, and snippets.

@0xN1
Created September 3, 2020 08:49
Show Gist options
  • Save 0xN1/700be0809916e550b5e0a37d7d555def to your computer and use it in GitHub Desktop.
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.
# 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