Is posible to Set a: zoom Event?

So I looked into my ExScript codes:

function setPanZoom(x, y, z) {
	var panZoomDescriptor = new ActionDescriptor();
	panZoomDescriptor.putDouble(stringIDToTypeID("x"), x);
	panZoomDescriptor.putDouble(stringIDToTypeID("y"), y);
	panZoomDescriptor.putDouble(stringIDToTypeID("z"), z); //zoom
	panZoomDescriptor.putBoolean(stringIDToTypeID("resize"), false); //resize window
	panZoomDescriptor.putBoolean(stringIDToTypeID("animate"), settings.animateZoom); //animate zoom
	executeAction(stringIDToTypeID("setPanZoom"), panZoomDescriptor);
}

Which should translate something like:

{
  _obj:"setPanZoom",
  x:0,
  y:0,
  z:2,
  resize: false,
  animate: true,
}

Don’t ask me what units are… I don’t remember :smiley: I think there is one more way to set it.

2 Likes