getTokenLayoutProps: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 17: Line 17:


|also=
|also=
{{func|getTokenLayoutProps}}
{{func|setTokenLayoutProps}}


}}
}}
[[Category:Token Function]]
[[Category:Token Function]]

Revision as of 17:56, 22 March 2020

getTokenLayoutProps() Function

Introduced in version 1.6.1
Return the token layout scale, xOffset, and yOffset as either a JSON Object or String Property List.

Usage

getTokenLayoutProps()
getTokenLayoutProps(delim)
getTokenLayoutProps(delim, id)
getTokenLayoutProps(delim, id, mapName)

Parameters

  • delim - The delimiter of the String Property List. If set to json, the function will instead return a Json Object. Defaults to ,.
  • id - The token id of the token to name, defaults to the Current Token.

     Note: This parameter can only be used in a Trusted Macro

  • mapname - The name of the map to find the token. Defaults to the current map.


See Also