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

Where does downloaded content go? #2

Open
filibis opened this issue Aug 15, 2018 · 1 comment
Open

Where does downloaded content go? #2

filibis opened this issue Aug 15, 2018 · 1 comment

Comments

@filibis
Copy link

filibis commented Aug 15, 2018

Hi,
Thank you for the great addon! It works perfect on Blender v2.79.5.
My question is where does the content (mesh and textures) we downloaded go?
It would be great if we can define a 'library path' for downloads and reuse them later on. Could addon detect the content from path when we try to download/import the same one (Instead of downloading again)?

@AurL
Copy link

AurL commented Oct 9, 2018

Hi @filibis ,
Sorry for the late reply (it seems that the notifications have been missed)

It's currently downloaded into a temp directory that you can find with this code:

SKETCHFAB_TEMP_DIR = os.path.join(bpy.context.user_preferences.filepaths.temporary_directory, 'sketchfab_downloads')
SKETCHFAB_THUMB_DIR = os.path.join(SKETCHFAB_TEMP_DIR, 'thumbnails')
SKETCHFAB_MODEL_DIR = os.path.join(SKETCHFAB_TEMP_DIR, 'imports')

https://github.com/sketchfab/gltf2-blender-importer/blob/master/sketchfab/__init__.py#L49-L51

This is something that could easily be configurable in the plugin settings, for the usecase you describe. I'm adding a note about this for further updates.

Also, please note that the content of these folders is cleaned automatically by the plugin after model import, as you can see here
You can comment this line in order to avoid cleaning the folder. That might be a useful options too.

Also, we are currently moving the code from this repo to this one so everything new will happen there

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants