Houdini Templated Workfile Build not working

When opening a task in Houdini for the first time, it should generate a new workfile from template, but it’s giving this error:

Traceback (most recent call last):
  File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.613/houdini/python3.11libs\hdefereval.py", line 155, in _processDeferred
    result = code(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Ynput\AYON\addons\houdini_0.6.0\ayon_houdini\api\lib.py", line 1533, in start_workfile_template_builder
    build_workfile_template(workfile_creation_enabled=True)
  File "C:\Users\User\AppData\Local\Ynput\AYON\addons\houdini_0.6.0\ayon_houdini\api\workfile_template_builder.py", line 134, in build_workfile_template
    builder.build_template(*args, **kwargs)
  File "C:\Users\User\AppData\Local\Ynput\AYON\addons\core_1.4.0\ayon_core\pipeline\workfile\workfile_template_builder.py", line 568, in build_template
    preset = self.get_template_preset()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Ynput\AYON\addons\core_1.4.0\ayon_core\pipeline\workfile\workfile_template_builder.py", line 878, in get_template_preset
    resolved_path = self.resolve_template_path(path)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: HoudiniTemplateBuilder.resolve_template_path() missing 1 required positional argument: 'fill_data'
INFO:pyper.widgets.diff:Running Diff in Houdini.

It works normally with Ayon Houdini version 0.6.0 and Core 1.3.2. Looks like it doesn’t work in the Ayon Core version 1.4.0.
(tested Nuke and it works fine)

@BigRoy, I can see where this bug was introduced.
In this PR Templated Workfile Build: support building from an AYON Entity URI instead of filepath by BigRoy · Pull Request #1292 · ynput/ayon-core · GitHub

should we make the fill_data argument here in houdini optional ?


Update: yeah, we should. here it is.

1 Like

Can confirm this works. Thank you!

Actually thanks - I totally missed that I changed that method signature in core. I shouldn’t have, sorry about that. Luckily Houdini is the only candidate that had it overridden so far - so fixing Houdini now is probably best. Thanks a lot.

2 Likes