'prop_search' function appears broken in 2.8 #59106
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
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#59106
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: Mac OS X
Graphics card: Radeon Pro 560X 4096 MB
Blender Version
Broken: blender2.8
Worked: 2.79c release
Short description of error
The
prop_search
function has been giving me issues in 2.8 when I incorporate it into my add-ons.When I select something from the
prop_search
dropdown list in Blender, the value stored to the target property includes three spaces of padding at the beginning (along with the '0' indicating the data block has no users if it appears in the dropdown), as if the dropdown list formatting is transferred with the name of the data block.I'm guessing this is just an indexing error, where the entire string is stored to the target property instead of the fourth character on (e.g. in python: datablock_string- [x] should be datablock_string[3:])
Exact steps for others to reproduce the error
n
).bpy.context.scene.target_object_test
has been set to the correct object name, but has also been padded with three spaces in frontAdded subscriber: @bblanimation
Added subscriber: @ideasman42
Changed status from 'Open' to: 'Archived'
Scene no longer has 'objects', see: https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Scene_and_Object_API
Changed status from 'Archived' to: 'Open'
Thank you for pointing this out – I've updated the sample script to reflect this. The issue still remains as described.
Added subscriber: @mont29
Changed status from 'Open' to: 'Archived'
There is no bug here, rather some limitation with current UI code for property search, we cannot decouple UI text from what is stored in string property currently. And for IDs, we want to show a complete UI text, with those two-chars prefix, and the library suffix if needed.
The root of the issue is actually that you are using a text property to store search result on an ID collection. Those should be stored in pointer properties, unless there is a very good reason not to.
Added subscriber: @RomboutVersluijs
in 2.8 branch when i try to add a template_list using PointerProperty, its returns an error that it needs a CollectionProperty. The issue i see with this is that the filer operator does not work now?
Below are snippets from the Rokoko addon. It uses template_list, it shows a list with left source bone names and right target bones names which can be picked using a prop_search.