[lcd] and 'writepict'
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?
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.
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:
----------begin_max5_patcher---------- 353.3oc0S0yaBCCDc14Wgkmoj37gJvVUYnKcrSETkwwEbahsU7EUZQ7euNNI J.BPcncnK4je2k6dumOuK.QVo2JrD7L7yXDZW.B4gZ.PcmQjR1VdAy5KiTJr V1ZAYTaNPrE73eTIAgQxA7BxiLtTAZ6F7CymE9jUTYC4kgyE12AsI79BASUa BAgEhGaTqWP5amgA7MR05WpDbnkVwQoiiFgoYQMgjza8mlLNBur6mj4dFnW8 1MY8M5UsBTrRgOycURVQeFUcoTUH.ubhG.00POJ8flXke4aBM1M2V31JgOMh VFRH3kMY1GDz7YzukSdESgll3sgzoMgrrq4II+i7jBd90T8T+pPbzDudiGBm S2zypN5YUW5kjQgz5tGFht85lvwpyOcWIpSeJ40PC9wR1pqq38SnasEOngb2 6BohARs5fZnGUyFYdtvmt+FnTlazN50QgKX++TFk7GyH2g8AeWSWP.A -----------end_max5_patcher-----------
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.