The only way I know of for you to do what you want is to simply make and save a preset with the transmap, and another preset without. After that you should simply be able to drag and drop the presets as you wish to switch them out. Assuming I understand what you're asking to do.
Exactly why I'm now fiddling with scripts.I have a perfect case where that won't work - the new CKV-01 scifi outfit. It ships with 70 material presets in 9 color themes, and then 10 transmap options that can be applied over the colors. If you apply one of them, a part becomes transparent. If you want to bring it back with a preset, you first need to know which of the 9 colors the user has used on it - which we don't know. If I just force a transmap without knowing the color, Poser will create a random one. Bummer.
Exactly why I'm now fiddling with scripts.
IIRC AdvancedShaders (Semidieu) was it and more: the whole system to create shaders and save it as poses or materials + scripts.
I'm not aware why it was not widely adopted.
Color changers exist for years, and I don't remember anybody has problems with it.
Addition:
you probably can output hundreds of needed materials with matmatic. And probably render with RenderContent (never used).
Crossposted with Addition2. Hairblending works with transmaps.I actually have Shaderworks Advanced Shaders, though something along the service releases in Poser 11 now cause most of his scripts to malfunction. I suppose changing a color is not much of a problem comparing to changing a transmap.
I guess it depends on your perspective. You can save the transmap as its own preset, delete it, then reload it. More to the point, if you have several nodes working as your transmap (I've done that for masks), you can save the whole group, delete it, then reload it. Yes, you'd have to connect the node to whatever input, but that's really just another click. I'm not sure that I think two clicks instead of one is a big deal.Oh, I haven't used Single Material in a long time - that's why I didn't see the options. The bottom line is that it still can't replace part of a material, which is the big bummer we have to deal with. For example, if I remove a transmap and then want to make a preset to add it back, I can't.
All you would have to do is add a script to take the relevant node the preset added (locate it by Name or InternalName, since you control the shader tree, either should be no problem) and hook it up to the input you intend for it. Then the preset would add the node(s) and hook it up in one fell swoop.I have a perfect case where that won't work - the new CKV-01 scifi outfit. It ships with 70 material presets in 9 color themes, and then 10 transmap options that can be applied over the colors. If you apply one of them, a part becomes transparent. If you want to bring it back with a preset, you first need to know which of the 9 colors the user has used on it - which we don't know. If I just force a transmap without knowing the color, Poser will create a random one. Bummer.
If you do save the transmap as a preset, I believe that you can drag and drop it to the figure, as long as you apply it to the correct material group, other wise as Ken noted, Poser will try to create one for you, which never works. I did that a LOT when I was trying to learn how to create some stocking shaders for V4. Bagginsbill had a thread about it over at Renderosity in the Poser forum. Only thing is, you HAVE to create the preset and drag and drop it to the correct material group on the figure. With something like the stocking shader, if you create a node group with the preset, you should be able to simply input any changes you wish externally.I guess it depends on your perspective. You can save the transmap as its own preset, delete it, then reload it. More to the point, if you have several nodes working as your transmap (I've done that for masks), you can save the whole group, delete it, then reload it. Yes, you'd have to connect the node to whatever input, but that's really just another click. I'm not sure that I think two clicks instead of one is a big deal.
I meant the solution for products. I have two different products that include a script, with presets that reference the script. They allowed me to make 2nd skin stocking materials that work on any character and load like any material. No need to apply in any order.
But if you don't like doing it that way, that's cool. As long as you know you can make presets that swap out transmaps pretty easily, that's cool.