Image scrolling

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

undavide

Image scrolling

Post by undavide »

Hello,
is there any way to script image scrolling? I've a modal ScriptUI Window with buttons that zoom in/out with:

Code: Select allvar s2t= function (s) { return app.stringIDToTypeID(s) }
var zoomIn= function() {
  var d, r;
  d = new ActionDescriptor();
  r = new ActionReference();
  r.putEnumerated(s2t('menuItemClass'), s2t('menuItemType'), s2t('zoomIn'));
  d.putReference(s2t('target'), r);
  executeAction(s2t('select'), d, DialogModes.NO);
  return app.refresh();
};

but I would need to pan and/or scroll the image - do you know any way to implement this one?
Thanks in advance!

Davide

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Mike Hale

Image scrolling

Post by Mike Hale »

I have never been able to come up with a way to control what part of the image is showing.

The document descriptor has two keys that look like they would be helpful. One is zoom which has the current zoom percentage and the other is center which ( I think ) has the center of the visible image. But I have not been able to set either of those directly.
larsen67

Image scrolling

Post by larsen67 »

Yeah Illustrator actually has some view settings that you can control its a pity these are absent from Photoshop… Surely some one has requested this feature B4?
undavide

Image scrolling

Post by undavide »

Thanks guys (sorry for the late answer but it seems I'm not getting emails on topic updates - strange because I've not modified any Forum setting).
So it's not doable... I'm a bit discouraged (about feature requests) it looks like Adobe is not very much interested leveling out and improving scripting among CS applications - at least this is my impression.

Davide
larsen67

Image scrolling

Post by larsen67 »

If Mike knows of know way I would say it doesn't exist ( at least using ESTK )… I have tried just about all I could think of and just about everything comes back with some no record… Selecting anything has no bearing in the view… Scrubby voom is NO different either…