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
1
vote
1answer
37 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
1answer
18 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 ...
0
votes
0answers
9 views

Let fluid simulation hold final frame [duplicate]

I have a mantaflow liquid simulation in the 2.92 version of Blender. This simulation starts at the beginning of the animation but stops before the animation ends. When the animation plays past the ...
6
votes
2answers
225 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 ...
2
votes
0answers
67 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 ...
1
vote
1answer
37 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\...
0
votes
0answers
16 views

How to use same asset multiple times in a shot

I am a beginner in blender, i am making a pipeline for blender projects at my studio and i am running down with a problem . The issue is with linking the same asset file multiple times.(eg: Ch_A in a ...
0
votes
0answers
17 views

link objects to scene without opening blend file

I'm using this line of code to write one or more objects to a new file bpy.data.libraries.write(self.filepath, datablocks, fake_user = True) When opening the ...
2
votes
1answer
59 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
2answers
127 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 ...
0
votes
0answers
9 views

Linked Files Keep Disappearing From Library

I am working on a massive file, therefore it is broken down into smaller files, which are then linked in one main document. The problem is, for no apparent reason the linked files keep disappearing ...
0
votes
1answer
24 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 ...
1
vote
1answer
38 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 ...
0
votes
1answer
44 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 ...
0
votes
1answer
56 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.
1
vote
0answers
19 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 ...
0
votes
0answers
32 views

Babylon files to GLB skips UV's

I am wondering how does exchanging a BabylonJS file between 3ds Max and Blender works. When you receive a BabylonJS file you need to convert it in BabylonJS Sandbox to GLB The BabylonJS file has a ...
3
votes
1answer
195 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? ...
1
vote
2answers
354 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
0
votes
0answers
27 views

Make Proxy vs Make Local Object

Could anyone explain what is the difference between the two? I tried both Make Proxy and Make Local Object and they behave the same as far as I can tell. I can edit the object (Location, Rotation, ...
3
votes
2answers
229 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 ...
0
votes
1answer
68 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
vote
1answer
18 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 ...
3
votes
1answer
120 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 ...
0
votes
1answer
86 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
1answer
37 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
1answer
93 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
1answer
213 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 ...
3
votes
1answer
296 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 ...
2
votes
1answer
154 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 ...
2
votes
1answer
29 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 ...
0
votes
0answers
23 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 ...
2
votes
4answers
285 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 ...
3
votes
1answer
534 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 ...
0
votes
0answers
80 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 ...
0
votes
0answers
48 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 ...
0
votes
0answers
30 views

How to avoid material duplicates when appending multiple assets?

i just found a really odd behavior in blender: Actions: 1) append an object that have the material named "Red" 2) append another object that have this same material 3) same with another.. ect.. ...
2
votes
0answers
62 views

Delete particular polygon of a mesh

I'm trying to do something with scripting in Blender 2.8. I have an stl model of cube. It has 12 polygons (12 triangles). I access them by using: ...
0
votes
1answer
544 views

How can I create a library of animations?

I want to store animations (just the animation data itself) so they can be recalled and reused in other projects. How do I create such a library of purely animation data? (For instance if I have ...
3
votes
1answer
764 views

Data path for driver: secret of 'node_tree.'

1) I prepared two objects for driving. 2) I copied the data path of the color property of diffuse shader in Suzanne's material node to drive the box. ...
1
vote
0answers
117 views

Getting the list of objects in another file to update for appending

I need to append a large number of objects from an external file. To facilitate that, I created a version of the file that is stripped down just to the objects I need, so I could just select all and ...
1
vote
1answer
20 views

The scene does not split for logic editing

I am facing a problem with splitting the screen in half for logic editing. Whenever I drag the top right triangle, the scene does not split.
0
votes
2answers
866 views

Deleting Particle Settings Data Blocks

I wanted to be straight. I just wanted to delete this data-blocks, because leaving it unbaked in my scene is eating a lots of ram. I've set an example: So many of them were unused and just a ...
0
votes
1answer
29 views

Detect if object data is associated with a scene in any way

I'm making an addon for the NLA editor, and I need to know precisely which strips are selected in the NLA editor. Unfortunately this means checking every single data object in the blend file, because ...
1
vote
0answers
70 views

How to get rid of Data-Block objects using pythong?

I'd like to access all linked data blocks and remove them from scene using python, without deleting the actual data from my hard drive. Context: I linked a grouped armature to my scene, made it a ...
2
votes
0answers
646 views

How to copy or project uvs & (data block) to another object

How to copy or project uvs & (data block) to another object? to use the same UV map in other objects How i do this ? Maybe you want to work on your object until it satisfies the lowpoly lod ...
1
vote
1answer
104 views

display object data name in the wiewport

Ewery time I want to check witch data block is used by the selected object I have to switch to object data tab in the properties view, is there a way to instantly display the used object data name ...
1
vote
2answers
4k views

How do I delete unused data? [duplicate]

I want to quickly minimize the size of a Blender file. How do I delete any data that is not being used?
1
vote
0answers
19 views

Can a ouliner operator be placed in an custom Panel

bpy.ops.outliner.orphans_purge() to put it onto a button into a custom panel- but that button is grayed out... this is how it looks like: ...
1
vote
0answers
55 views

Is it possible to extend bpy.types.ID?

I've been working on an exporter script which contains a collection of tools for describing game-specific objects which are to be exported. Right now i've been doing a custom PropertyGroup defining a ...