Ghostkeeper / X3GWriter

X3G output plugin for Cura
GNU Affero General Public License v3.0
48 stars 16 forks source link

No method to define profile usage? #29

Closed JesseCake closed 5 years ago

JesseCake commented 5 years ago

I realise this is almost been discussed in another issue, but I wasn't able to solve this problem. How are the "profiles" attained by the plugin from Cura?

I attempted naming the machine profile "Replicator 2" and various other things, but nothing would change the plugin from assuming replicator 1. I ended up having to modify the plugin on my computer in a hacky way to force it to use the Replicator 2 profile as my prints continued to come out the wrong size (different steps per mm) like this:

I'm using Cura 4.3 in Linux (Ubuntu 18.04).

Any pointers would be great as there are many of us out there still with perfectly working Replicator 2s that now use Cura as Makerware support of both Linux and Replicator 2 has now ended.

Jesse

Ghostkeeper commented 5 years ago

The plug-in reads metadata from the definition to define which profile it's using. This metadata entry is machine_x3g_variant. For instance this printer specifies that it should use the Replicator 1 Dual profile (instead of single):

https://github.com/Ultimaker/Cura/blob/fc0b8185b7df0f223a67f24384e3e6bad663c8a1/resources/definitions/malyan_m180.def.json#L9

If you've made your own printer definition, setting the machine_x3g_variant to r2 should make it use the Replicator 2 profile.

JesseCake commented 4 years ago

Thanks so much - I'm checking it out now and will attempt to add a Replicator2 printer definition to Cura's github so it can come with Cura and save people adding the metadata by hand themselves.