Repository navigation
Releases
Releases · chordee/scripts-collection
v0.8.0 - Houdini 骨架驅動 procedural / Skeleton-driven procedural
中文
骨架驅動的 Invoke Graph procedural(invokegraph_skinned)
- 新增
husdplugins/houdiniprocedurals/invokegraph_skinned.py,以 Houdini 22.0.429 原版invokegraph.py為基底,於 husk 算圖與 Preview Procedurals 時執行。 - per-input
--skin:在args['inputs']項目後加上旗標,該 input 改取當格經 UsdSkel skinning 與 blendshape 驅動後的模型,而非 bind pose;並排除未綁骨架的 prim。未加旗標的 input 行為與原版相同,兩者可混用。 - input 可指向 mesh、含多個 mesh 的 Xform、SkelRoot 或更上層 prim。
- 以
UsdSkel.BakeSkinning計算點位、normal、blendshape 與 rigid 綁定,在遮罩過的 stage 副本上烘焙,不修改算圖 stage;motion blur 子幀與一拍二動畫皆正確。 - per-input
--velocity:替該 input 加上 point 屬性v(每秒,依 render camera shutter 計算),供 graph 以 attribute transfer 傳給毛髮等輸出,走 velocity motion blur;可與--skin併用,拓樸改變時跳過並警告。 - 相容 Houdini 21 與 22:H22 支援
MotionAPI多樣本 deformation blur;H21 的 loader 不收時間樣本,改以--velocity取得 motion blur。 - 使用注意:husk 需加
--allowed-procedurals all(預設basic會以--validategeo拒絕非 SideFX 簽章的 procedural);Karma 需設karma:object:vblur = 1才會使用velocities。 - 新增 15 項測試(參數化共 32 案例),於 hython Houdini 21.0.729 與 22.0.429 皆通過,並以兩版 husk 端到端驗證。
USD Layer 盤點工具(layer_inspector)
describe()新增creatorNode與isSopLayer欄位:implicit layer 沒有存檔路徑、displayName只是"LOP",改以HoudiniCreatorNode還原建立它的節點路徑,與 Houdini Scene Graph Layers 面板的標示方式一致。
Houdini 端測試函式累計 217 項(v0.7.0 為 199 項)。
English
Skeleton-driven Invoke Graph procedural (invokegraph_skinned)
- Adds
husdplugins/houdiniprocedurals/invokegraph_skinned.py, based on Houdini 22.0.429's stockinvokegraph.py; it runs during husk renders and Preview Procedurals. - Per-input
--skin: append the flag to an entry inargs['inputs']and that input is imported as the UsdSkel-skinned, blendshape-deformed model at the current frame instead of the bind pose, with prims that carry no skeleton binding dropped. Entries without the flag behave exactly as in the stock procedural, and the two can be mixed. - An input may point at a mesh, an Xform holding several meshes, a SkelRoot, or any prim above it.
- Points, normals, blendshapes and rigid bindings are computed by
UsdSkel.BakeSkinningon a masked copy of the stage, so the render stage is never modified; motion blur subframes and animation keyed on twos come out correctly. - Per-input
--velocity: adds a pointvattribute (units per second, measured across the render camera's shutter) to that input, so the graph can transfer it onto what it generates, such as hair, for velocity motion blur. Combines with--skin; if the point count changes across the shutter,vis skipped with a warning. - Houdini 21 and 22 compatible: Houdini 22 supports multi-sample deformation blur through
MotionAPI; Houdini 21's loader accepts no time samples, so use--velocityfor motion blur there. - Notes: husk needs
--allowed-procedurals all(the defaultbasicruns--validategeo, which rejects procedurals not signed by SideFX), and Karma only usesvelocitieswithkarma:object:vblur = 1. - 15 new tests (32 cases with parametrization), passing under hython in Houdini 21.0.729 and 22.0.429, plus end-to-end checks with both versions of husk.
USD layer inspector (layer_inspector)
describe()gainscreatorNodeandisSopLayerfields. An implicit layer has no save path and itsdisplayNameis just"LOP", so the node that created it is now resolved fromHoudiniCreatorNode, matching how Houdini's Scene Graph Layers panel labels it.
Houdini-side test functions now total 217 (199 at v0.7.0).
v0.4.0
- test: add chd_toolkits pytest suite + hython runner (#16)
- test: cover hou-dependent helpers + fix headless hou.ui crashes (#17)
- chore: remove obsolete tools (PDGDeadline, MainMenuMaster, cylindrical_ortho VFLs, PYTHON/); rewrite root README in zh-TW (#18)
- docs: replace hardcoded
D:/dev/scripts-collectionpaths with<path-to-repo>
BREAKING: removed HOUDINI/MainMenuMaster.xml, HOUDINI/PDGDeadline/, HOUDINI/cylindrical_ortho{,_inv}.vfl, HOUDINI/fit_deadline_scheduler.py, PYTHON/.