Tue, Dec 24, 11:26 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Dec 23 7:38 pm)



Subject: Poser Python Help


MoxieGraphix ( ) posted Sat, 19 May 2007 at 3:32 PM · edited Tue, 24 December 2024 at 11:19 AM

Because I'm an idiot and really have trouble understanding Python :tt2:  Is it possible to make a script that will apply a wacro from the materials room to EVERY material?  When I want to do a toon render, I have to go in and apply the wacro to each material individually.  If it is possible, can someone help me set it up?  Pretty please?


markschum ( ) posted Sat, 19 May 2007 at 4:25 PM

er, isnt there an instruction in wacros about holding shift, or ctl or something to apply the wacro to all materials ?

darn , now ya made me look it up !

it says  shift_click to apply action to all materials

If that doesnt work for you post again . the code is fairly simple.

fig = scene.CurrentFigure()

mats = fig.materials()

for mat in mats :
    # whatever yer doin goes here

end script

the exact syntax wont be right , but you can look it up in the python methods pdf :)

i


nruddock ( ) posted Sat, 19 May 2007 at 4:35 PM

Shift-clicking only works if you assign the Wacro to one of the buttons.
If you run one from the user scripts menu, it will only operate on the current material.


Dizzi ( ) posted Sat, 19 May 2007 at 4:40 PM · edited Sat, 19 May 2007 at 4:41 PM

Mmmh, is the "shift click" to apply to all not good enough? What do you need that feature for? The easiest way would be to drop a custom script into the wacro folder that when clicked changes the scripts on the wacro buttons so that you can use shift click to apply to all (if that's implemented in the wacros...) (I'd also suggest to mail e-frontier that they make shift clicking work on the user defined scripts ;-))



MoxieGraphix ( ) posted Sat, 19 May 2007 at 5:13 PM

Quote - Mmmh, is the "shift click" to apply to all not good enough? What do you need that feature for?

Doh!  You know what?  I never even noticed the shift+click thing.  :blushing:  I'll try that. 

Thanks everyone for the responses though I could have done without the smart aleck response.


Privacy Notice

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.