Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bengHinterland opened this issue Nov 24, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@bengHinterland
Copy link

bengHinterland commented Nov 24, 2022

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(exception_message)
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 bengHinterland added the bug Something isn't working label Nov 24, 2022
@bengHinterland
Copy link
Author

_________ in path is because I anonymized names under NDA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant