Created
July 21, 2023 07:41
-
-
Save CGArtPython/f4d1fc945d0ca0b483144ae695a20b27 to your computer and use it in GitHub Desktop.
In Blender there are names for the object and the data that the object represents.
This file contains hidden or 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
import bpy | |
bpy.ops.object.light_add(type='SUN') | |
light_obj = bpy.context.active_object | |
light.name = "light object name" | |
light.data.name = "light data name" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment