Houdini字符串参数Expand & Collapse String Parameters in Houdini

Houdini字符串参数Expand & Collapse String Parameters in Houdini

Demo for a fun setup to fake expanding/collapsing string parameters in Houdini. Covers creating parameters, modifying parameter visibility, adding Python parameter callbacks, and creating Action Buttons. Watch in 1440p for the clearest text.

Code used in the video, along with the hipfile can be found here: https://github.com/jamesrobinsonvfx/expandcollapsestringparm

Timestamps:
00:00 – Introduction
00:35 – Overview
01:15 – Start building the base version
03:20 – Control parameter visibility with a toggle
05:40 – Keeping the strings in sync (overview)
07:08 – Executing Python code from a string parameter
08:50 – kwargs explained
09:57 – Writing the callback
13:19 – Action Buttons
15:35 – Changing the Action Button icon
18:00 – Adjusting the parameter label’s indentation
19:40 – Getting it to work in a multiparm block
21:08 – Updating the Hide When expression
21:35 – Updating the callback code
23:10 – Updating the Action Button script
24:26 – Adding a default value to the multiparm

Links:
Disable when/Hide when syntax: https://www.sidefx.com/docs/houdini/ref/windows/optype.html#conditions
kwargs: https://www.sidefx.com/docs/houdini/hom/locations.html#general-tips
谷歌翻译:
演示用于在 Houdini 中伪造扩展/折叠字符串参数的有趣设置。涵盖创建参数、修改参数可见性、添加 Python 参数回调和创建操作按钮。以 1440p 观看最清晰的文本。

视频中使用的代码以及 hipfile 可以在这里找到:https://github.com/jamesrobinsonvfx/expandcollapsestringparm

时间戳:
00:00 – 介绍
00:35 – 概述
01:15 – 开始构建基础版本
03:20 – 通过切换控制参数可见性
05:40 – 保持字符串同步(概述)
07:08 – 从字符串参数执行 Python 代码
08:50 – kwargs 解释
09:57 – 编写回调
13:19 – 操作按钮
15:35 – 更改操作按钮图标
18:00 – 调整参数标签的缩进
19:40 – 让它在多参数块中工作
21:08 – 更新 Hide When 表达式
21:35 – 更新回调代码
23:10 – 更新操作按钮脚本
24:26 – 向多参数添加默认值

链接:
禁用何时/隐藏何时语法:https://www.sidefx.com/docs/houdini/ref/windows/optype.html#conditions
kwargs:https://www.sidefx.com/docs/houdini/hom/locations.html#general-tips

(提取码:vfxf)
(提取码:vfxf)