如何仅使用 Python 源代码编辑器在 Houdini 中创建动画书?

Posted

技术标签:

【中文标题】如何仅使用 Python 源代码编辑器在 Houdini 中创建动画书?【英文标题】:How to create a Flipbook in Houdini using only the Python source editor? 【发布时间】:2021-07-08 01:48:20 【问题描述】:

我在 Houdini 中创建了一个场景,我想在 python shell/源代码编辑器中仅使用 Python 脚本将其作为翻书保存到文件位置(例如我的桌面)。我已经阅读了有关创建翻书 here 的 sidefx 网站,但我无法弄清楚,具体来说,我不知道 scene 指的是什么那个例子。这是我在源代码编辑器中写的。当我调用该函数时,Houdini 只是关闭,我不知道为什么。

# create flipbook
fbsettings = toolutils.sceneViewer().flipbookSettings().stash()
fbsettings.output('$JOB/Desktop/test.avi')
fbsettings.outputToMPlay(0)
# Launch the flipbook
toolutils.sceneViewer().flipbook(viewport=None, settings=fbsettings, open_dialog=False)

【问题讨论】:

【参考方案1】:

这是用“tmp.$F4.jpg”进行的avi测试

【讨论】:

正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center。 这并没有提供问题的答案。一旦你有足够的reputation,你就可以comment on any post;相反,provide answers that don't require clarification from the asker。 - From Review

以上是关于如何仅使用 Python 源代码编辑器在 Houdini 中创建动画书?的主要内容,如果未能解决你的问题,请参考以下文章

如何仅在特定框架中显示 html 内容?

如何在 WebView 中编辑 HTML?

如何仅在 github 上找到 python 3 代码?

如何仅提取此表中列的数字部分? (Python)

如何仅使用套接字库通过 Python 正确发送 HTTP 响应?

如何仅在代码第一次运行时在 python 中运行函数?