ufoProcessCalcDefinedPixelTy pe

    void ufoProcessCalcDefinedPixelType(
    ufoProcess process_instance,
    ufoPixelType* input_pixel_types,
    ufoPixelType* preferred_output_pixel_type);

Refer to the following table for command descriptions:

Command | Description
    input_pixel_types
| array of pixel types of rasters to be supplied to inputs
    preferred_output_pixel_type
| preferred output pixel type to be returned

This function is optional. If supplied, it will be called before the rendering any rectangular region of the UFO process outputs, and periodically during user interface interactivity. Given the determined pixel types of the input rasters the function should calculate and return the preferred defined output pixel type to which it can render.

This function is also called periodically during tree editing in order to colour code the input and output connection lines of the tree line UI. In this case there may be inputs which are not connected. If this happens then the corresponding input_pixel_types element will be set to ufoUndefinedPixelType.

If an input is optional, then you can test for whether it is selected using ufoProcessIsRasterInDefined.

If not supplied, the output defined pixel type is calculated using the application default method.

This function should be supplied where application default method does not automatically generate the preferred output pixel type or where the output pixel type may vary depending on the state of the parameters in the process.

Autodesk Softimage v7.5