Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
I do that sort of thing with a python script. I dont think the materials can be controlled via ERC but I have never tried it.
Here is a script to set the diffuse value for all materials in one figure
dval = 0.5
import poser
scn = poser.Scene()
fig = scn.CurrentFigure()
mats = fig.Materials()
if mats:
print fig.Name()
for mat in mats:
tree=mat.ShaderTree()
n = tree.NodeByInternalName("PoserSurface")
if n:
i = n.InputByInternalName("Diffuse_Value")
if i:
i.SetFloat(dval)
tree.UpdatePreview()
scn.DrawAll()
http://sites.google.com/site/bagginsbill/free-stuff/parmatic
Forgot the link.
Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)
Note: This script could be (and may need to be) modified to run outside the main runtime. I haven't looked at it in a long time.
Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)
It is not a script to do exactly what you asked - it is a script to do a thousand times more than you asked.
Your original statement was "I need a python script which creates a master dial to control several poser surface nodes. " Well that is a description of parmatic.
It does not change the diffuse value, or the ambient value or any other particular value. It changes nodes that have been named in a way to identify that you want them to be parameters.
To change diffuse value, you would have to attach a math node to the diffuse value, and rename it so it is recognized. For example, you might call it PM:Diffuse Value and then it will make itself into a parameter dial by using parmatic.
Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)
This little script "Markschum" gave to me works OK with figures with body parts in it.
But I have another kind of figure which looks like this
http://atko.dk/langw/forums/Picturetrees.png
Would that be possible to modify this script to work with non body part figures? Instead body parts there are just objects (trees).
Thanks
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.
I need a python script which creates a master dial to control several poser surface nodes.
I have a figure which contains 50 trees (flats). There is one material window for every tree. I'd like to control for example the ambient value (or the color) of 50 trees with one master dial
Would that be possible?