nicklockwood / ShapeScript

The ShapeScript 3D modeling app for macOS and iOS
https://shapescript.info
MIT License
393 stars 18 forks source link

Imports not bringing in any geometry #14

Closed jaikdean closed 6 months ago

jaikdean commented 9 months ago

I can't seem to get imports to work. I don't see any errors, but see absolutely no geometry. I've tried with binary and ASCII STL files, and OBJ files, from Fusion 360, Thingiverse and ones exported from other Shapescript files.

I've tried a basic import as below, as well as defining a block using the import.

import "filename.stl"
nicklockwood commented 9 months ago

@jaikdean how are you running ShapeScript? Via the default app, or have you imported the library into your own application?

jaikdean commented 9 months ago

This is in the current macOS App Store release (1.11.0).

nicklockwood commented 9 months ago

@jaikdean thanks, I think I've found the problem. Can you upload an example of an OBJ and STL file you tried that didn't work so I can verify the fix? Thanks.

jaikdean commented 9 months ago

I'm not able to share my own for commercial reasons, but the 3D Benchy STL is a known good file which didn't import any geometry.

nicklockwood commented 9 months ago

Fair enough. You said you had some OBJ examples too?

jaikdean commented 9 months ago

I've exported a basic torus from Fusion 360 as a binary STL and an OBJ, here.

nicklockwood commented 9 months ago

Both of the Torus examples you sent work fine for me when I test them. I suspect this may be a permissions issue - where are you trying to load the files from? I'm seeing silent failures when trying to import files from the Desktop, but it works OK from Documents.

nicklockwood commented 8 months ago

@jaikdean any update on this? Where is the file you are trying to open located? Does moving it to somewhere else make a difference?

jaikdean commented 8 months ago

Sorry, yes, it does appear to be a file location issue. The .shape and .stl files were both in an iCloud Drive folder. When moved to the desktop, I'm prompted to give Shapescript access to files on the desktop, then it loads correctly.

nicklockwood commented 8 months ago

@jaikdean great, thanks for confirming. There does seem to be a bug with it failing to report a meaningful error when file loading fails, as well as the fact that it doesn't seem to correctly handle iCloud-hosted files. I'll investigate both of those issues.

nicklockwood commented 6 months ago

@jaikdean I believe this is now fixed - let me know if you are still able to reproduce it.