getTokenLayoutProps: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=getTokenLayoutProps |version=1.6.1 |description= Return the token layout scale, xOffset, and yOffset as either a JSON Object or String Property List....")
 
mNo edit summary
Line 2: Line 2:
|name=getTokenLayoutProps
|name=getTokenLayoutProps
|version=1.6.1
|version=1.6.1
|description= Return the token layout scale, xOffset, and yOffset as either a [[JSON Object]] or String Property List.
|description= Return the token layout scale, xOffset, and yOffset as either a [[JSON Object]] or [[String Property List]].
|usage=  
|usage=  
<source lang="mtmacro" line>
<source lang="mtmacro" line>

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