Browser: add your own folders of brushes, alphas, materials and textures
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #173 @combwizard による — マージ済み
評価
調査の方向性
Start by reading the existing path settings and browser indexing code referenced in the issue: studio.json, radial.json, brushes.keep_index, find_or_rescan, and get_library; then trace how Studio path fields and browser source labels are handled. Add per-kind folders for ZBrush 2026 and newer, searched after ZBrush’s own folders, and preserve old index entries when an added folder is unavailable. Done means picks and browser listings work from added folders, with the listed docs and changed Studio screenshots updated.
索引モデルが issue の本文から書いたものです。
説明
ZOrbit only looks for brushes, alphas, materials and textures in ZBrush's own folders (brushes.brush_sources, assets.sources). There is no way to add a folder of your own, so a library has to sit inside a ZBrush folder to show up in the browser or load from a slot.
That is a big gap for anyone with a large kit:
ZStartupis the obvious place for a brush pack, but as far as we know ZBrush loads everything in there at startup. A big kit is exactly what you would want to load on demand, which ZOrbit already does.- A library kept outside ZBrush would not need moving when you change ZBrush version.
- The only workaround is a junction inside a ZBrush folder such as
Lightbox\Brushes. The walker follows junctions, but nobody would guess that, and it has to be redone for each ZBrush.
A pick already turns a name into a full path and hands that to ZBrush, so loading from another folder should work as it is. That has not been tried yet.
Scope
ZBrush 2026 and newer. ZBrush 2022 to 2025 keep searching only their own installation for now. A pick there of an item that only an added folder has gives the existing "could not be found in ZBrush" message, as an item that only a newer ZBrush has does today. Extending it to them is a separate step: it needs a test of how an older ZBrush reacts to a .zbp it cannot read, and a check that asset picks refuse a path the plugin cannot be given (not plain ASCII with no short name, or too long), as Tool and Project items do.
Design
- One list per kind. A single root folder cannot work, because alphas and textures share
.psd,.pngand other extensions. - Searched after ZBrush's folders. The first folder with a name wins, so adding a folder cannot change what an existing slot loads.
- Stored per PC, beside
studio.jsonand not inradial.json. The paths belong to the PC and often hold a Windows user name, andradial.jsongoes out with a profile export. The app and the browser are separate processes and both need to read it. - Set in Studio, with Browse... buttons, as for the other path fields.
- In the browser, each added folder shows under its own name, with two folders of the same name told apart.
get_libraryalready passes unknown source labels through.
What has to change with it
- Unplugged drives (the main one). Any folder that cannot be read makes
brushes.keep_indexkeep the whole old index, and the browser keeps its old list. With a library on a USB drive that is unplugged, a brush just saved in My Brushes would not be found, and every rescan would report an error. Only the missing folder should keep its old entries. - Slow drives. The walk holds
_index_lock, and picks look files up behind the same lock, so a slow folder would delay picks. A pick for a missing name also starts a rescan (find_or_rescan, at most once every 5 seconds). - Thumbnail cache. A rescan trims it to 8000 entries (
cache_prune(8000)inget_library). One large texture library could go over that and keep regenerating thumbnails.
Left out
- Lists per profile or per ZBrush
- Reordering folders, or letting one override ZBrush's own
- Exclude patterns (a
_at the start of a folder's name already skips it) - Network paths, refused as they are for Capture, Tool and Project items. A NAS is a natural home for a library, so this is the limit people are most likely to notice. Fixing the lock in point 2 would make it possible to allow them later.
Docs
menus.md (the search order in Brush and the asset sections), browser.md, studio.md, files.md (the new file), troubleshooting.md (a folder that cannot be read), and the Studio pictures of any screen that changes.
- 主要言語
- Python
- スター
- 2
- フォーク
- 1
- 平均マージ
- 47分
- マージ済み PR(30日)
- 62
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
combwizard/ZOrbit のほかの issue
-
idea ring tags
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
combwizard/ZOrbit#37 ·
メンテナーはふだん 1 日以内に返信
-
bridge idea ring
難易度 5/5 1週間以上 初心者へのやさしさ 39/100
combwizard/ZOrbit#193 ·
メンテナーはふだん 1 日以内に返信
-
idea ring
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
combwizard/ZOrbit#192 ·
メンテナーはふだん 1 日以内に返信
-
bridge idea ring
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
combwizard/ZOrbit#191 ·
メンテナーはふだん 1 日以内に返信
-
idea ring
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
combwizard/ZOrbit#190 ·
メンテナーはふだん 1 日以内に返信
combwizard/ZOrbit の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
vllm-project/vllm-omni#10051 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug Testing
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
SCIInstitute/SCIRun#2931 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 5 日以内に返信
-
author-page correction
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
acl-org/acl-anthology#10827 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 91/100
marimo-team/marimo#11768 ·
メンテナーはふだん 1 日以内に返信