Skip to main content

Questions tagged [depsgraph]

The tag has no usage guidance.

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

How can I make this script not get exponentially slower?

I'm trying to linked-duplicate an object with nested sub-objects. I've rewritten bpy.ops.duplicate_move_linked() as a function without ...
mugwortz's user avatar
0 votes
0 answers
26 views

Get edges with subdivision modifier active?

I'm trying to get edges when subdivision modifier is active. Using depsgraph method gives the result as if the modifier had already been applied. ...
APEC's user avatar
  • 590
1 vote
1 answer
40 views

Listen to insert_keyframe event using python

I can't figure out how to listen to a keyframe insert event in an armature and retrieve the newly inserted keyframe(s) using a callback. Msgbus, Depsgraph, Modal ? Any help would be much appreciated. ...
Revln9's user avatar
  • 207
0 votes
0 answers
23 views

Assign Vertex Group from Evaluated Vertices

I am writing an operator that allows to pick a surface in the 3D view and assign a vertex group to the hit surface. It's working perfectly fine for objects where the evaluated vertex count matches the ...
f.bra's user avatar
  • 142
1 vote
0 answers
43 views

How can I avoid Depsgraph rebuild times?

I have two objects (in collections) in the scene and I want to render only one of them programmatically (from Python). When I measure the rendering time, there is always overhead of Depsgraph build ...
Hokwang Choi's user avatar
0 votes
1 answer
711 views

Expression based Drivers are not updating in the UI

Here is a Driver. It is a Custom Property on an Object that is driving a value in a Shader Node. It was made by right clicking on the property and Copying as Driver. It uses a Variable. If I change ...
Ascalon's user avatar
  • 6,647
1 vote
1 answer
322 views

How to prevent depsgraph update triggers

Any python or custom properties will send update signals to blender depsgraph, even when it is not necessary. This can be problematic when the properties are attached to an object with an intensive ...
Fox's user avatar
  • 1,942
1 vote
0 answers
99 views

How to determine what value has changed on scene update

I'm considering writing a Take Manager addon so that Blender can have the same functionality as Houdini's Take system (where you can create multiple "takes" that inherit properties from the ...
Anson Savage's user avatar
  • 3,412
0 votes
1 answer
816 views

Despgraph update handler is never called?

I'm registering a depsgraph update handler but it is never called. Am I doing something wrong? What causes the handler to trigger? ...
hilifit's user avatar
  • 312
4 votes
1 answer
645 views

How to update world transformation matrices without calling a scene update

I have a Python script that's recursively parenting children objects to parents. I can use bpy.ops.object.parent_set(), which produces the desired outcome but is too slow for what I'm doing. Another ...
Anson Savage's user avatar
  • 3,412
2 votes
0 answers
143 views

Traverse depsgraph in Python?

Context().evaluated_depsgraph_get() returns a Depsgraph() object. .debug_stats() and ...
Will Chen's user avatar
  • 1,607
2 votes
1 answer
978 views

Visualize depsgraph?

Is there a convenient way to visualize the dependency graph of a Blender file? If so, does it provide granularity showing where and how the dependency occurs? If you create a dependency cycle, then ...
Will Chen's user avatar
  • 1,607
5 votes
1 answer
178 views

Is it possible to listen for object visibility change in python?

Is it possible to listen to changes in object visibility via a Python add-on in Blender? Being a beginner, I only know of listing all objects and doing ...
eobet's user avatar
  • 332