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

Turning All Nameplates Off on a Purchased Product

Hello, I'm trying to turn all the nameplates off in a commercial product I bought from the marketplace. Sure, I could just go around turning them off manually ... A previous (closed) thread (<a href="https://app.roll20.net/forum/post/9765391/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/9765391/slug%7D</a>) has made a suggestion which I followed. Basically it's saying change the campaign setting defaults to turn the nameplates off, then go into the game an hit 'apply defaults'. Seems straightforward. When I try to do this I get this warning box: So it's warning me that I could be making all sorts of unintended changes and it's wanting me to specify the particular updates I do want; fair enough. But there is no option to update the 'show nameplate' default behaviour. Can anyone tell me what I'm missing? Thanks.
1644168322
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Make sure you saved the section of the defaults settings page with that setting. IIRC, there are three independently save-able sections.
1644168412
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Also, since you have a Pro account, you could use something like token mod to go from page to page, selecting all and converting with a macro. A lot faster than manually editing each token. If you like to go that route, we can give more information.
It took me several tries, of checking and unchecking the box and saving everything to get that checkbox to even show up in the Apply Defaults button. Even then, when I did Apply Defaults it did not update that setting on all of the pages, nor did it update any of the settings on some pages, nor did it save the default token on the sheet. Honestly, I would use Token-mod and a script found here &nbsp;to sync placed tokens with their defaults. Simon W. said: But there is no option to update the 'show nameplate' default behaviour. Can anyone tell me what I'm missing? Thanks.
1644178440
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Changing defaults will never affect saved default tokens. Only assets in place or specific character sheet settings.
1644186003
The Aaron
Roll20 Production Team
API Scripter
Here's an API script that will set it for all non-player controlled tokens on all maps and save it as the default token.&nbsp; It will work automatically, no need to run a command.&nbsp; When it's finished (it might take a minute or so), it will whisper to the GM how many tokens it changed.&nbsp; Then you can disable/delete the script. on('ready',()=&gt;{ const playerCanControl = (obj, playerid='any') =&gt; { const playerInControlledByList = (list, playerid) =&gt; list.includes('all') || list.includes(playerid) || ('any'===playerid &amp;&amp; list.length); let players = obj.get('controlledby') .split(/,/) .filter(s=&gt;s.length); if(playerInControlledByList(players,playerid)){ return true; } if('' !== obj.get('represents') ) { players = (getObj('character',obj.get('represents')) || {get: function(){return '';} } ) .get('controlledby').split(/,/) .filter(s=&gt;s.length); return playerInControlledByList(players,playerid); } return false; }; let tokens = findObjs({ type: 'graphic' }); let num = 0; const burndown = () =&gt; { if(tokens.length){ let t = tokens.shift(); if(!playerCanControl(t)){ t.set({ showplayers_name: false }); num++; let c = getObj('character',t.get('represents')); if(c){ setDefaultTokenForCharacter(c,t); } } setTimeout(burndown,0); } else { sendChat('',`/w gm Adjusted ${num} graphics.`); } }; burndown(); });