[X3D-Ecosystem] DEF/USE for materials in Blender
John Carlson
yottzumm at gmail.com
Sat Jul 6 19:31:04 PDT 2024
This might work for DEF/USE of materials in Blender
import bpy
obj1 = bpy.data.objects["Cube"]
obj2 = bpy.data.objects["Sphere"]
material = obj1.data.materials[0] # Get the material from obj1
# Assign the material to obj2
obj2.data.materials.append(material)
It looks like objects can have more than one material, maybe a bit like
MultiTexture.
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20240706/f4ba15b1/attachment-0001.html>
More information about the X3D-Ecosystem
mailing list