Blend input parameters |
When calling USCSXSL for processing Blend scripts, you can pass any number of optional name-value pairs as Blend input parameters. When calling from the command line, variable-name and variable-value are connected by an equal sign ( = ). If you have multiple variable-name=variable-value pairs, they are separated by spaces. You cannot have spaces as part of variable-name or variable-value: variable-name=variable-value ...
When calling from a USoft context, variable-name and variable-value are regular string parameters. They are strings surrounded by single quotes and separated by commas. If you have multiple variable-name, variable-value pairs, they are separated by commas. You can have spaces as part of variable-value but not as part of variable-name: , variable-name, variable-value ...
Inside the Blend script, refer to variable-value by the placeholder: $variable-name
TIP: You can provide a default value for a parameter in case it is not passed when your script is called. Use the <pc:assign-default> directive.
Example If you call by the following command line:
the following "deletetwofiles.xml" Blend script:
then this script will delete from the current directory the following files:
Contexts for Blend input parametersThe following are legal contexts for Blend input parameters: From the command line:
From a USoft context:
See also |