Skip to main content
deleted 7 characters in body
Source Link
CodeManX
  • 29.7k
  • 3
  • 92
  • 131

The item you tagged as (1) is the objects data block and can be changed via python with

bpy.data.objects['3745'].data.name = 'newName'

Instead of referring to an object directly by name you can access the active object's data block with

bpy.context.active_objectobject.data.name = 'newName'

The item you tagged as (1) is the objects data block and can be changed via python with

bpy.data.objects['3745'].data.name = 'newName'

Instead of referring to an object directly by name you can access the active object's data block with

bpy.context.active_object.data.name = 'newName'

The item you tagged as (1) is the objects data block and can be changed via python with

bpy.data.objects['3745'].data.name = 'newName'

Instead of referring to an object directly by name you can access the active object's data block with

bpy.context.object.data.name = 'newName'
Post Migrated Here from stackoverflow.com (revisions)
Source Link
sambler
  • 55.8k
  • 3
  • 62
  • 193

The item you tagged as (1) is the objects data block and can be changed via python with

bpy.data.objects['3745'].data.name = 'newName'

Instead of referring to an object directly by name you can access the active object's data block with

bpy.context.active_object.data.name = 'newName'