UP Studio 2.5 BETA Released, with Material Profile Manager

Talk about anything.
natbuk
Posts: 1
Joined: Thu Jun 09, 2016 11:38 pm

Re: UP Studio 2.5 BETA Released, with Material Profile Manager

Post by natbuk » Thu Oct 25, 2018 10:40 am

Same problem here on the MAC

Now I can't edit material settings, printing heat and no way to go back to older version.

Can I suggest that when TierTime clearly havn't completed implenting a feature (in this case as the functionality has been reduced!), that you don't make a release untill it's done.

Also, the description in the app store says this feature IS IMPLMENTED, and only after installing the new version (and very hard to go back to old version), do users find out it's false.

Very poor show - getting fed up with the poor software quality.

Workaround of 'use windows' is idiotic.

Owen Sparks aka Marksman
Posts: 491
Joined: Tue Mar 15, 2016 9:56 am

Re: UP Studio 2.5 BETA Released, with Material Profile Manager

Post by Owen Sparks aka Marksman » Fri Oct 26, 2018 6:58 am

Windows users are only a little bit better off with the "hidden at the end of the notes, oh by the way this version will delete all your custom profiles.)

I will not be installing this software.

Owen S.

stecmanprinte
Posts: 2
Joined: Fri Oct 26, 2018 9:14 am

Re: UP Studio 2.5 BETA Released, with Material Profile Manager

Post by stecmanprinte » Fri Oct 26, 2018 10:07 am

After this MPM feature is released, there is a new file format, FMD, created for import/export a material profile. How do you think of this feature?
The FMD format has some very strange choices:

Each material is a JSON string, which is then serialised to hexadecimal (!?).

Aside from doubling the storage required, doing this makes it impossible to meaningfully diff FMD files, and make the files impossible to use with version control like Git: changing any value in a material will cause the material's line to change when serialised, which will cause a conflict that has to be manually resolved every time two changes need to be merged together.

I'd suggest just having JSON in the FMD file, instead of trying to make a custom format on top of it. Something like:

Code: Select all

{
    "FMDVersion": "1.0",
    "materials": [
        {
            "manufacturerName": "Tiertime",
            "filamentName": "PLA",
            "printTemperature": 210,
            "bedTemperature": 50,
            ...
        },
        ...
    ]
}
No meaningful key names are used in the format.

Using JSON is a good start, but the key names you're using aren't human readable. I'm unsure if this has been done as a convenience the developer (to save time coming up with names), or because it's easier to reference symbols like this when documenting the format in multiple languages for manufacturers.

It would make the format more community-friendly if descriptive names were used as above, like "printTemperature" instead of "b4". This would likely also make the format easier to maintain for Tiertime.

Code: Select all

{
    "m1":"3FC2777E874220DBDF194112B8E1E602",
    "m2":6764,
    "b1":66024,
    "b2":"PLA",
    "b3":"Tiertime",
    "b4":210,
    "b5":50,
    "b6":50,
    "b7":1.700000,
    "b8":1.250000,
    "b9":[
        0.000010,
        0.000010,
        0.000010
    ],
    "b10":10,
    "b11":100,
    "b12":0,
    "b13":0,
    "b14":0,
    "group":[
        {
            "p1":-1,
            "p2":0.400000,
            "p3":0.100000,
            "p4":0,
            "p5":0.450000,
            "p6":210,
            "p7":220,
            "p8":50,
            "p9":20,
            "p10":10,
            ...

stecmanprinte
Posts: 2
Joined: Fri Oct 26, 2018 9:14 am

Re: UP Studio 2.5 BETA Released, with Material Profile Manager

Post by stecmanprinte » Fri Oct 26, 2018 10:52 pm

For anyone on Mac OSX who wants to use custom temperature settings again while this feature is missing from the Mac version of UP Studio, I've chucked together a script to create materials based on the Tiertime ones that ship with UP Studio.

I've attached a zip of ABS profiles with nozzle temps from 170°C to 280°C in 5° increments, and the same for PLA from 100°C to 250°C.

Code: Select all

import binascii
import json
import sys
import time

from collections import OrderedDict

# Useful keys in FMD materials
MAT_ID = 'b1'
MAT_NAME = 'b2'
MAT_MANUFACTURER = 'b3'
MAT_PRINT_TEMP = 'b4'
MAT_BED_TEMP = 'b5'

# Where the FMD file that ships with UP Studio should be
VENDOR_PATH = '/Applications/UP Studio.app/Contents/Resources/DB/vendor.fmd'
OUTPUT_PATH = 'custom.fmd'

with open(VENDOR_PATH, 'r') as fmdFile:
    materials = []
    version = fmdFile.readline()

    for line in fmdFile:
        raw = binascii.unhexlify(line.strip())
        data = json.JSONDecoder(object_pairs_hook=OrderedDict).decode(raw)

        # UP Studio won't import materials that match an existing ID
        data[MAT_ID] = time.time()
        
        # Change these values to the settings you want
        data[MAT_MANUFACTURER] = 'ESun'
        data[MAT_NAME] = 'ABS'
        data[MAT_PRINT_TEMP] = 220
        data[MAT_BED_TEMP] = 90

        output = json.dumps(data)
        encoded = binascii.hexlify(output)

        materials.append(encoded)
        break

    # Write modified version to file
    with open(OUTPUT_PATH, 'w') as output:
        output.write(version)
        for encoded in materials:
            output.write(encoded)
            output.write("\r\n")

    print "Written to", OUTPUT_PATH
Attachments
profiles.zip
(201.57 KiB) Downloaded 18 times

Owen Sparks aka Marksman
Posts: 491
Joined: Tue Mar 15, 2016 9:56 am

Re: UP Studio 2.5 BETA Released, with Material Profile Manager

Post by Owen Sparks aka Marksman » Mon Oct 29, 2018 9:42 am

Nice work, thanks for sharing it.

Owen S.

PhDEdd
Posts: 1
Joined: Thu Dec 06, 2018 5:38 am

Re: UP Studio 2.5 BETA Released, with Material Profile Manager

Post by PhDEdd » Thu Dec 06, 2018 5:42 am

Just found this out the hard way. The whole point of buying commercial products is to not have to mess around with stuff like this.

So on top of writing generally buggy, ugly (but workable) software, you guys managed to delete users' existing custom profiles, made it impossible to add new ones, and made it impossible to revert to the old version? Amazing.

Just posted to say a massive thanks to stecmanprinte, who made my printer usable again. Will never buy an Tiertime product again.

Post Reply