setTokenSnapToGrid: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=setTokenSnapToGrid |version=1.4 |description= Sets the "snap to" behaviour for the Current Token or a specified token. |usage= <source lang="mtmacro...") |
No edit summary |
||
Line 20: | Line 20: | ||
[h: setTokenSnapToGrid(1, currentToken())]</source> | [h: setTokenSnapToGrid(1, currentToken())]</source> | ||
}} | }} | ||
|also= | |also= | ||
[[func|isSnapToGrid]] | |||
}} | }} | ||
[[Category:Token Function]] | [[Category:Token Function]] |
Revision as of 18:01, 15 December 2017
setTokenSnapToGrid() Function
• Introduced in version 1.4
Sets the "snap to" behaviour for the Current Token or a specified token.
Usage
setTokenSnapToGrid(snap)
setTokenSnapToGrid(snap, id)
Parameters
snap
- A valuetrue
(1
) orfalse
(0
).id
- The id of the token to set its snap behaviour.
Example
[h: setTokenSnapToGrid(0)]
[h: setTokenSnapToGrid(1, currentToken())]
|also= isSnapToGrid }}