Geometry Nodes Input Attribute Toggle does not work after toggled via Python #110516
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
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, Assets & 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
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
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
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#110516
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 536.67
Blender Version
Broken: version: 3.6.1, branch: blender-v3.6-release, commit date: 2023-07-17 12:50, hash:
8bda729ef4dc
Worked: unknown
Short description of error
Geometry Nodes Modifier Input Attribute Toggle button does not work after toggled via Python.
Exact steps for others to reproduce the error
Am I missing an update code or is this a bug?
Looks like you need to use
bpy.ops.object.geometry_nodes_input_attribute_toggle(prop_path="[\"Input_2_use_attribute\"]", modifier_name="GeometryNodes")
.Directly setting that property itself seems to have messed up its internal state or something and made it unable to toggle.
@JacquesLucke @HooglyBoogly maybe want to take a look?
I got it thanks.
@Y.T-LAW Does the problem resolve?
@JacquesLucke Should we mark this property as read only here?
.active["Input_2_use_attribute"]
Yes, it works fine, although
bpy.ops
is not very convenient to use. In my case, I need totemp_override
the active object for them to work.@Y.T-LAW yes, that's needed for calling operator with specific context. I'll close this issue for now.
Although I still suggest making that
.active["Input_2_use_attribute"]
property read-only in this case.Actually I don't think using an operator should be necessary here.
Thanks for the report. I can confirm. Looks like missing redraw/notifier.
Input field updates when I move mouse over it after python call.
Attribute toggle
doesn't not work from UI after assigning boolean value to it. (but works when integer is assigned 🤷♂️ )@PratikPB2123 See: Fix: geometry nodes modifier property not working after changing it in Python
@mod_moder , thanks. So similar can be done for the attribute toggle (since it accepts int value)?
Not sure, but it sounds similar.
GeometryNodes Modifier Input Attribute Toggle button does not work after toggled via Python.to Geometry Nodes Input Attribute Toggle does not work after toggled via Python