[lcd] and 'writepict'

May 17, 2012 at 10:28am

[lcd] and 'writepict'

Hello all,

I’m working on a patch that periodically saves the output of an [lcd] object. I’m experiencing a couple of issues though:

- Firstly, .pict files won’t open on Snow Leopard, meaning that the output isn’t really suitable anyway. I think I should be able to find some way of converting them, although this is definitely a hindrance.

- Secondly (if I do find a way of automating the conversion process), I can’t specify a file path with the ‘writepict’ command. Looking at very old threads, it seems this used to be an option. Any ideas?

I’m using Max 5 by the way. Can anyone tell me if [lcd] has changed much in 6?

#63643
May 17, 2012 at 1:57pm

Both these issues seem to have been addressed in Max6 – LCD now writes to PNG by default, and I just tried specifying a filepath without any trouble.

#229415
May 17, 2012 at 2:03pm

Also just tried in Max5.1.9 out of curiosity and it all seems to work OK – if I send the writepict message without any arguments the save dialog gives me .png and the full path seems to be OK too. Here’s how I formatted it:

– Pasted Max Patch, click to expand. –
#229416
May 17, 2012 at 2:14pm

Hi Charles,

Thanks for your advice. Wouldn’t you know, all I had to do was tell it I wanted a .png and it works. It sure wasn’t in the help file.

Regarding the filepath, that was an error on my part using [sprintf], just didn’t spot it earlier.

Cheers.

#229417

You must be logged in to reply to this topic.