2022 Developer Survey is open! Take survey.

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
0 answers
29 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, ...
user avatar
  • 310
1 vote
1 answer
35 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 ...
user avatar
  • 2,949
0 votes
0 answers
29 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 ...
user avatar
1 vote
1 answer
15 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 ...
user avatar
  • 1,932
0 votes
0 answers
15 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.
user avatar
3 votes
1 answer
196 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 ...
user avatar
  • 16.6k
0 votes
0 answers
24 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 ...
user avatar
2 votes
0 answers
25 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 ...
user avatar
5 votes
1 answer
102 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, ...
user avatar
4 votes
1 answer
81 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....
user avatar
0 votes
0 answers
42 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 ...
user avatar
0 votes
1 answer
122 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 ...
user avatar
-1 votes
1 answer
2k 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?
user avatar
  • 157
2 votes
0 answers
25 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 ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
2 votes
1 answer
27 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 ...
user avatar
  • 33
0 votes
0 answers
26 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 ...
user avatar
1 vote
1 answer
49 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 ...
user avatar
1 vote
2 answers
536 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/...
user avatar
  • 159
0 votes
0 answers
29 views

Global Modifier Order | Can I use a target object in a modifier before one of the target's modifiers has been applied?

What I would like to achieve (represented using a global modifier stack). ...
user avatar
1 vote
1 answer
87 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. ...
user avatar
0 votes
1 answer
24 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 ...
user avatar
6 votes
2 answers
878 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 ...
user avatar
  • 6,067
3 votes
0 answers
265 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 ...
user avatar
  • 16.6k
1 vote
1 answer
72 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\...
user avatar
  • 13
4 votes
1 answer
158 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 ...
user avatar
2 votes
2 answers
139 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 ...
user avatar
  • 774
0 votes
1 answer
31 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 ...
user avatar
  • 157
1 vote
1 answer
84 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 ...
user avatar
  • 13
0 votes
1 answer
58 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 ...
user avatar
  • 1,640
0 votes
1 answer
294 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.
user avatar
  • 3
1 vote
0 answers
30 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 ...
user avatar
3 votes
1 answer
341 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? ...
user avatar
  • 1,946
1 vote
2 answers
846 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
user avatar
3 votes
2 answers
277 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 ...
user avatar
  • 16.6k
0 votes
1 answer
180 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 ...
user avatar
  • 1
1 vote
1 answer
30 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 ...
user avatar
  • 21
3 votes
1 answer
198 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 ...
user avatar
  • 169
0 votes
1 answer
122 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 ...
user avatar
1 vote
1 answer
45 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 ...
user avatar
0 votes
1 answer
237 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 ...
user avatar
2 votes
1 answer
441 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 ...
user avatar
  • 197
3 votes
1 answer
479 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 ...
user avatar
2 votes
1 answer
405 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 ...
user avatar
  • 93
2 votes
1 answer
77 views

How can I make an addon that stores arbitrary data with a .blend file?

What I'm trying to do I'm trying to make an addon that can import Minecraft model files. Unlike many 3D files, Minecraft files use a hereditary system where each model file can have a parent file ...
user avatar
  • 179
0 votes
0 answers
25 views

Why is blender saying some of my scenes have no user [duplicate]

Blender started "randomly" deleting some of my scenes and when I checked, it was because it said there are no users. I figured out how to add a fake user now (via the "Orphan Data" Outliner) but I'm ...
user avatar
  • 126
3 votes
4 answers
477 views

How do I fix a scene with zero users?

I'm using blender 2.83 beta and I'm in the middle of a nightmare with a blender project that is randomly considering my scenes as 0 users datablocks. It gives a red background on the scene name and a ...
user avatar
4 votes
1 answer
1k views

Get list of attributes of a bpy.data struct?

Is there a way, in python, to get a list of each of the attributes that are part of a data struct? For example, I know you can get Object.data, Object.name, Object.location, etc. I've tried doing a ...
user avatar
  • 6,067
0 votes
0 answers
177 views

Assign a datablock to an existing object

For example: camera_obj = bpy.data.camera.new("Camera") obj = bpy.data.objects.new("Camera", camera_obj) works as expected. But is it possible to create ...
user avatar
  • 1,733
0 votes
0 answers
66 views

Python - Use bpy.data.libraries.write on only the active action

I am trying to create a small addon to export actions into new blend files for easy access later. That way I don't have to dig around my other blend files looking for specific animations. I have been ...
user avatar
  • 58