Hello all,
I've rewritten my question, since the last incarnation got no response:
I need to make a separate image from a preview. Here is the code I'm trying...I've tried others. This was my best guess as to how to do it:
function Supervisor () {
var targetWindow = ImageWindow.activeWindow;
var targetView = targetWindow.mainView;
var previews = targetWindow.previews;
with (Neutralizer) {
// identify the preview that holds the background info
for ( var i = 0; i < previews.length; i++ ) {
if (ReferenceImage.id === previews.id)
console.writeln ("Using preview: ", previews.id);
var LumV = View.viewById(previews.id);
break;
};
...
But it does not work...at least I do not see a new image, even if I add
LumV.window.show();
So, how does one create a new image from a from a preview?
Thanks for the help!!!!
Alex
I've rewritten my question, since the last incarnation got no response:
I need to make a separate image from a preview. Here is the code I'm trying...I've tried others. This was my best guess as to how to do it:
function Supervisor () {
var targetWindow = ImageWindow.activeWindow;
var targetView = targetWindow.mainView;
var previews = targetWindow.previews;
with (Neutralizer) {
// identify the preview that holds the background info
for ( var i = 0; i < previews.length; i++ ) {
if (ReferenceImage.id === previews.id)
console.writeln ("Using preview: ", previews.id);
var LumV = View.viewById(previews.id);
break;
};
...
But it does not work...at least I do not see a new image, even if I add
LumV.window.show();
So, how does one create a new image from a from a preview?
Thanks for the help!!!!
Alex
Last edited: