Loadmess not working

Agustin  Echeverria 's icon

Hello, I have a loadmess with the message zoomfactor to thispatcher object and it's not working.

Andy Maskell's icon

I'm not sure what you mean as [thispatcher] does not understand a message named "zoomfactor".

What exactly are you trying to achieve?

Sometimes you need to be a bit more diligent in how messages are communicated, such as this snippet that maximises the active patch window:

Source Audio's icon
Andy Maskell's icon

Ah yes! I recall now that there are numerous commands for [thispatcher] that are not mentioned in the help file or reference book. And this is one of them!

Roman Thilenius's icon

"zoomfactor" work since 7.x. in what version or platform does it not work for you?


what remains difficult is the relative re-positioning of the patcher content after zooming.

Agustin  Echeverria 's icon

Yes! The message zoomfactor works well, but when I put in the loadmess, it does not trigger when opened.

I want to put a 75% zoom for default in that patch.

Max Patch
Copy patch and select New From Clipboard in Max.

11OLSEN's icon

Deferlow. The patcherview is not fully contructed when loadbang fires.

Agustin  Echeverria 's icon

Nice thanks! Now it is working! Is there another way to put a different default zoom?

11OLSEN's icon

No, but templates are super useful and can also include the loadmess + thispatcher.

11OLSEN's icon

You could put stuff into a js that removes itself after loading. For example save this as patcherconf.js or similar:

var task = new Task(bang);


function loadbang()
{
	task.schedule();
}


function bang()
{
	// make your custom settings
	this.patcher.setattr('zoomfactor', 2.0);
	this.patcher.wind.scrollto(0,0);
	
	
	// remove this js box
	this.patcher.remove(this.box);
}

if you save this js with a patcher template, you can customize things but still start with a clean canvas, but that doesn't help to remeber the zoom once the patcher is reloaded. You can't do it without saving some objects with the patcher to manage this.