Questions tagged [data-blocks]

Use this tag for questions about managing or linking to blocks of data within a .blend file. The base unit for any Blender project is the data-block. Examples of data-blocks include: meshes, objects, materials, textures, node-trees, scenes, texts, brushes and even screens.

Filter by
Sorted by
Tagged with
0 votes
1 answer
12 views

Cannot create library override

I'm trying to create a library override after linking objects into my scene like this: ...
  • 337
0 votes
1 answer
28 views

(Blender 3.2) How can I use Python to change the variable ID of the property in a driver?

Been searching for an answer to this for quite some time, but haven't been able to connect the missing pieces just yet! My setup is this: I have an armature, and an FBX object of a face with animation ...
0 votes
0 answers
16 views

Blender Python API - accessing name of movie clip data-block from active camera

I'm writing a script that set ups a compositing tree with the MovieClip node. I would like to automate it to take the movieclip background image on the active camera in the scene and set it to be the ...
0 votes
0 answers
11 views

How do I remap user without remapping every other object that shares the current object's user?

How do I remap user without remapping every other object that shares the current object's user? Remap user: Replace the current mesh data with that of a different object, without affecting all the ...
1 vote
1 answer
29 views

Create a copy of Material animation data

I have several objects sharing a material that is animating. I'm able to create copies of the material and assign them to each object, but the animation data is still the same for all materials (see ....
1 vote
0 answers
19 views

Exported mesh with custom normal error using Hard Ops

I'm using the Blender addon HardOps (0.9.87.26). I can't remove the sharpen edges effect from the mesh and it seems to mess up the normals on import to another scene Ive tried removing custom norml ...
3 votes
0 answers
13 views

How to view datablock dependency hierarchy?

In my startup file I have various node groups that I keep on hand for common tasks. Sometimes I will add a new node group or material that contains an existing group inside it. So what happens is <...
  • 17.9k
0 votes
0 answers
49 views

Search Box for Custom CollectionProperty

When you have 'particle effects', or 'sounds' or 'actions' (among others), there's a dropdown like this: It lists all items of a data type, and allows you to create a new one, change the active one, ...
  • 290
1 vote
1 answer
50 views

How to structure data per object per material

I'm working on an addon where I need to be able to store a float that is not just specific to a just an object or just a material, but both. I want to display this property next to the material in a ...
  • 3,180
0 votes
0 answers
30 views

Linking to an existing blend file does not show the images/textures available in the existing .blend file

