Jeremy et al thanks! This almost worked as proposed, but I figured it out. I was having trouble getting the "#" into the field value.
Here is the working macro, currently implemented at
DesignWriteStudio (this is for a class I am teaching this semester at SUNY Polytechnic Institute). I had to do some odd dancing around in the defines to get the "#" to show up in the background-color field.
<1> on phone, the "prev" and "next" buttons are not properly displaying; too far over to the left
<2> I'd like to set the slidenum field to be the same name as the "slidetag" -- so that a given tiddler can be used/ordered in multiple slideshows. That would require a transclusion of some sort that I haven't begun to figure out.
<3> I'd hope to be able to color the slide in the same <list> as displaying the slides, but that may not be possible? As you can see, I run through the slides on a <list> twice: once to set the bg color, once to open into the story river.
And I hope to bundle this as a plugin (soon).
//steve.
\define bgcolor() {{$:/palettes/DWS##$(slidenum)$}}
\define bgcolor2() #$(rgb)$
\define punchshow(slidetag)
<!--macro creates slideshow of tiddlers tagged with slidetag and ordered by field slidenum. sets bgcolor according to values in customized palette (palette name is hardcoded on first line of macro). requires modified viewTemplate. requires $:/themes/tiddlywiki/punch, $:/core/ui/ViewTemplate/next, $:/core/ui/ViewTemplate/prev, $:/core/ui/ViewTemplate/endslideshow -->
<!--capture slidetag in variable-->
<$set name=slidetag value="$slidetag$">
<!--button text, close all tiddlers, hide sidebar, close open tiddlers, change theme, activate next/prev buttons, activate endslideshow button in ViewTemplate-->
<$button set="$:/state/sidebar" setTo="no" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} >
<$action-sendmessage $message="tm-close-all-tiddlers"/>
<$action-setfield $tiddler="$:/theme" text="$:/themes/tiddlywiki/punch"/>
<$action-setfield $tiddler="$:/core/ui/ViewTemplate/next" tags="$:/tags/ViewTemplate"/>
<$action-setfield $tiddler="$:/core/ui/ViewTemplate/prev" tags="$:/tags/ViewTemplate"/>
<$action-setfield $tiddler="$:/core/ui/ViewTemplate/endslideshow" tags="$:/tags/ViewTemplate"/>
<!--set default return-->
<$action-setfield $tiddler="$:/fromTiddler" text=<<currentTiddler>>/>