5
$\begingroup$

I want to rename the number 1->picture (32) with python not the number 2->picture with the (3745), can someone help me with that ?

enter image description here

$\endgroup$
7
$\begingroup$

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'
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.