syuntoku14 / fusion2urdf

A Fusion 360 Script to export URDF
MIT License
481 stars 163 forks source link

Script not working after updating the Fusion360 #81

Closed x-dev-s closed 2 months ago

x-dev-s commented 2 months ago

After updating the software to the latest version, the script is not working. It does nothing when I run it. No browse window or anything is opening. I removed the script from the fusion360 and then added it again, but it is still not working.

Any help, please!!!

ShikurM56 commented 2 months ago

Go to the script's folder, go to utils, and modify utils.py

go to the function copy_package and use the following code:

def copy_package(save_dir, package_dir):
    try: 
        os.mkdir(save_dir + '/launch')
    except: 
        pass
    try: 
        os.mkdir(save_dir + '/urdf')
    except: 
        pass
    # shutil.copytree replaces copy_tree
    shutil.copytree(package_dir, save_dir, dirs_exist_ok=True)

Don't forget to add the library import shutil # Add this import

Regards,

x-dev-s commented 2 months ago

Thank you for the help @ShikurM56

Works perfectly ❤

Prithvijai commented 2 months ago

I did the mentioned changes still it doesn't work

ShikurM56 commented 2 months ago

Remove copy tree library

On Sun 22 Sep 2024 at 7:08 a.m., Prithvi_jai @.***> wrote:

I did the mentioned changes still it doesn't work

— Reply to this email directly, view it on GitHub https://github.com/syuntoku14/fusion2urdf/issues/81#issuecomment-2365487771, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV3HDBXS6YASEJVC2XRIPXTZXZNE3AVCNFSM6AAAAABORJQAO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRVGQ4DONZXGE . You are receiving this because you were mentioned.Message ID: @.***>

Prithvijai commented 1 month ago

Hii , I removed the library and It worked . Thank you so much.