For me I have to use the USDZ Tools written in python 3.7 on the x86 architecture.
I could not find any alternatives that converts USDC binary file into USDA Ascii format.
I tried PythonKit which require you to remove the sandbox.
I tried portable-python which always results in errors, possibly due their build script.
To conclude, I would love to use an USDZ Tools built for Swift or even C, but it simply does not exist. So I had to resort to trying to have a python environment in Swit, eventhough it sounds unreasonable and should be avoided.
Post
Replies
Boosts
Views
Activity
I am trying to convert USDC files to USDA format then pack them into an USDZ file. USDZ Tools works perfectly for me after installing python 3.7.9.
I wish to include this convertion in my App, which is written in Swift to use the photogrammetry API. But I can not find a way to include python 3.7 x86 executable/framework in the app.
I tried PythonKit but cannot find a x86 3.7 framework to include, and I tried portable-python but the build always fails due to their build script.
Does anyone have USDZ Tools (Specifically usdzconvert and/or usdzip) alternatives that runs in Swift App's sandbox?
I tried to use the portable-python tool to build a live python executable, so I can put this executable in the app sandbox folder.
You can have a try, but in my use case where I have to build an x86 python 3.7 for USDZ Tools, it always results in errors. Might because of their python build script.
I found in PythonKit docs it mentioned you have to put python framwork into sandbox folder to make it work, but I didn't find a way to build the framework.
So, same problem here. Any potential work-arounds?