EpicGamesExt / BlenderTools

Blender addons that improve the game development workflow between Blender and Unreal.
https://epicgamesext.github.io/BlenderTools/
MIT License
2.81k stars 61 forks source link

send to unreal - Socket export cause exception because it can't find the unreal asset. #523

Open bengHinterland opened 1 year ago

bengHinterland commented 1 year ago

OS : Windows Blender : 3.3.1 Unreal : 5.0.3 Send to Unreal : 2.1.5

If you create a cube and add an empty parented to the cube name SOCKET_test and export to unreal, you get this error :

I managed to make it work by transforming the asset_path in a reference path of the form : StaticMesh'/Game/asset.asset'

Sending a PR with the new code for review

`Python: Traceback (most recent call last): File "C:\Users\bgatt\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\send2ue\dependencies\rpc\factory.py", line 221, in run_function_remotely return remote_function(*args) File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\python\lib\xmlrpc\client.py", line 1122, in call return self.send(self.name, args) File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\python\lib\xmlrpc\client.py", line 1464, in request response = self.transport.request( File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\python\lib\xmlrpc\client.py", line 1166, in request return self.single_request(host, handler, request_body, verbose) File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\python\lib\xmlrpc\client.py", line 1182, in single_request return self.parse_response(resp) File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\python\lib\xmlrpc\client.py", line 1354, in parse_response return u.close() File "C:\Users\bgatt\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\send2ue\dependencies\rpc\client.py", line 55, in close raise exception(exceptionmessage) RuntimeError: The C:/Users/bgatt/projects/____/test/testcube does not exist in the project!

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\bgatt\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\send2ue\operators.py", line 71, in modal raise error File "C:\Users\bgatt\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\send2ue\operators.py", line 61, in modal function(*args, **kwargs) File "C:\Users\bgatt\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\send2ue\core\ingest.py", line 49, in create_static_mesh_sockets UnrealRemoteCalls.set_static_mesh_sockets( File "C:\Users\bgatt\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\send2ue\dependencies\rpc\factory.py", line 248, in wrapper return rpc_factory.run_function_remotely(function, args) File "C:\Users\bgatt\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\send2ue\dependencies\rpc\factory.py", line 226, in run_function_remotely raise exception.class(stack_trace).with_traceback(call_traceback) File "C:\Users\bgatt\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\send2ue\core\ingest.py", line 49, in create_static_mesh_sockets UnrealRemoteCalls.set_static_mesh_sockets( RuntimeError: The C:/Users/bgatt/projects/__/testcube does not exist in the project! File "C:\Users\bgatt\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\send2ue\dependencies\unreal.py", line 818 `

bengHinterland commented 1 year ago

_____ in path is because I anonymized names under NDA