I think this little script should do it for you, though I don't have time to test right now. Make sure to keep the indents and let us know if it works.
Learn the Secrets of Poser 11 and Line-art Filters.
My pleasure. I should add that, for Poser 12, Python 3 only accepts Tabs to place the required indents, not a string of multiple spaces.
Learn the Secrets of Poser 11 and Line-art Filters.
You type it into Notepad++, having switched the display to Language | Python and the Settings | Style Config to a nice style like Choco.
You then save it as a .py file. (or a .txt file that you then rename to .py).
Then copy-paste it to C:|Program Files|Smith Micro|Poser 11|Runtime|Python|poserScripts|ScriptsMenu and to any sub-folder you prefer (e.g. FaveScripts). Copy-paste, not cut-paste.
Launch Poser 11 and test to see if it disconnects the nodes. If it fails it will give you a useful console message. Most likely the indenting will be the problem, and you will be told the line-number of the problem.
Close down Poser. Go back to Notepad++, fix, copy, paste, overwrite. Launch Poser 11 and test again. Repeat until it works.
Learn the Secrets of Poser 11 and Line-art Filters.
Ok, at least you tried. This one is tested and working in the Poser 11.x version. May not work on Poser 12 due to the need for TAB indents rather than spaces.
import poser
scene = poser.Scene()
scn = poser.Scene()
figs = scene.Figures()
acts = scene.Actors()
for fig in figs:
mats = fig.Materials()
if mats:
for mat in mats:
tree=mat.ShaderTree()
root = mat.ShaderTree().Node(0)
nodeInput = root.InputByInternalName('AlternateDiffuse')
nodeInput.Disconnect()
nodeInput = root.InputByInternalName('AlternateSpecular')
nodeInput.Disconnect()
tree.UpdatePreview()
for act in acts:
if act.IsProp() or act.IsHairProp():
mats = act.Materials()
if mats:
for mat in mats:
tree=mat.ShaderTree()
root = mat.ShaderTree().Node(0)
nodeInput = root.InputByInternalName('AlternateDiffuse')
nodeInput.Disconnect()
nodeInput = root.InputByInternalName('AlternateSpecular')
nodeInput.Disconnect()
tree.UpdatePreview()
scn.DrawAll()
And in case the forum software's code embedding has messed with the script (it usually does), here's a screenshot of how it should look and indent.
Learn the Secrets of Poser 11 and Line-art Filters.
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
It appears that many content creators now feel that including alt spec and alt diffuse nodes in materials is a plus because it imparts shine. I disagree. I think it makes everything look "oily". That aside. Does anyone know of a script that will remove all the alt spec and alt diffuse nodes from a figure? It's getting really old unplugging them all by hand. Is there an easier way to do away with them short of a script? Any help appreciated. Thanks in advance.