Skip to main content
Version: 9.0.2

gre.move_layer

gre.move_layer(
layer_name,
dx,
dy,
x,
y
)

Move a layer to a new position.  The layer_name is the name of the layer or a variable that is associated with the layer name. Setting dx or dy will move the layer by the specified delta from its current position. The  dx and dy values can be 0 to set an absolute position using the x and y values only.

Parameters

ParameterTypeDescription
layer_name#stringThe model full path of the layer to move
dx#numberA delta from the current x position or 0 to move using x
dy#numberA delta from the current y position or 0 to move using y
x#numberThe x position to move to in absolute co-ordinates (omit to use dx)
y#numberThe y position to move to in absolute co-ordinates (omit to use dy)