Log in

View Full Version : TokenManager.getTokenSpace



GKEnialb
September 7th, 2022, 04:30
It appears that with the latest(?) build, TokenManager.getTokenSpace is always returning a 1, regardless of the actual space of the token (so a huge creature is returning a 1 instead of a 3). Have only tried with 5e.

Moon Wizard
September 7th, 2022, 07:00
That function is used specifically as part of the TokenManager.autoTokenScale function; and has to be set up correctly either by having the CT entry already in place and linked, or using setDragTokenUnits/endDragTokenWithUnits. It not meant to be a general purpose function to be used for any extensions.

Topics like these should probably be posted in the Workshop forum when dealing with coding specific questions/issues.

Regards,
JPG

GKEnialb
September 8th, 2022, 00:44
Okay, thanks for the clarification.