[bug] Max5 and pictctrl

Apr 23, 2008 at 5:59pm

[bug] Max5 and pictctrl

Interesting,

Some .png files seem to work fine, others do not – causing the following behavior:

When I open up the patch below in Max5, one of my pictctrl disappears, but all the patchchords remain connected to a point in the patcher window. There’s no object there though.

I’ve included two .png files. Put them in the same path as the patch below. One works, the other doesn’t. No problems in Max 4.6 of course.

Below is the patch, and attached the .png files:

{
“patcher” : {
“fileversion” : 1,
“rect” : [ 384.0, 51.0, 648.0, 545.0 ],
“bglocked” : 0,
“defrect” : [ 384.0, 51.0, 648.0, 545.0 ],
“openrect” : [ 0.0, 0.0, 0.0, 0.0 ],
“openinpresentation” : 0,
“default_fontsize” : 12.0,
“default_fontface” : 0,
“default_fontname” : “Arial”,
“gridonopen” : 0,
“gridsize” : [ 15.0, 15.0 ],
“gridsnaponopen” : 0,
“toolbarvisible” : 1,
“boxanimatetime” : 200,
“imprint” : 0,
“metadata” : [ ],
“boxes” : [ {
"box" : {
"maxclass" : "newobj",
"text" : "sel 1",
"numinlets" : 2,
"fontname" : "Arial",
"hidden" : 1,
"id" : "obj-12",
"numoutlets" : 2,
"outlettype" : [ "bang", "" ],
“fontsize” : 9.0,
“patching_rect” : [ 244.0, 160.0, 32.0, 17.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “t b 1″,
“numinlets” : 1,
“fontname” : “Arial”,
“hidden” : 1,
“id” : “obj-15″,
“numoutlets” : 2,
“outlettype” : [ "bang", "int" ],
“fontsize” : 9.0,
“patching_rect” : [ 144.0, 183.0, 31.0, 17.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “t b 0″,
“numinlets” : 1,
“fontname” : “Arial”,
“hidden” : 1,
“id” : “obj-16″,
“numoutlets” : 2,
“outlettype” : [ "bang", "int" ],
“fontsize” : 9.0,
“patching_rect” : [ 178.0, 183.0, 31.0, 17.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sel 1 0″,
“numinlets” : 1,
“fontname” : “Arial”,
“hidden” : 1,
“id” : “obj-17″,
“numoutlets” : 3,
“outlettype” : [ "bang", "bang", "" ],
“fontsize” : 9.0,
“patching_rect” : [ 144.0, 160.0, 78.0, 17.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “p keyControl”,
“color” : [ 0.4, 0.4, 0.8, 1.0 ],
“numinlets” : 1,
“fontname” : “Arial”,
“hidden” : 1,
“id” : “obj-28″,
“numoutlets” : 1,
“outlettype” : [ "int" ],
“fontsize” : 9.0,
“patching_rect” : [ 144.0, 9.0, 97.0, 17.0 ],
“patcher” : {
“fileversion” : 1,
“rect” : [ 960.0, 294.0, 187.0, 212.0 ],
“bglocked” : 0,
“defrect” : [ 960.0, 294.0, 187.0, 212.0 ],
“openrect” : [ 0.0, 0.0, 0.0, 0.0 ],
“openinpresentation” : 0,
“default_fontsize” : 12.0,
“default_fontface” : 0,
“default_fontname” : “Arial”,
“gridonopen” : 0,
“gridsize” : [ 15.0, 15.0 ],
“gridsnaponopen” : 0,
“toolbarvisible” : 1,
“boxanimatetime” : 200,
“imprint” : 0,
“metadata” : [ ],
“boxes” : [ {
"box" : {
"maxclass" : "outlet",
"numinlets" : 1,
"id" : "obj-1",
"numoutlets" : 0,
"patching_rect" : [ 83.0, 135.0, 15.0, 15.0 ],
“comment” : “”
}

}
, {
“box” : {
“maxclass” : “message”,
“text” : “set $1″,
“numinlets” : 2,
“fontname” : “Arial”,
“id” : “obj-2″,
“numoutlets” : 1,
“outlettype” : [ "" ],
“fontsize” : 9.0,
“patching_rect” : [ 41.0, 83.0, 39.0, 15.0 ]
}

}
, {
“box” : {
“maxclass” : “inlet”,
“numinlets” : 0,
“id” : “obj-3″,
“numoutlets” : 1,
“outlettype” : [ "int" ],
“patching_rect” : [ 41.0, 56.0, 15.0, 15.0 ],
“comment” : “”
}

}
, {
“box” : {
“maxclass” : “toggle”,
“numinlets” : 1,
“id” : “obj-4″,
“numoutlets” : 1,
“outlettype” : [ "int" ],
“patching_rect” : [ 83.0, 110.0, 15.0, 15.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “sel 32″,
“numinlets” : 2,
“fontname” : “Arial”,
“id” : “obj-5″,
“numoutlets” : 2,
“outlettype” : [ "bang", "" ],
“fontsize” : 9.0,
“patching_rect” : [ 83.0, 83.0, 38.0, 17.0 ]
}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “key”,
“numinlets” : 0,
“fontname” : “Arial”,
“id” : “obj-6″,
“numoutlets” : 3,
“outlettype” : [ "int", "int", "int" ],
“fontsize” : 9.0,
“patching_rect” : [ 83.0, 52.0, 40.0, 17.0 ]
}

}
],
“lines” : [ {
"patchline" : {
"source" : [ "obj-4", 0 ],
“destination” : [ "obj-1", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-2", 0 ],
“destination” : [ "obj-4", 0 ],
“hidden” : 0,
“midpoints” : [ 50.5, 104.0, 92.0, 104.0 ]
}

}
, {
“patchline” : {
“source” : [ "obj-5", 0 ],
“destination” : [ "obj-4", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-6", 0 ],
“destination” : [ "obj-5", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-3", 0 ],
“destination” : [ "obj-2", 0 ],
“hidden” : 0,
“midpoints” : [ ]
}

}
]
}
,
“saved_object_attributes” : {
“default_fontsize” : 12.0,
“fontname” : “Arial”,
“default_fontface” : 0,
“globalpatchername” : “”,
“fontface” : 0,
“fontsize” : 12.0,
“default_fontname” : “Arial”
}

}

}
, {
“box” : {
“maxclass” : “newobj”,
“text” : “t b 0 0″,
“numinlets” : 1,
“fontname” : “Arial”,
“hidden” : 1,
“id” : “obj-34″,
“numoutlets” : 3,
“outlettype” : [ "bang", "int", "int" ],
“fontsize” : 9.0,
“patching_rect” : [ 244.0, 183.0, 40.0, 17.0 ]
}

}
, {
“box” : {
“maxclass” : “pictctrl”,
“name” : “play_pause.png”,
“range” : 2,
“trackhorizontal” : 1,
“numinlets” : 1,
“frames” : 2,
“id” : “obj-51″,
“numoutlets” : 1,
“multiplier” : 1,
“mode” : 1,
“trackvertical” : 1,
“outlettype” : [ "int" ],
“tracking” : 1,
“patching_rect” : [ 144.0, 34.0, 0.0, 0.0 ],
“snap” : 1
}

}
, {
“box” : {
“maxclass” : “pictctrl”,
“name” : “load.png”,
“range” : 2,
“trackhorizontal” : 1,
“numinlets” : 1,
“frames” : 2,
“id” : “obj-52″,
“numoutlets” : 1,
“multiplier” : 1,
“trackvertical” : 1,
“outlettype” : [ "int" ],
“patching_rect” : [ 244.0, 34.0, 70.0, 70.0 ],
“snap” : 1
}

}
],
“lines” : [ {
"patchline" : {
"source" : [ "obj-12", 0 ],
“destination” : [ "obj-34", 0 ],
“hidden” : 1,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-52", 0 ],
“destination” : [ "obj-12", 0 ],
“hidden” : 1,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-17", 1 ],
“destination” : [ "obj-16", 0 ],
“hidden” : 1,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-17", 0 ],
“destination” : [ "obj-15", 0 ],
“hidden” : 1,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-51", 0 ],
“destination” : [ "obj-17", 0 ],
“hidden” : 1,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-28", 0 ],
“destination” : [ "obj-51", 0 ],
“hidden” : 1,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-34", 2 ],
“destination” : [ "obj-51", 0 ],
“hidden” : 1,
“midpoints” : [ ]
}

}
, {
“patchline” : {
“source” : [ "obj-51", 0 ],
“destination” : [ "obj-28", 0 ],
“hidden” : 1,
“midpoints” : [ 144.0, 112.0, 132.0, 112.0, 132.0, 5.0, 153.5, 5.0 ]
}

}
]
}

}

#37124
Apr 23, 2008 at 6:35pm

My first guess would be to ask whether the files are inside your search path. Max 5 is a LOT more insistent that this be the case.

#127910
Apr 23, 2008 at 6:40pm

Yes, I did notice that. But no, that’s definitely not the problem. Can someone try it out on their system to confirm this behavior. I attached the .png files.

best,
Zachary

#127911
Apr 23, 2008 at 7:46pm

It’s likely something to do with the alpha channel of the png files.
I also noticed that they each had different icons, like they came
from different programs.

I just opened them in Graphic Converter (on a Mac), re-saved them
with no changes, and it all worked fine.

Dan

At 2:40 PM -0400 4/23/08, Zachary Seldess wrote:
>Yes, I did notice that. But no, that’s definitely not the problem.
>Can someone try it out on their system to confirm this behavior. I
>attached the .png files.
>
>best,
>Zachary
>–
>http://www.zacharyseldess.com
>


Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com

http://www.jackosx.com

#127912
Apr 23, 2008 at 8:48pm

There it is, fixed. Thanks a lot, Dan.

But did you see that bizarre patchchord behavior?? Open up my orginal patch. Never seen this before…

best,
Zachary

#127913
Apr 23, 2008 at 9:26pm

My guess is that the image *was* there, but that the alpha was set
such that the image was transparent, so you couldn’t see it. Thus
the “floating” patch cords, apparently connected to nothing…

Dan

At 4:48 PM -0400 4/23/08, Zachary Seldess wrote:
>There it is, fixed. Thanks a lot, Dan.
>
>But did you see that bizarre patchchord behavior?? Open up my
>orginal patch. Never seen this before…
>
>best,
>Zachary
>–
>http://www.zacharyseldess.com
>


Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com

http://www.jackosx.com

#127914
Apr 24, 2008 at 1:06am

But I also couldn’t select the object to delete it or modify it. I’m sure of this. Try running the above patch, and you’ll see. Or maybe not… Be interesting to know if it is reproduced on other computers. Only have access to mine at the moment…

Zachary

#127915
Nov 19, 2008 at 12:49pm

Hey, ive just started using max 5 and have had a similar kind of problem. Loading up a patch from 4.6 everything loads, apart from the png pictctrl and fpics, it just comes up with a list of error-1′s for all graphics. All the routing for the graphics is correct, it just doesn’t seem to like the png’s. Im going to try re-saving them with an image converter, seems a bit of a strange problem though :/

#127916

You must be logged in to reply to this topic.