Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

drdEnablePixelThreshold

drdEnablePixelThreshold( 
g_enable
) 
=> t / nil

Description

Enables a pixel threshold. When you move an object toward another object and you cross this pixel threshold, the object being moved is automatically snapped to the closest edge of the DRC halo or the target object, if DRD Smart Snap mode is enabled. You can disable this pixel threshold to temporarily disable smart snapping during interactive editing.

By default, this SKILL function is assigned to bindkey 1.

Arguments

g_enable

When set to t, the pixel threshold is enabled. When set to nil, the pixel threshold is disabled.

The default is t.

Value Returned

t

The pixel threshold was enabled.

nil

The pixel threshold was not enabled.

Examples

drdEnablePixelThreshold(t)

Enables the pixel threshold, which, in turn, enables snapping.

drdEnablePixelThreshold(nil)

Disables the pixel threshold.


Return to top
 ⠀
X