2024-01-24 05:55:38 [Error] [omni.kit.actions.core.python] Error executing PythonAction ‘open_animation_graph’: TypeError: AnimGraphMenu._open_animation_graph() missing 1 required positional argument: ‘objects’
version 2023.2.2
2024-01-24 05:55:38 [Error] [omni.kit.actions.core.python] Error executing PythonAction ‘open_animation_graph’: TypeError: AnimGraphMenu._open_animation_graph() missing 1 required positional argument: ‘objects’
version 2023.2.2
@29009344 i am just another user, but it’ll be beneficial for the mods/devs to troubleshoot and repro by providing a bit more information. like…
%userprofile%\.nvidia-omniverse\logs\Kit\USD.Composer\2023.2
Let me found out what this means. Can you describe what you were doing at the time and what you are trying to achieve ?
@Richard3D
not sure if this has been fixed or not but i have the same problem.
in the file
Omniverse_Install_Location\Library_Path\create-2023.2.2\extscache\omni.kit.context_menu-1.6.8+09b309e7\omni\kit\context_menu\scripts\context_menu.py
at line 1269 the function _execute_action is not sending the correct parms to the
_open_animation_graph action
in the _execute_action i hacked in some code
so that if the action contains open_animation_graph
it add params[“prim_list”] = objects[‘prim_list’]
there is probably a much cleaner way but i just wanted to see if i could get it to work
def _execute_action(self, action: Tuple, objects):
if not action:
return
try:
import omni.kit.actions.core
import omni.kit.app
async def execute_action(action):
await omni.kit.app.get_app().next_update_async()
# only forward the accepted parameters for this action
action_obj = omni.kit.actions.core.acquire_action_registry().get_action(action[0], action[1])
params = {key: objects[key] for key in action_obj.parameters if key in objects}
# Drew Loveridge Edit Start
if 'open_animation_graph' in action:
if "prim_list" in objects:
params["prim_list"] = objects['prim_list']
# Drew Loveridge Edit End
omni.kit.actions.core.execute_action(*action, **params)
Omniverse_Install_Location\Library_Path\create-2023.2.2\extscache\omni.anim.graph.ui-105.1.3+105.1\omni\anim\graph\ui\scripts\menu.py
line 48
and sense the action was sender a list of kwargs **
i changed the function to accept kwargs instead of and arg
def _open_animation_graph(self, objects):
if objects is not None:
if "prim_list" in objects:
prim_list = objects["prim_list"]
self._graph_window.open_graph(prim_list[0])
i changed the input so that it excepts a list if key words
def _open_animation_graph(self, **objects):
if objects is not None:
if "prim_list" in objects:
prim_list = objects["prim_list"]
self._graph_window.open_graph(prim_list[0])
that fixed it and now the context item works
moded_Files.zip (13.8 KB)
Your windows username is “29009” ??
You installed Omniverse to d:/program files/omniverse ??
yes``````
@29009344
if you copy the 2 files from my ziped moded filles in my last post to the location below you should be able to use it.
make sure to back up the files just incase your issue was diff then mine
d:\program files\omniverse\pkg\create-2023.2.2\extscache\omni.kit.context_menu-1.6.8+09b309e7\omni\kit\context_menu\scripts\context_menu.py
d:\program files\omniverse\pkg\create-2023.2.2\extscache\omni.anim.graph.ui-105.1.3+105.1\omni\anim\graph\ui\scripts\menu.py
if you do it give me a heads up if it works
We are looking into this now and analysing the issues with Actiongraph and FSD. I will post a response.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.