Closed vScourge closed 3 years ago
You can see in your log VM5333:34 [MeasuredTemplateDocument]
.
The [ ] around mean that your create returned an array. attachElementToToken
does not accept an array as a parameter.
Either call it like this
await tokenAttacher.attachElementToToken(new_template[0], token, false);
or call attachElemtentsToToken
await tokenAttacher.attachElementsToToken(new_template, token, false);
Thank you, I missed that detail. It works now.
I recently updated to Foundry 0.8.8, and Token Attacher 4.1.2. I have a few macros that create spell effect templates, then attach them to the selected actor token. They worked fine prior to the update, now they fail to attach the template to the token. It's likely I'm just missing something.
Here is an example macro:
And here's the F12 console spew when I run that macro: