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
0 answers
36 views

How to relink lots of missing image files with changed file extensions?

So here is my situation: I have a huge PBR Shader Library and most of the images in there are .png and .tif. I would really like to convert all of these images to jpg to save on disk space (This ...
Flo's user avatar
  • 31
1 vote
1 answer
20 views

Retrive key of type "bpy.data.objects[key]" from key of type "bpy.data.mesh[key]"

Key Example: bpy.data.meshes[MaterialUser.name]. I'm obtaining mesh keys from bpy.data.materials and the data-blocks i get back includes a "Scene" datablock if there is a way to retrieve ...
ValyArhal's user avatar
0 votes
0 answers
37 views

Library Override Rig Only

I'm linking a character to a new file and I will be posing/animating it in that file. And that character will be duplicated many times and posed differently (like an army for example). My question is: ...
bassimist's user avatar
0 votes
0 answers
17 views

Get access to images paths with external text editor (SublimeText for Example)

I want to quickly manipulate images paths in blender files with SublimeText as lists. Maybe I can open blend. files like Zip Archives and edit data-blocks as simple text files? Maybe I can quickly ...
Bicukow's user avatar
  • 839
0 votes
2 answers
60 views

Problems with vertices in blender

I'm new to the world of Blender and I recently added the Extra Object addon which allows me to add Single Vertices quickly. I was creating a handle starting from the single vertex with the mirror ...
Elix's user avatar
  • 1
3 votes
2 answers
328 views

Same mesh but different objects with separate UV maps?

Is it possible to make multiple objects with the same mesh, material, but different UV maps? If I add multiple UV maps to a mesh, the selector of active map seems to be associated with the mesh itself,...
AivanF.'s user avatar
  • 646
0 votes
0 answers
94 views

With a linked object, why can't I override the name as I can with position and rotation without overriding he whole data object?

I have a number of assets in a separate blend file. I drag them into a 'staging' blend file to use them. My default import for that asset library is Link. After I drag them in I use SHIFT+CLICK to ...
Cray-1's user avatar
  • 1
0 votes
2 answers
34 views

Blender API - Use data-block name as if condition

I'm trying to make a python script that searches for an existing camera data-block in the scene and creates it if not found. I've gone with a rather simple code: ...
Raxater's user avatar
1 vote
0 answers
73 views

Can I export the 3D coordinates of part of an object created in Geometry Nodes (without applying the modifier)?

Can I export the 3D coordinates of a part of an object made by the Geometry Nodes to a .csv file (without applying the GN)? For example, I created this road (and its accessories) in Geometry Nodes, ...
miaomiao's user avatar
0 votes
0 answers
30 views

Why is link(object) faster when the target collection is excluded?

I stumbled upon a neat discovery and I don't understand why it works. Starting with a blend file only containing an object called 'Cube' and the default collection, I tested this function to see if I ...
BruinBrood's user avatar
0 votes
1 answer
93 views

File size doesn’t change after deleting part of appended object

I noticed while I was tidying up my blender file that an small object contains almost 300mb of data but it should really be about 3mb. I think what I have done is that I have appended a large object ...
yuki shima's user avatar
0 votes
1 answer
50 views

How to edit a custom bone display mesh whose object has been deleted

I did the following: Add a Circle named "BoneIcon" Assign Circle as the "Custom Object" of several bones ...
rcorre's user avatar
  • 43
1 vote
0 answers
46 views

How can I edit the number on a property data block?

I have a property to hide a pair of glasses and hair on a character so it is easier to animate, but I want to change the number that turns the glasses off. When the property is 0 the hair disappears ...
Elven_Randomness's user avatar
0 votes
0 answers
210 views

bpy.data: how to update location for rigid body physics animation?

I tried to get the location data of a falling cube in a rigid body simulation. Therefore I added a post-frame-handler: ...
Mike75's user avatar
  • 205
1 vote
1 answer
111 views

How can I store a pointer to a custom data type?

I have a type of PropertyGroup that stores some settings. My goal is to have a master collection full of instances of this group stored with the scene, and a list of slots that can be filled with ...
hayden0729's user avatar
1 vote
0 answers
45 views

PointerProperty with ShapeKey

In the docs it's stated that PointerProperties must be derived from ID or ID Property Group. ShapeKeys are not derived from these and so cannot have ...
Candle's user avatar
  • 302
1 vote
1 answer
471 views

Cannot create library override

I'm trying to create a library override after linking objects into my scene like this: ...
cak3_lover's user avatar
0 votes
1 answer
371 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 ...
CubicTheater's user avatar
0 votes
1 answer
121 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 ...
Matt Fezza's user avatar
1 vote
1 answer
196 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 ....
Dr. Pontchartrain's user avatar
1 vote
0 answers
53 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 ...
StackBuddy's user avatar
4 votes
1 answer
105 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 <...
Mentalist's user avatar
  • 18.9k
0 votes
0 answers
203 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, ...
Candle's user avatar
  • 302
1 vote
1 answer
103 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 ...
Anson Savage's user avatar
  • 3,372
1 vote
1 answer
66 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 ...
tintwotin's user avatar
  • 2,276
0 votes
0 answers
248 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.
Hexogrammer's user avatar
3 votes
1 answer
941 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 ...
Mentalist's user avatar
  • 18.9k
0 votes
0 answers
33 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 ...
Dr. Pontchartrain's user avatar
2 votes
0 answers
37 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 ...
Adrians Netlis's user avatar
5 votes
1 answer
719 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, ...
Namen des Benutzers's user avatar
3 votes
1 answer
248 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....
Tyler Beaird's user avatar
1 vote
1 answer
853 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 ...
user136892's user avatar
-1 votes
1 answer
4k 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?
Stephen's user avatar
  • 301
2 votes
0 answers
206 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 ...
user2854611's user avatar
1 vote
1 answer
48 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 ...
Copy's user avatar
  • 23
1 vote
1 answer
64 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 ...
Adam Manning's user avatar
1 vote
2 answers
4k 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/...
Denatural's user avatar
  • 358
1 vote
1 answer
310 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. ...
Gary Barringer's user avatar
0 votes
1 answer
70 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 ...
Nishant Joshi's user avatar
6 votes
2 answers
2k 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 ...
Ascalon's user avatar
  • 6,529
4 votes
1 answer
598 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 ...
Mentalist's user avatar
  • 18.9k
1 vote
1 answer
176 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\...
Fischer's user avatar
  • 13
5 votes
1 answer
372 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 ...
B_Engstler's user avatar
2 votes
2 answers
165 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 ...
PolyMad's user avatar
  • 834
0 votes
1 answer
50 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 ...
Nahotnoj's user avatar
  • 157
1 vote
1 answer
253 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 ...
Lukimoo's user avatar
  • 13
0 votes
1 answer
125 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 ...
Fox's user avatar
  • 1,892
0 votes
1 answer
960 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.
Boti's user avatar
  • 3
1 vote
0 answers
73 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 ...
Richard Rose's user avatar
3 votes
1 answer
634 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? ...
J. SungHoon's user avatar
  • 2,186