Description
Move selected page object(s) in the specified direction for the specified step.
It is a parameterized script, so you can call it with parameters directly from a menu option, toolbar icon, or shortcut key. See Script calls syntax (menus, toolbars, keys).
Syntax
ObjMove (sParam) |
sParam
a string, composed of two, comma-delimited, parts, e.g. "U,P"
First part is "move direction", and it can be D(own), L(eft), U(p), R(ight)
Second part can be:
If the first parameter is L or R:
•C > column width as on page
•c > half column
•P > 1pt
•g > column gutter
•#xx > measure
If the first parameter is U or D::
•V > vertical nudge value (either vg or module height)
•W > half as V*2
•P > 1pt
•#xx > measure
Examples of calls
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="D,V" Key="Down"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="D,W" Modifiers="Ctrl" Key="Down"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="D,P" Modifiers="Alt" Key="Down"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="L,C" Key="Left"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="L,c" Modifiers="Ctrl" Key="Left"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="L,g" Modifiers="Ctrl+Alt" Key="Left"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="L,P" Modifiers="Alt" Key="Left"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="R,C" Key="Right"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="R,c" Modifiers="Ctrl" Key="Right"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="R,g" Modifiers="Ctrl+Alt" Key="Right"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="R,P" Modifiers="Alt" Key="Right"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="U,V" Key="Up"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="U,W" Modifiers="Ctrl" Key="Up"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="U,P" Modifiers="Alt" Key="Up"/>
See also