sgenoud / replicad

The library to build browser based 3D models with code.
https://replicad.xyz
MIT License
323 stars 38 forks source link

Studio: Open parameters panel by default #131

Closed Billiam closed 5 months ago

Billiam commented 6 months ago

I don't know what the decision making process for this was, so feel free to close!

This change defaults the parameters panel to open, if parameters are available.

This fixes #103, and I think it's more usable in general (personally).

sgenoud commented 6 months ago

How do you share your models?

The functionality within the workbench has been thought as a quick link to communicate with other people who might work on the project. The canonical way of sharing is described here - but it was done before the workbench.

The best approach should be to understand how people are using both now - so tell me how do you use it (I don't have any real analytics so I have no clue unless you tell me!

Also keeping the value saved accross reloads might solve the pain point without changing the default...

P.S. Part of the reason I do not open it by default is that I work mostly on a laptop screen and it tends to cover the model (the 100% honest reason why I chose that default).

Billiam commented 6 months ago

How do you share your models?

For selfish reasons related to download statistics & rewards on 3d printing sites, I've been sharing the source JS files as downloads, and adding instructions to load them in replicad for customization.

I don't think that replicad should cater to that workflow though, when there's the existing pull-from-url and encode-project-as-query-string share options.

P.S. Part of the reason I do not open it by default is that I work mostly on a laptop screen and it tends to cover the model (the 100% honest reason why I chose that default).

Makes sense!

sgenoud commented 6 months ago

For selfish reasons related to download statistics & rewards on 3d printing sites, I've been sharing the source JS files as downloads, and adding instructions to load them in replicad for customization.

Small idea (not sure it would work, but probably worth trying). What if you uploaded an html file with an iframe - you might have the best of both worlds - a download on printables as well as a nicer way to use your models for the users!

Billiam commented 5 months ago

Small idea (not sure it would work, but probably worth trying). What if you uploaded an html file with an iframe - you might have the best of both worlds - a download on printables as well as a nicer way to use your models for the users!

That's a great idea! I think that would work, but only if the source file is publicly accessible somewhere. I think the ?code= param only works in the studio workbench, rather than the visualizer, or the share URL. Do I have that right?

sgenoud commented 5 months ago

I think the ?code= param only works in the studio workbench, rather than the visualizer, or the share URL. Do I have that right?

You do - but it should not be too difficult to add it to the share logic. You could host it on your blog as a raw js file (and potentially also include an iframe that points to it as a post).

Another approach would be just to post the link in the description on top of a set of default STL / STEP files. You could then ask people to also download the files as a way to tell the site that they use your models.