Getting Tool Parameters
Posted: Thu Apr 15, 2004 5:44 pm
For a custom Tool I wrote, I'd like to:
(1) Use the selected text as the parameter (using $Sel).
OR
(2) Prompt the user for the value if nothing is selected (using $Prompt).
Is there a way to define a Tool Parameter to be something like:
if ($Sel == null) then $Prompt(Enter value:) else $Sel
(1) Use the selected text as the parameter (using $Sel).
OR
(2) Prompt the user for the value if nothing is selected (using $Prompt).
Is there a way to define a Tool Parameter to be something like:
if ($Sel == null) then $Prompt(Enter value:) else $Sel