Closed EfthymisB closed 1 year ago
Hi @EfthymisB -- yes we also ran into it seems a similar issue with the query
param. We believe the underlying issue is related to running Maya commands using the Toolkit background task manager, instead of executing in the main thread. We are looking into a solution for this.
Hey,
I've found a solution for now. Seems like when executing scan_scene
in the main thread, I'm not getting any errors. Is this ok or it might cause issues elsewhere?
scene_objects = self._bundle.execute_in_main_thread(
self._bundle.execute_hook_method, "houk_scene_operations", "scan_scene"
)
@EfthymisB can you provide a more complete code sample here, which file and where are you adding this change? It also seems that you might have a typo in the hook name houk_scene_operation
Hey,
That's on the scan_scene
method of the BreakdownManager
, I've linked the exact line on my previous comment, sorry if it wasn't clear (link). You also have a (related?) TODO comment there.
(indeed that's a type, should be hook_scene_operations
)
Can we get a fix for this?
Hello,
Ever since I rebased to v0.2.5, I'm getting the following error when running maya_scene_operations hook (it doesn't happen in Houdini).
I saw that you had a similar issue with the
query
flag oncmds.file
. I did a test where I completely removed thelong
arg but I got the same error, this time on another command that again, expects a boolean argument. Do you know what could cause this?Linux Centos 7 Maya 2020.4
Thanks, Efthymios