(Version of Blender I'm using is 2.79) I have the following .blend file which has a group datablock called "2d_baker" I then open a new blend file and try to link to the existing .blend ...
1 vote
1 answer
23 views

How to copy a font data block(ID) from active to selected strips?

I need to copy/link the font chosen in the active strip in the VSE to every text strip in the selection. So I need the get the current font ID of the active strip and apply that ID to all strips in ...
  • 1,962
0 votes
0 answers
29 views

Is there a way to change blenders rename character limit?

I, just tried to rename a Blender timeline marker to a longer sentence and noticed there's a limit of 63 characters. So I was wondering if there was a way to change this limit.
3 votes
1 answer
348 views

Geometry Nodes: How to iterate a Vertex Color gradient across geometries?

I want the geometry I create in Geometry Nodes to be generated with a Vertex Color gradient that I can use in the object's material. In this example there are several rectangles, one original, and ...
  • 17.9k
0 votes
0 answers
26 views

F-Curve Selection UI

I'm seeking to create a UI property that lets the user choose an an F-Curve channel. I tried the prop_search method using this question's code as an example (Object selection box with eyedropper), but ...
2 votes
0 answers
27 views

Storing a CollectionProperty in the whole .blend file scope

I'm working on an addon where now I am trying to store a CollectionProperty (containing custom PropertyGroup class elements) in ...
5 votes
1 answer
272 views

Adding points to curve with bpy

I want to create a curve between two given points. But I don't know how to add the points to the curve object. When you create a new mesh data block, you have the from_pydata() function to add verts, ...
3 votes
1 answer
106 views

Assigning custom properties automatically

I have been looking at some add-ons written by other users, and noticed that on startup, every object in the scene has custom properties defined automatically, even if the addon is never actually used....
0 votes
0 answers
57 views

Make particle settings unique or rename them without losing hair edit

I'm dealing with a little issue that has me stuck: I have two or more objects using the same particle settings data, a mistake I made in early stages. Each one has combed hair, different particle edit ...
0 votes
1 answer
256 views

'bpy_prop_collection' object has no attribute 'unlink' error

I'm trying to remove object and free from memory. I googled some, and found an old article https://blenderartists.org/t/how-to-clean-memory-after-running-a-script/608062 I copied the script and ...
-1 votes
1 answer
3k views

How do I update to Blender 3.0? [duplicate]

I just found out Blender got an update and I'm still using 2.90.1. So how do I download it, or does it just automatically do it? And will I still keep all my current stuff I saved?
  • 187
2 votes
0 answers
51 views

store custom data to blender file (json text)

I am trying to write/read custom data in blender files (a json text in this case). For that I want to use my custom addon. But there are some requirements about how this data is stored: Ideally this ...
0 votes
0 answers
34 views

face_maps add face index

bpy.context.object.face_maps['Bone'].add([1,2,3]) Traceback (most recent call last): File "", line 1, in RuntimeError: Error: FaceMap.add(): cannot be called while object is in edit mode I got an ...
1 vote
1 answer
29 views

Where are the mesh instances used?

I don't understand where my other mesh instance is used, I want to have only one instance. When I click at the number of users (2), I get a single user mesh; but the other mesh still remains even ...
  • 23
0 votes
0 answers
36 views

Replace/Load image into Compositor node setup

I seem to get stumped still when figuring out anything in blender python concerning data blocks. I have a comp node network and I want to re-use with various passes. I am loading this network in, and ...
1 vote
1 answer
50 views

How do I removed the stored vertices data in Blender 2.79?

Thank you very much for your time, any help would be appreciated. I have been using the code below to shrinkwrap an Icosphere onto my 3D models, then find the vertices coordinates of the Icosphere and ...
0 votes
2 answers
1k views

Is there any way to purge EVERY unused data from a blender file?

How can I remove any mesh, texture, material and others from a Blend file? Now I have a single scene with one object that has no material, nothing is hidden, I am not in local mode, I tried every File/...
  • 328
1 vote
1 answer
149 views

New Blend File has A LOT of orphan data

Everytime i start a new blend file, i have orphan data. 3 materials that won't go away 99 meshes, and 99 objects. Tried purging them and resaving the startup default. But they come back everytime. ...
0 votes
1 answer
29 views

How to transfer render data from one object to another.?

The other day I was thinking about wormholes and thought if it is possible to transfer the render view data of an object with a glass BSDF to another object, so the environment that we can see through ...
6 votes
2 answers
1k views

Override a material on a Linked object (2.92)?

I have a character that is linked into a Scene as a collection. I want to change an input value of a nodegroup in one of the character's materials, preferably without making the whole thing local. Of ...
  • 6,229
4 votes
1 answer
346 views

How to make shape-keyed particles behave independently?

Let's say we have a mesh object with a Shape Key deformation, and it's driven by a Driver based on its distance from an Empty. It works as expected. But then if we want to make a Particle System of ...
  • 17.9k
1 vote
1 answer
90 views

This script can't run twice, why?

Blender ver 2.83 LTS. Whenever I tried to run this script twice, it came out an error: ERROR (bke.lib_id): C:\b\buildbot-worker-windows\windows_lts_283\blender.git\source\blender\blenkernel\intern\...
  • 13
5 votes
1 answer
207 views

How to get rid of garbage data in blend file

I'm having a problem that by appending collections from scene to scene (or shot to shot) the blend files are inflating in size (well over 1GB already), although they contain more or less the same ...
2 votes
2 answers
144 views

Isn't the function PURGE ALL intended to purge all the unused assets in a scene?

I tried this over and over, but it appears to not be working correctly from my point of view. Several textures that are not used anywhere are not being purged. I tried to close and reopen Blender, but ...
  • 744
0 votes
1 answer
32 views

Is it possible to store edge data layers?

Something that I do frequently in blender is use a UV map for coordinates to map an otherwise procedural texture, such as when texturing a snake. I don't always know where the best seams would be ...
  • 157
1 vote
1 answer
117 views

How to display number of users in object properties panel? 2.91

After updating to 2.91, I can no longer see a user number in object properties, when using Duplicate Linked (Alt+D). Is it possible to make this feature work, like in previous versions? Here's how my ...
  • 13
0 votes
1 answer
65 views

How To Replace Data From New Data Coming From Another .blend?

Here's a simple example, I have a .Blend with 50 objects, all appended inside my .Blend, they each have their own materials. Now I created my scene with those assets and did some work etc... My ...
  • 1,526
0 votes
1 answer
452 views

Is it possible to delete linked Mesh Data?

I need to get rid of every multi user block data but there is too many of it so i can't do "make single user" for every model. I want only worldspawn_16740 to stay.
  • 3
1 vote
0 answers
31 views

Python - How to prevent Undo from unloading image data blocks

I am working on an add-on which has a complex user interface and an integrated asset manager (Think blender kit interface). As such I want to load a large number of small thumbnail images into blender ...
3 votes
1 answer
401 views

How to use different types of data blocks for driver variables?

I know that the content of text can be registered through a user-defined function and entered in the Expressions box. But how can I use text as a data block for variables, as shown in the image? ...
  • 2,088
1 vote
2 answers
1k views

How to get the data path of object dimensions for using in drivers?

Is there a way to get the data path of object dimensions for using in drivers? How to get the variable for a specific object y-dimensions for example? Thank you Chris
3 votes
2 answers
302 views

How to quickly rename an object in 2.8+ (like with the Item section in 2.79)

In 2.79 there was an "Item" section in the Properties Panel that allowed the active object to be renamed quickly any time. This made it easy to label objects quickly, so keeping an ...
  • 17.9k
0 votes
1 answer
231 views

Where's "link object data" When creating new scenes?

There used to be an option when creating new scenes to link only object data and not the "object" itself, so every object in the new scene could have its own transformation values. Is there ...
  • 1
1 vote
1 answer
41 views

Several different multi user objects to single user

What is the most effective workflow for making several (20) different multi-user models each into single user? My use case is: I have 3 different objects each distributed manually several times ...
  • 21
3 votes
1 answer
252 views

How to discover the users of an action?

This blend file contains a Sphere, a Cube and a Cone. The action CubeAction acts on the cube. In the Action Editor, it can be seen to have 2 users. So it must also act on another object, but which ...
  • 179
0 votes
1 answer
134 views

Kit-ops: how are cutters done?

I was looking at the free version of Kit-ops plug-in, and I noticed that the selection of a single component of the cutter, selects all the element of the cutter. This happens both in the 3d view and ...
1 vote
1 answer
49 views

Copied scene needs a user?

From the default startup, if you run bpy.context.scene.copy() you get a copy of your scene that has 0 user and gets added to the orphan data. In reality, if you ...
0 votes
1 answer
330 views

Blend file size is huge

After adding image as planes and use as a particle, size of File and used by ram is increased from 35MB to 568MB. Ram used 350MB to 10GB Even if i add ivy file size is 35MB. Only 3 textures are ...
2 votes
1 answer
487 views

How to copy mesh to new files with Python?

I have a blend file with hundreds of mesh objects as part of a kit bash pack. I want to copy each mesh to its own file and turn those files into KPacks for Kit Ops addon. To export each mesh into a ...
  • 197
3 votes
1 answer
566 views

How do I create a text datablock and populate it with text with Python?

How do I create a text in the text editor and populate it with text with python? To create a text datablock, I tried bpy.ops.text.new() and it worked. When I tried ...
's user avatar
2 votes
1 answer
527 views

Create Library Override of Data Block

I want to access the "create library override" of a linked object in the data-block panel like shown in the image below via Python. When I do this, nothing appeared in the info panel. Is there any ...
  • 93