Forums > MaxMSP

Pictctrl: toggle HELP – issue with sizing .png

October 3, 2012 | 1:32 am

Hi There,

I'm a serious amateur with Max, and this issue is really stumping me:

I want to use my own .png image for a pictctrl toggle with inactive image, and I've read up on how you should do this and searched the forums long and hard, but can't seem to find an explanation for why max is doing what does to my image.

Every time I select my image (which is a 4×4 image of a circular icon with transparency) in the inspector, it immediately resizes it to a horizontal rectangle, about a quarter of the size of the original image. Inside the rectangle I can see a portion of my icon, with transparency etc, but I can't drag the box to make it include the entire image. When I do drag the box, it only stretches that particular portion of the image. Snap size to picture size makes no difference. I've tried creating a 6x tile of the image (like it shows in the tutorial for toggles), but it still seems to select a random portion of the image.

Is there something I'm missing? Does it need to be a particular size? Your help would be greatly appreciated. Also, I'm using max 5.1.3.

Thanks!

– Pasted Max Patch, click to expand. –

[attachment=205054,4480]

Attachments:
  1. GreePlay2.png

October 3, 2012 | 7:19 am

When sending a patch, it's a good idea to keep it as small as possible. Most of what you sent is useless to me and doesn't help to understand what's wrong.

The way you use the active and inactive messages is a bit strange…
When looking at your .png, it's obviously not formatted the way it's recommanded in pictctrl's helpfile.

This may help you (don't forget to check the inspector):

– Pasted Max Patch, click to expand. –

[attachment=205064,4485]

Attachments:
  1. GreePlay3.png

October 3, 2012 | 7:24 am

Put both the patch I sent and the .png in the same folder, and reopen the patch so that it can find the right picture! Or you’ll get some weird result…

p


October 3, 2012 | 11:52 am

Awesome, thanks so much, Patrick – very much appreciated. Forgive my lack of knowledge/clarity

Cheers,
p.


Viewing 4 posts - 1 through 4 (of 4 total)