question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest converter update is confusing and has weird issues...

See original GitHub issue

I’m wondering what’s the best way to install the Python module. In the past, I simply copy paste all the files in the source into the folder where the gltf asset is, and then run the Python tool:

screen shot 2018-09-29 at 09 55 47

But in the latest update the tools have grown and when I tested a conversion using the tests asset, I keep getting weird error:

TATATs-MacBook-Pro:Start_Walking jimmyg$ python gltf2usd.py -g Start_Walking.gltf -o Start_Walking.usdz
converted usd file extension from .usdz to .usdc: Start_Walking.usdc
Traceback (most recent call last):
  File "gltf2usd.py", line 726, in <module>
    convert_to_usd(args.gltf_file, args.usd_file, args.fps, args.scale, args.arkit, args.verbose, args.use_euler_rotation)
  File "gltf2usd.py", line 679, in convert_to_usd
    usd = GLTF2USD(gltf_file=gltf_file, usd_file=usd_file, fps=fps, scale=scale, verbose=verbose, use_euler_rotation=use_euler_rotation)
  File "gltf2usd.py", line 68, in __init__
    self.convert()
  File "gltf2usd.py", line 655, in convert
    self._convert_images_to_usd()
  File "gltf2usd.py", line 414, in _convert_images_to_usd
    shutil.copyfile(image_path, image_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 69, in copyfile
    raise Error("`%s` and `%s` are the same file" % (src, dst))
shutil.Error: `Boss_diffuse.png` and `/Users/jimmyg/Documents/PROJECT20180922/Madain_Saleh/anim3/tests/assets/Start_Walking/Boss_diffuse.png` are the same file

UPDATE: Regarding me being dumb copy pasting the script into the folder, I just realized I can keep the original Tool, then open terminal inside the source tool folder and then drag and drop the GLTF file to be converted and then simply just output the result inside any folder. I am still getting familiar with commands and terminal.

For example: screen shot 2018-09-29 at 14 17 45

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
kcoleycommented, Sep 29, 2018

Yep, this model is the issue I have been chasing down for a few weeks. I think your simpler model may help with troubleshooting as the walking animation is quite complex to analyze.

1reaction
kcoleycommented, Oct 15, 2018

@enzyme69 I did some reorganization of the project in the lastest merge, so now you just need gltf2usd.py, __init__.py, and the _usdz folder. Hopefully that makes things easier to move around.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS 16 Update Issues Checklist with Quick Fixes [2021] - iMobie
This guide will list all iOS 16 Update issues and respectively possible solutions. Follow to find the iOS16 issues with fixes.
Read more >
16 Common Apple Music Problems and How to Fix Them
Here're the most reported & latest Apple Music problems including Apple Music not playing, not downloading, glitching, etc.
Read more >
6 Signs of a Failing Torque Converter | Ralph's Transmission
A failing torque converter is one of the most common transmission problems we see, and when it fails it usually leads to other...
Read more >
Signs of a Failing Torque Converter [and How to Fix it!]
The confusion stems from the symptoms of a failing transmission, and a failing torque converter is very similar and linked.
Read more >
RV Power Converter Troubleshooting - RV Repair Club
In Dave's case, he has removed the refrigerator from its cavity to check for power at connection points and in the wiring. If...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found