Regression: Can no longer set evaluated data in python for attributes #113621

Closed
opened 2023-10-12 18:13:27 +02:00 by Jacob Merrill · 19 comments

System Information
Operating system: win 11
Graphics card: Nvidia 3060

Blender Version
Broken: 4.1
Worked:4.0
Short description of error
using a modal operator or upbge in the past - if we set evaluated attributes they would propigate into a sim
allowing interaction - now it's now working.

Exact steps for others to reproduce the error
start timeline to run sim - start modal and left click
in 4.0 the particle moves - not in 4.1

**System Information** Operating system: win 11 Graphics card: Nvidia 3060 **Blender Version** Broken: 4.1 Worked:4.0 **Short description of error** using a modal operator or upbge in the past - if we set evaluated attributes they would propigate into a sim allowing interaction - now it's now working. **Exact steps for others to reproduce the error** start timeline to run sim - start modal and left click in 4.0 the particle moves - not in 4.1
Jacob Merrill added the
Status
Needs Triage
Severity
Normal
Type
Report
labels 2023-10-12 18:13:27 +02:00

The script doesn't seem to work in 4.0 here either.
With cube selected I get:

Python: Traceback (most recent call last):
  File "/home/me/Desktop/bugs/113621.blend/operator_modal.py", line 20, in modal
AttributeError: 'NoneType' object has no attribute 'attributes'
The script doesn't seem to work in 4.0 here either. With cube selected I get: ``` Python: Traceback (most recent call last): File "/home/me/Desktop/bugs/113621.blend/operator_modal.py", line 20, in modal AttributeError: 'NoneType' object has no attribute 'attributes' ```
Author

the cube is a single vertex on the scene (not the empty)

here it is working in LTS 3.6

the cube is a single vertex on the scene (not the empty) here it is working in LTS 3.6
Author

space bar to start sim - click modal operator - left click to push - 'Run' will appear in bottom of screen when it 'pushes'

space bar to start sim - click modal operator - left click to push - 'Run' will appear in bottom of screen when it 'pushes'
Author

@iss can we poke the simulation module*

@iss can we poke the simulation module*

Ah somehow I missed instruction to start playback... I can confirm script working in 3.6. From looking at the code and node setup it looks, like it should work, so will confirm.

Ah somehow I missed instruction to start playback... I can confirm script working in 3.6. From looking at the code and node setup it looks, like it should work, so will confirm.
Richard Antalik added
Status
Confirmed
Module
Nodes & Physics
and removed
Status
Needs Triage
labels 2023-10-14 01:09:43 +02:00

Why you try to write data to evaluated object? This will be deleted and re evaluated on next update call.

Why you try to write data to evaluated object? This will be deleted and re evaluated on next update call.
Author

to interact with running simulation using a modal operator or to use py to basically run a sim yourself and cache it.

I use UPBGE at the moment instead of a modal operator but the concept is the same.

(this scene is not using bullet physics at all* I am using geometry nodes)

we have openXR for input and the modal system now*

to interact with running simulation using a modal operator or to use py to basically run a sim yourself and cache it. I use UPBGE at the moment instead of a modal operator but the concept is the same. (this scene is not using bullet physics at all* I am using geometry nodes) we have openXR for input and the modal system now*
Jacob Merrill changed title from Can no longer set evaluated data in python for attributes to Regression: Can no longer set evaluated data in python for attributes 2023-10-15 19:13:01 +02:00
Author

in a sim - the evaluated data from this frame becomes the initial values for the next frame @mod_moder

in a sim - the evaluated data from this frame becomes the initial values for the next frame @mod_moder
Member

This is most likely a change from 34b4487844.
The fact that you could write to an evaluated geometry and change the original was a bug though, so this is expected.
Thanks anyway for the report.

This is most likely a change from 34b44878449d67a56fd2a2b850cb04af5a23ca56. The fact that you could write to an evaluated geometry and change the original was a bug though, so this is expected. Thanks anyway for the report.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-10-16 14:45:56 +02:00
Author

Since input is not wrapped - I wrapped it myself and now that is gone.

now we have no way to interact with a running sim in a modal operator
(I guess we can set inputs on another mesh - but I am back to workarounds.....)

Since input is not wrapped - I wrapped it myself and now that is gone. now we have no way to interact with a running sim in a modal operator (I guess we can set inputs on another mesh - but I am back to workarounds.....)
Blender Bot added
Status
Needs Triage
and removed
Status
Archived
labels 2023-10-16 14:49:03 +02:00

For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-10-16 14:53:13 +02:00
Author

For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

functionality that existed was removed.

it was a bug*

> For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug functionality that existed was removed. it was a bug*
Author

a feature was removed that was working between versions without discussion - this is a regression*

I have a resolution - perhaps only use evaluated attributes if the evaluated object is tagged to be used

eval_ob.update_tag()

bpy.types.ID.update_tag *

a feature was removed that was working between versions without discussion - this is a regression* I have a resolution - perhaps only use evaluated attributes if the evaluated object is tagged to be used eval_ob.update_tag() bpy.types.ID.update_tag *
Blender Bot added
Status
Needs Triage
and removed
Status
Archived
labels 2023-10-16 19:44:44 +02:00
Author

@ideasman42 / py module owner - do we not want I/O from python to simulations?

@ideasman42 / py module owner - do we not want I/O from python to simulations?
Author

can we just merge this and close it into #112150 ??

can we just merge this and close it into https://projects.blender.org/blender/blender/issues/112150 ??
Member

@JacobMerrill-1 : this is already referenced from #112150

image

I will tag it as a duplicate as well, but for gitea, there will be no "real" connection between the two reports other than the reference that is already there...)

@JacobMerrill-1 : this is already referenced from #112150 ![image](/attachments/698927ba-076e-4853-9c41-f4de6ecb38d6) I will tag it as a duplicate as well, but for gitea, there will be no "real" connection between the two reports other than the reference that is already there...)
Philipp Oeser added
Status
Duplicate
and removed
Status
Needs Triage
labels 2023-10-17 09:37:56 +02:00
Member

This is not a duplicate of #112150, they are unrelated.

This is not a duplicate of #112150, they are unrelated.
Hans Goudey added
Status
Archived
and removed
Status
Duplicate
labels 2023-10-17 09:38:29 +02:00
Member

This is not a duplicate of #112150, they are unrelated.

Ah, eh... yeah, not a duplicate. Coffee, please :)

> This is not a duplicate of #112150, they are unrelated. Ah, eh... yeah, not a duplicate. Coffee, please :)
Author

#111514 says that #112150 is the fix for this is - how is that unrelated @HooglyBoogly ?

https://projects.blender.org/blender/blender/pulls/111514 says that https://projects.blender.org/blender/blender/issues/112150 is the fix for this is - how is that unrelated @HooglyBoogly ?
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#113621
No description provided.