getTokenLayoutProps

From RPTools Wiki
Revision as of 17:56, 22 March 2020 by Merudo (talk | contribs)
Jump to navigation Jump to search

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