Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Best way to find a repeating section attribute via the API

1458389177

Edited 1458389208
Lucian
Pro
API Scripter
I might be being daft, but I can't seem to find a  nice way to access attributes within a specific repeating section via the API. Do I just have to pull down all the attributes for the character and filter them by hand with a predicate to filterObjs? Or is there a way to ask for the attributes from a specific repeating section? Cheers,
I haven't found a way to ask for attributes in a specific repeating section.  Generally I have used filterObjs to find the repeating row ID, then from there use various other functions.  getAttrByName() was working well until recently, now it seems to be a bit wonky in the way it works... making me reevaluate its use in a couple of scripts.