WuPingFan / omniverse-exts-sunpath

SunPath extension for omniverse
4 stars 1 forks source link

TypeError: The value of type <class 'omni.ui.abstract_shade.AbstractShade._ShadeName'> can't be converted to Vector4 #2

Open Toni-SM opened 2 years ago

Toni-SM commented 2 years ago

When I click on the Show Path checkbox I get the following error in Omniverse Create 2022.2.0 on Linux


2022-08-27 10:16:06 [707,897ms] [Error] [omni.ui.python] TypeError: The value of type <class 'omni.ui.abstract_shade.AbstractShade._ShadeName'> can't be converted to Vector4

At: /home/toni/Documents/OMNI/omniverse-exts-sunpath-1.0.0/hnadi.tools.sunpath/hnadi/tools/sunpath/draw_sunpath.py(74): draw_anydate_path /home/toni/Documents/OMNI/omniverse-exts-sunpath-1.0.0/hnadi.tools.sunpath/hnadi/tools/sunpath/draw_sunpath.py(15): init /home/toni/Documents/OMNI/omniverse-exts-sunpath-1.0.0/hnadi.tools.sunpath/hnadi/tools/sunpath/viewport_scene.py(19): init /home/toni/Documents/OMNI/omniverse-exts-sunpath-1.0.0/hnadi.tools.sunpath/hnadi/tools/sunpath/extension.py(37): sunpath_toggle /home/toni/Documents/OMNI/omniverse-exts-sunpath-1.0.0/hnadi.tools.sunpath/hnadi/tools/sunpath/extension.py(101):

WuPingFan commented 2 years ago

When I click on the Show Path checkbox I get the following error in Omniverse Create 2022.2.0 on Linux

2022-08-27 10:16:06 [707,897ms] [Error] [omni.ui.python] TypeError: The value of type <class 'omni.ui.abstract_shade.AbstractShade._ShadeName'> can't be converted to Vector4

At: /home/toni/Documents/OMNI/omniverse-exts-sunpath-1.0.0/hnadi.tools.sunpath/hnadi/tools/sunpath/draw_sunpath.py(74): draw_anydate_path /home/toni/Documents/OMNI/omniverse-exts-sunpath-1.0.0/hnadi.tools.sunpath/hnadi/tools/sunpath/draw_sunpath.py(15): init /home/toni/Documents/OMNI/omniverse-exts-sunpath-1.0.0/hnadi.tools.sunpath/hnadi/tools/sunpath/viewport_scene.py(19): init /home/toni/Documents/OMNI/omniverse-exts-sunpath-1.0.0/hnadi.tools.sunpath/hnadi/tools/sunpath/extension.py(37): sunpath_toggle /home/toni/Documents/OMNI/omniverse-exts-sunpath-1.0.0/hnadi.tools.sunpath/hnadi/tools/sunpath/extension.py(101):

This extension is created in the Windows environment,I don't know about Linux. I reuproad project files, this is a new version of SunPath extension. Please try this version. Will there still be problems.

Lumpylam commented 2 years ago

I tried today and same error appear here ('omni.ui.abstract_shade.AbstractShade._ShadeName'> can't be converted to Vector4). i am using WIndow environment

[Error] [omni.ui.python] TypeError: The value of type <class 'omni.ui.abstract_shade.AbstractShade._ShadeName'> can't be converted to Vector4 [Error] [omni.ui.python] [Error] [omni.ui.python] At: [Error] [omni.ui.python] c:\users\administrator\omniverse-exts-sunpath\exts\hnadi.tools.sunpath\hnadi\tools\sunpath\draw_sunpath.py(145): draw_anydate_path [Error] [omni.ui.python] c:\users\administrator\omniverse-exts-sunpath\exts\hnadi.tools.sunpath\hnadi\tools\sunpath\draw_sunpath.py(20): init [Error] [omni.ui.python] c:\users\administrator\omniverse-exts-sunpath\exts\hnadi.tools.sunpath\hnadi\tools\sunpath\viewport_scene.py(27): init [Error] [omni.ui.python] c:\users\administrator\omniverse-exts-sunpath\exts\hnadi.tools.sunpath\hnadi\tools\sunpath\extension.py(74): sunpath_toggle [Error] [omni.ui.python] c:\users\administrator\omniverse-exts-sunpath\exts\hnadi.tools.sunpath\hnadi\tools\sunpath\window.py(73):