
I have an API script that updates a token character sheet's attribute: const myAggressionObj = findObjs({
_type: 'attribute',
_characterid: myCharacter.id,
name: 'aggre ssion'}) [0];
myAggressionObj.set('current', getAttrByName(myCharacter.id, 'aggression', 'max')); This approach works fine for stand-alone attributes on the custom character sheet. How do I do something similar to an attribute within a repeating section? For example, this does not work: const myActionCooldowns = findObjs({
_type: 'attribute',
_charac terid: myCha racter.id,
name: MY_ATTR_NAME });
log('value: ' + JSON.stringify(myActionCooldowns)); I've tried using the name of the repeating attribute and the name of the repeating section. I've also tried just returning a single row within the repeating section, such as 'repeating_action_$0_actionCooldown'. All three return 'undefined'. Is there a way to access the repeating collection so I can iterate through its attributes? <a href="https://help.roll20.net/hc/en-us/articles/360037256714-Roll20-Mods-API" rel="nofollow">https://help.roll20.net/hc/en-us/articles/360037256714-Roll20-Mods-API</a> seems to have little/no documentation pertaining to repeating sections...