Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

dbInstGetLayerShifts2

dbInstGetLayerShifts2(
d_instId
)
=> l_layerShifts / nil

Description

Returns a list of shifts that are applied to the layers in the master of the specified instance.

The returned list will consist of sublists, each representing layer-shift pairs.

Arguments

d_instId

Specifies the instance ID

Value Returned

l_layerShifts

Returns a list of layer-shift pairs, representing color shifts on the layers specified on the shapes in this instance in the following format:

list(g_layer t_shift)

where, g_layer is the layer number and t_shift is one of the following:

  • noShift: There is no color shifting on this layer.
  • shift1Shift: Shift colors by one (mask1Color to mask2Color, mask2Color to mask3Color, mask3Color to mask1Color).
  • shift2Shift: Shift colors by two (mask1Color to mask3Color, mask2Color to mask1Color, mask3Color to mask2Color).
  • fixedMask1Shift: Shapes with mask1Color are not changed; shift mask2Color to mask3Color, and mask3Color to mask2Color.
  • fixedMask2Shift: Shapes with mask2Color are not changed; shift mask1Color to mask3Color, and mask3Color to mask1Color.
  • fixedMask3Shift: Shapes with mask3Color are not changed; shift mask1Color to mask2Color, and mask2Color to mask1Color.

nil

There are no layer shifts specified on the instance.

Example

Returns the layer-shift pairs for instance inst.

shifts = dbInstGetLayerShifts2(inst)
=> shifts = ((20 "shift1Shift") (21 "fixedMask2Shift"))

Return to top
 ⠀
X