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
Image scrolling
-
Mike Hale
Image scrolling
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.
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
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
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
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
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…