| S_DistortWarps the source input clip using the gradient of the Lens input clip. This can generate optical glass-like effects as if the source clip were being viewed through an arbitrarily shaped lens. It is best demonstrated when the lens image contains just a few bold shapes or a simple texture.In the Sapphire Distort category. 
      Inputs:
 
 
 
 
 
 
 | 
 | 
Parameters:
- 
   
    Load Preset:
   
   
    Push-button
   
   .
   
 Brings up the Preset Browser to browse all available presets for this effect.
- 
   
    Save Preset:
   
   
    Push-button
   
   .
   
 Brings up the Preset Save dialog to save a preset for this effect.
- 
   
    Mocha:
   
   
    Default:
   
   0,
   
    Range:
   
   0 or greater.
   
 Brings up the Mocha window for tracking footage and generating masks.
- 
   
    Blur Mocha:
   
   
    Default:
   
   0,
   
    Range:
   
   0 or greater.
   
 Blurs the Mocha Mask by this amount before using. This can be used to soften the edges or quantization artifacts of the mask, and smooth out the time displacements.
- 
   
    Mocha Opacity:
   
   
    Default:
   
   1,
   
    Range:
   
   0 to 1.
   
 Controls the strength of the Mocha mask. Lower values reduce the intensity of the effect.
- 
   
    Invert Mocha:
   
   
    Check-box, ย Default:
   
   off.
   
 If enabled, the black and white of the Mocha Mask are inverted before applying the effect.
- 
   
    Resize Mocha:
   
   
    Default:
   
   1,
   
    Range:
   
   0 to 2.
   
 Scales the Mocha Mask. 1.0 is the original size.
- 
   
    Resize Rel X:
   
   
    Default:
   
   1,
   
    Range:
   
   0 to 2.
   
 The relative horizontal size of the Mocha Mask.
- 
   
    Resize Rel Y:
   
   
    Default:
   
   1,
   
    Range:
   
   0 to 2.
   
 The relative vertical size of the Mocha Mask.
- 
   
    Shift Mocha:
   
   
    X & Y, ย Default:
   
   screen center.
   
 Offsets the position of the Mocha Mask.
- 
   
    Dilate Mocha:
   
   
    Default:
   
   0,
   
    Range:
   
   -100 to 100.
   
 Dilates or erodes the Mocha Mask by this pixel amount before using.
- 
   
    Dilation Quality:
   
   
    Popup menu, ย Default: Fast
   
   .
   
 Selects whether Dilate Mocha adusts quickly in default Fast mode or looks better in High quality mode.
 - 
     
      
       Fast:
      
     
     Dilate Mocha in Fast mode for quick adjustments.
     
 
- High: Dilate Mocha in High quality mode for a better looking mask shape.
 
- High: Dilate Mocha in High quality mode for a better looking mask shape.
 
- 
     
      
       Fast:
      
     
     Dilate Mocha in Fast mode for quick adjustments.
     
- 
   
    Bypass Mocha:
   
   
    Check-box, ย Default:
   
   off.
   
 Ignore the Mocha Mask and apply the effect to the entire source clip.
- 
   
    Show Mocha Only:
   
   
    Check-box, ย Default:
   
   off.
   
 Bypass the effect and show the Mocha Mask itself.
- 
   
    Combine Masks:
   
   
    Popup menu, ย Default: Union
   
   .
   
 Determines how to combine the Mocha Mask and Input Mask when both are supplied to the effect.
 - 
     
      
       Union:
      
     
     Uses the area covered by both masks together.
     
 
- Intersect: Uses the area that overlaps between the two masks.
 
- Mocha Only: Ignore the Input Mask and only use the Mocha Mask.
 
- Intersect: Uses the area that overlaps between the two masks.
 
- 
     
      
       Union:
      
     
     Uses the area covered by both masks together.
     
- 
   
    Apply Mask:
   
   
    Popup menu, ย Default: Post-effect
   
   .
   
 Control where in the effect the mask is applied - this affects both the input mask and the mocha mask.
 - 
     
      
       Post-effect:
      
     
     Applies the masks after all the effect has been rendered.
     
 
- Pre-effect: Applies the mask to the source before processing the effect.
 
- Pre-effect: Applies the mask to the source before processing the effect.
 
- 
     
      
       Post-effect:
      
     
     Applies the masks after all the effect has been rendered.
     
- 
   
    Mask Lens:
   
   
    Check-box, ย Default:
   
   off.
   
 If enabled, apply the mask to the Lens input in addition to the Source input.
- 
   
    Fine:
   
   
    Check-box, ย Default:
   
   off.
   
 If enabled, the warping amount is reduced by a factor of 100. This mode is meant to allow subtle expansion or contraction of the source image near the edges of its matte given as the Lens input.
- 
   
    Amount:
   
   
    Default:
   
   1,
   
    Range:
   
   any.
   
 The severity of the lens distortions. Make negative to invert the direction of the distortions.
- 
   
    Amount Rel:
   
   
    X & Y, ย  Default:
   
   [1 1],
   
    Range:
   
   0 or greater.
   
 The relative amounts of horizontal and vertical distortion. This has no effect unless Amount is positive.
- 
   
    Blur Lens:
   
   
    Default:
   
   0.5,
   
    Range:
   
   0 or greater.
   
 Smooths out the edges in the lens image by this amount before using it.
- 
   
    Rotate Warp Dir:
   
   
    Default:
   
   0,
   
    Range:
   
   any.
   
 Rotates the warping direction by this many degrees. If non-zero, this can add some unusual twisting effects to the lens distortion.
- 
   
    Wrap:
   
   
    X & Y, ย Popup menu, ย Default:
   
   [
   
    Reflect Reflect
   
   ].
   
 Determines the method for accessing outside the borders of the source image.
 - 
     
      
       No:
      
     
     gives black beyond the borders.
     
 
- Tile: repeats a copy of the image.
 
- Reflect: repeats a mirrored copy. Edges are often less visible with this method.
 
- Tile: repeats a copy of the image.
 
- 
     
      
       No:
      
     
     gives black beyond the borders.
     
- 
   
    Filter:
   
   
    Check-box, ย Default:
   
   on.
   
 If enabled, the image is adaptively filtered when it is resampled. This gives a better quality result when parts of the image are warped smaller.
- 
   
    Blur Mask:
   
   
    Default:
   
   0,
   
    Range:
   
   0 or greater.
   
 Blurs the Mask input by this amount before using. This can provide a smoother transition between the masked and unmasked areas. It has no effect unless the Mask input is provided.
- 
   
    Invert Mask:
   
   
    Check-box, ย Default:
   
   off.
   
 If on, inverts the mask input so the effect is applied to areas where the Mask is black instead of white. This has no effect unless the Mask input is provided.
- 
   
    Mask Use:
   
   
    Popup menu, ย Default: Luma
   
   .
   
 Determines how the Mask input channels are used to make a monochrome mask.
 - 
     
      
       Luma:
      
     
     the luminance of the RGB channels is used.
     
 
- Alpha: only the Alpha channel is used, or if there is no valid Alpha channel the Red channel is used.
 
- Alpha: only the Alpha channel is used, or if there is no valid Alpha channel the Red channel is used.
 
- 
     
      
       Luma:
      
     
     the luminance of the RGB channels is used.
     
  
 
 
      