# Cannot open animation graph

**URL:** <https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942>\
**Category:** Samples & Examples\
**Created:** [January 24, 2024, 6:00am UTC](https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942 "2024-01-24T06:00:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![29009344](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@29009344](https://forums.developer.nvidia.com/u/29009344)\
**Post date:** [January 24, 2024, 6:00am UTC](https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942/1 "2024-01-24T06:00:50Z")

</div>

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

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/1/5/1/1519fc0981805bad94aceabe224f6ff446d1e245.png)

---

<div class="post-metadata">

**Author:** ![Simplychenable](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/simplychenable/32/271930_2.png) [@Simplychenable](https://forums.developer.nvidia.com/u/Simplychenable)\
**Post date:** [January 24, 2024, 8:37am UTC](https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942/2 "2024-01-24T08:37:37Z")

</div>

@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…

- the steps leading up to the error (like describing stage content, whether you have objects selected, etc) with screenshots if possible
- upload the most recent .log file found in `%userprofile%\.nvidia-omniverse\logs\Kit\USD.Composer\2023.2`

---

<div class="post-metadata">

**Author:** ![Richard3D](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/richard3d/32/207062_2.png) [@Richard3D](https://forums.developer.nvidia.com/u/Richard3D)\
**Post date:** [January 24, 2024, 8:48pm UTC](https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942/3 "2024-01-24T20:48:49Z")

</div>

Let me found out what this means. Can you describe what you were doing at the time and what you are trying to achieve ?

---

<div class="post-metadata">

**Author:** ![Mayaenite](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mayaenite/32/278209_2.png) [@Mayaenite](https://forums.developer.nvidia.com/u/Mayaenite)\
**Post date:** [January 24, 2024, 9:10pm UTC](https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942/4 "2024-01-24T21:10:22Z")

</div>

> [@Simplychenable](#):
>
> ust another user

@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

```auto
    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

```auto
    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

```auto
    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](https://forums.developer.nvidia.com/uploads/short-url/pZfe1v3FxGW4qFB3VhBTpKaPfWV.zip) (13.8 KB)

---

<div class="post-metadata">

**Author:** ![29009344](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@29009344](https://forums.developer.nvidia.com/u/29009344)\
**Post date:** [January 25, 2024, 1:48am UTC](https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942/5 "2024-01-25T01:48:53Z")

</div>

> [@Richard3D](#):
>
> Let me found out what this means. Can you describe what you were doing at the time and what you are trying to achieve ?

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/f/d/b/fdb4f7da349d07171cac86862de58339d48adf3a.jpeg)  
right click “open animation graph ”  
then error occurred  
[kit\_20240125\_093929.log](https://forums.developer.nvidia.com/uploads/short-url/cQ6LUH2ft2kh22DSEXzKMNw5Zwm.log) (1.4 MB)

---

<div class="post-metadata">

**Author:** ![Richard3D](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/richard3d/32/207062_2.png) [@Richard3D](https://forums.developer.nvidia.com/u/Richard3D)\
**Post date:** [January 25, 2024, 4:41pm UTC](https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942/6 "2024-01-25T16:41:56Z")

</div>

Your windows username is “29009” ??  
You installed Omniverse to d:/program files/omniverse ??

---

<div class="post-metadata">

**Author:** ![29009344](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@29009344](https://forums.developer.nvidia.com/u/29009344)\
**Post date:** [January 26, 2024, 2:45am UTC](https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942/7 "2024-01-26T02:45:37Z")

</div>

yes``````

---

<div class="post-metadata">

**Author:** ![Mayaenite](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mayaenite/32/278209_2.png) [@Mayaenite](https://forums.developer.nvidia.com/u/Mayaenite)\
**Post date:** [January 27, 2024, 1:21am UTC](https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942/8 "2024-01-27T01:21:28Z")

</div>

@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

---

<div class="post-metadata">

**Author:** ![29009344](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@29009344](https://forums.developer.nvidia.com/u/29009344)\
**Post date:** [January 27, 2024, 10:38am UTC](https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942/9 "2024-01-27T10:38:02Z")

</div>

> [@Mayaenite](#):
>
> mniverse\_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

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/1/2/2/1220030e814257520de8623fe214298e53f3b375.png)  
Great, it is useful,thx

---

<div class="post-metadata">

**Author:** ![Richard3D](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/richard3d/32/207062_2.png) [@Richard3D](https://forums.developer.nvidia.com/u/Richard3D)\
**Post date:** [January 29, 2024, 1:51pm UTC](https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942/11 "2024-01-29T13:51:53Z")

</div>

We are looking into this now and analysing the issues with Actiongraph and FSD. I will post a response.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [February 12, 2024, 1:52pm UTC](https://forums.developer.nvidia.com/t/cannot-open-animation-graph/279942/12 "2024-02-12T13:52:21Z")

</div>

Closed on February 12, 2024, 1:52pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
