bgcolor of live.meter~ not restored on patch open

Arvid Tomayko's icon

Hi,

In 8.2 beta, if i save a live.meter~ with a transparent background, it will be back to the default bgcolor when the patch is saved, closed and reopened. This is not the case with Max 8.1.

If a live.meter~ in a patch saved by Max 8.1 has a transparent bgcolor, Max 8.2 opens that as expected.

I believe Max 8.2 is saving the bgcolor, but is also saving a blank expression as bgcolor under "saved_attribute_attributes" and therefore is not recalling it correctly on patch load. here are some lines from inside the Max 8.2 patcher file:

"bgcolor" : [ 0.156862745098039, 0.156862745098039, 0.156862745098039, 0.27 ],
…
"saved_attribute_attributes" :                     {
                        "bgcolor" :                         {
                            "expression" : ""
                        }

in a patch saved by Max 8.1, this "saved_attribute_attributes" is not present.

Example patches saved by both versions attached.

* I have not tested enough to know how widely this bug applies – to other objects or to setting any bgcolor even if not including alpha.

opacity test 8.1.maxpat
Max Patch
saved by Max 8.1

opacity test 8.2.maxpat
Max Patch
saved by Max 8.2


{
    "version" : "Version 8.1.11 (17de540) (64-bit mac)",
    "platform" : "mac",
    "arch" : "x64",
    "osversion" : "Mac OS X Version 10.15.7 (Build 19H1217) x86_64",
    "samplerate" : 48000,
    "iovs" : 256,
    "sigvs" : 64,
    "scheduler_in_audio_interrupt" : "off",
    "audio_drivername" : "Core Audio",
    "audio_driver_subname" : "",
    "license" : "permanent full",
    "machine_id" : "af6d180d5b2eb939b647529dacdbfe89",
    "MXJ Java Version" : "12.0.1",
    "MXJ Java Specification Version" : "12",
    "MXJ OS Name" : "Mac OS X",
    "MXJ OS Version" : "10.15.7",
    "MXJ OS Architecture" : "x86_64",
    "eventinterval" : 2,
    "schedinterval" : 1.0,
    "overdrive" : "on",
    "pollthrottle" : 1000,
    "queuethrottle" : 1000,
    "sysqelemthrottle" : 1000,
    "refreshrate" : 33.0,
    "schedslop" : 25.0,
    "eventprobing" : 1,
    "mixerparallel" : "on",
    "mixercrossfade" : 0,
    "mixerlatency" : 8.0,
    "mixerramptime" : 2.0,
    "videoengine" : "viddll",
    "glengine" : "gl2",
    "packages" :     {
        "3rd party Java" : "",
        "ACToolkit" : "0.9.3",
        "atp.abstractions" : "1.0.0",
        "AudioMix" : "1.0.2",
        "bach" : "0.8.1",
        "BEAP" : "1.0.3",
        "cage" : "0.6.0",
        "cassiel.zeroconf" : "",
        "CNMAT Externals" : "1.0.4",
        "cv.jit" : "2.0.0",
        "Digital Orchestra Toolbox" : "1.1.1",
        "EAMIR SDK" : "2.8.0",
        "ease" : "1.2.1",
        "ejies" : "3.2.4",
        "filter" : "0.2.5",
        "FTM.2.6.0.BETA-Max6-7" : "",
        "gl3" : "0.2.1",
        "GlobalKeyboard" : "",
        "Grainflow" : "0.1.0",
        "hap" : "1.0.6",
        "HISSTools Impulse Response Toolbox (HIRT)" : "2.0.1",
        "HoaLibrary" : "",
        "ISF" : "1.0.2",
        "Jamoma" : "1.0.1",
        "jasch objects" : "0.7.2",
        "jit.gl.hap" : "1.3",
        "jit.mo" : "1.1.4",
        "Jitter Recipes" : "0.1.1",
        "karma" : "1.0.0",
        "link" : "1.2.6",
        "LowkeyNW" : "1.2.0",
        "mat.oo" : "1.0.0",
        "Max ToolBox" : "15",
        "max-mxj" : "7.2.5",
        "Max-SDK" : "8.0.3",
        "max-test" : "1.0.0",
        "maxforlive-elements" : "0.3.7",
        "MC Movement Studies" : "1.0.0",
        "Mira" : "1.2.1",
        "Miraweb" : "1.2.5",
        "ml.lib" : "1.1.2",
        "ml.star" : "1.2.1",
        "Node For Max" : "1.3.3",
        "note~" : "",
        "Patter Tools" : "1.0.1",
        "PeRColate" : "1.3.0",
        "petra" : "1.1.0",
        "PGS-1" : "0.0.5",
        "RTC-lib_70" : "",
        "Sadam" : "",
        "Samplor" : "3.45.0",
        "siteswapjuggler max-objects" : "",
        "smFilterPack" : "0.0.3",
        "Syphon" : "1.0.6",
        "TapTools" : "",
        "threadcheck" : "",
        "Upshot" : "1.1.2",
        "VIDDLL" : "1.2.4",
        "Video & Graphics" : "7.2.0",
        "Vizzie" : "2.1.4",
        "Vsynth" : "1.3.0",
        "XRAY" : "1.0.1",
        "yh Java for Max" : "",
        "zero" : "1.0.3",
        "zsa.descriptors" : "1.2.0"
    }

}

Ben Bracken's icon

Thanks for the report and clear analysis, I can repro here and we will have a look.