We imported the avatar(.glb) and outfit(.obj) and invoked the armature

The following is the code

import bpy

bpy.ops.import_scene.gltf(filepath="D:\\avatars\\Aditya\\avatar\\nakedstand.glb", files=[{"name":"nakedstand.glb"}], import_pack_images=True,import_shading='NORMALS', loglevel=50)


bpy.ops.object.add(type='ARMATURE', enter_editmode=false)
ob = bpy.context.object
amt = ob.data

referred to the link Armature Bone Global Local coordinates python scripting

did not work out am stuck how to add armature to the obj object ?



You must log in to answer this question.

Browse other questions tagged .