No "Duplicate Entire Stack" option when calling run("Duplicate...", "title=Title"); in a macro ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

No "Duplicate Entire Stack" option when calling run("Duplicate...", "title=Title"); in a macro ?

Bill Mohler
The macro recorder does not distinguish whether I check the Duplicate Entire Stack box when calling Duplicate... from the Image menu.

When I run a macro using a Duplicate... command that I recorded (with the box checked), the macro only duplicates the current slice.

Has anyone else seen this behavior?  Can the run("Duplicate..."   command be modified to accept that option within the macro code?

Thanks,
Bill
Reply | Threaded
Open this post in threaded view
|

Re: No "Duplicate Entire Stack" option when calling run("Duplicate...", "title=Title"); in a macro ?

Michael Schmid
Hi Bill,

sorry, I cannot reproduce the problem.

entire stack:
   run("Duplicate...", "title=NewStack duplicate");
single slice:
   run("Duplicate...", "title=NoStack");

As usual, for checkboxes, the first word of each option is
recorded if the checkbox is active (and converted to lowercase).
So, "Duplicate Entire Stack" simply becomes "duplicate".

If you have a space in the name of the output stack, male sure
you enclose it in brackets:
   run("Duplicate...", "title=[My Second Stack] duplicate");

Michael
________________________________________________________________

On 8 Oct 2008, at 18:54, Bill Mohler wrote:

> The macro recorder does not distinguish whether I check the  
> Duplicate Entire Stack box when calling Duplicate... from the Image  
> menu.
>
> When I run a macro using a Duplicate... command that I recorded  
> (with the box checked), the macro only duplicates the current slice.
>
> Has anyone else seen this behavior?  Can the run("Duplicate..."    
> command be modified to accept that option within the macro code?
>
> Thanks,
> Bill
Reply | Threaded
Open this post in threaded view
|

Re: No "Duplicate Entire Stack" option when calling run("Duplicate...", "title=Title"); in a macro ?

Bill Mohler
OK.  Thanks for the explanation!

I must have made some error in copying the line of code.  It works for me
now!

----- Original Message -----
From: "Michael Schmid" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, October 08, 2008 1:07 PM
Subject: Re: No "Duplicate Entire Stack" option when calling
run("Duplicate...", "title=Title"); in a macro ?


> Hi Bill,
>
> sorry, I cannot reproduce the problem.
>
> entire stack:
>   run("Duplicate...", "title=NewStack duplicate");
> single slice:
>   run("Duplicate...", "title=NoStack");
>
> As usual, for checkboxes, the first word of each option is
> recorded if the checkbox is active (and converted to lowercase).
> So, "Duplicate Entire Stack" simply becomes "duplicate".
>
> If you have a space in the name of the output stack, male sure
> you enclose it in brackets:
>   run("Duplicate...", "title=[My Second Stack] duplicate");
>
> Michael
> ________________________________________________________________
>
> On 8 Oct 2008, at 18:54, Bill Mohler wrote:
>
>> The macro recorder does not distinguish whether I check the  Duplicate
>> Entire Stack box when calling Duplicate... from the Image  menu.
>>
>> When I run a macro using a Duplicate... command that I recorded  (with
>> the box checked), the macro only duplicates the current slice.
>>
>> Has anyone else seen this behavior?  Can the run("Duplicate..."
>> command be modified to accept that option within the macro code?
>>
>> Thanks,
>> Bill
Reply | Threaded
Open this post in threaded view
|

maximum pixel in an image in macro

Du, Guanghua
 maximum pixel in an image in macro
 
Hello, all
is anybody know how to get the Maxima pixel value of an image in macro functions.?


thanks in advance.


Guanghua Du