Реализация подсветки активного элемента в списке UI Blender — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Реализация подсветки активного элемента в списке UI Blender (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Навык для создания визуальной обратной связи (подсветки) выбранного элемента в панели 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().~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.