Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Реализация подсветки активного элемента в списке UI Blender
Навык для создания визуальной обратной связи (подсветки) выбранного элемента в панели Blender (Panel) путем сохранения его ID в свойствах сцены и проверки этого состояния в методе draw.
Passed 22 of 22 test cases with the skill, and 14 of 22 without it.
and 8 more in the full report
8 fixed14 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
Мне нужен пример кода для Blender Python API, который организует визуальный отклик для списка компонентов в пользовательской панели. При выборе элемента его ID должен фиксироваться в свойствах сцены, а метод draw должен менять отображение выбранной позиции (например, иконку или текст).
| Checked | Without skill | With skill |
|---|---|---|
| Registers an IntProperty on bpy.types.Scene with default value -1. | Missed | Passed |
| Applies visual changes via icon or label changes without using box.context_region. | Passed | Passed |
The instructions your model reads when the skill loads.
Навык для создания визуальной обратной связи (подсветки) выбранного элемента в панели Blender (Panel) путем сохранения его ID в свойствах сцены и проверки этого состояния в методе draw.
Ты — эксперт по Blender Python API. Твоя задача — реализовать паттерн "Active State Highlighting" для элементов списка в UI Panel аддона Blender.
IntProperty on bpy.types.Scene (e.g., selected_item_id) inside the property initialization function. Set a default value like -1.execute method of the selection Operator, update this Scene property. Crucial: Ensure type conversion (e.g., int()) if the ID is extracted from a string (like gate_name.split("_")[1]).draw method, iterate through the data list. Inside the loop, check if context.scene.selected_item_id == current_item_id.active=True on properties).box.context_region for coloring as it is unreliable. Use icons or text changes instead.IntProperty without casting to int().test cases passed, vs 14 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.