Wed, Nov 27, 4:52 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 26 1:43 pm)



Subject: Just KD color change pz2?


AtelierAriel ( ) posted Tue, 06 October 2009 at 3:14 PM · edited Wed, 27 November 2024 at 4:08 AM

Can anyone tell me how to create a .pz2 that will just change the kd color without removing all of my shaders?

I already have a pz2 that has all of the kd color statements only and it works. But I need to know if there's a line I can add that will tell Poser to leave the textures and shaders alone and just change the kd color.

All I want to do is have a pz2 to alter the shade of the existing textures.

Anyone know how to do this, thanks in advance.

AA


TrekkieGrrrl ( ) posted Tue, 06 October 2009 at 3:44 PM

So your pz2 can alreadt change the base colour, right? But also changes the texture? Hm. I would have thought that stripping out the lines that had to do with the texture should give a file that wouldn't touch those, but that is probably what you've already tried...

Can you post an example of your PZ2? It's always easier when you can see and discuss the actual example :) 

FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You just can't put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
  Using Poser since 2002. Currently at Version 11.1 - Win 10.



bagginsbill ( ) posted Tue, 06 October 2009 at 3:46 PM

I've tested this. Poser replaces the entire shader with whatever it says in the material section(s). That means you lose nodes of any kind.

The only way i know to do this is to write a Python script to do the incremental changes and then a matching pz2 to call it. It means having to make two files for each color, but the pz2 is trivial.


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)


markschum ( ) posted Tue, 06 October 2009 at 3:48 PM

I believe a mat pose or a material file will replace the shader nodes rather than add or change them .  Theres a bunch of (well several) python scripts to change things in the shader tree without blowing it all away.

http://www.sharecg.com/v/23657/Script/Set-diffuse-gray-script-,-for-light-set

theres one that sets all materials diffuse color the same . Edit the diffuse value for whatever color you want.


AtelierAriel ( ) posted Tue, 06 October 2009 at 5:18 PM

I've tested the pz2 every which way I could and it still removes the shaders. It will leave the color texture and  bump if you have one. Very strange.

I did think of a script which would be easy to find but don't know how to write a pz2 to call it. Can write a pz2 but have never done that.


TrekkieGrrrl ( ) posted Tue, 06 October 2009 at 7:52 PM

In this thread is explained (hope the link works, otherwise.. it's a good part down at the page...) how to call a python script from a pose file http://www.renderosity.com/mod/forumpro/showthread.php?thread_id=2735605&page=3#message_3217877 

FREEBIES! | My Gallery | My Store | My FB | Tumblr |
You just can't put the words "Poserites" and "happy" in the same sentence - didn't you know that? LaurieA
  Using Poser since 2002. Currently at Version 11.1 - Win 10.



AtelierAriel ( ) posted Tue, 06 October 2009 at 9:30 PM

Thank you so much!


markschum ( ) posted Tue, 06 October 2009 at 10:32 PM

If you want to change the color of the same item you can save the material and make several variations all using different diffuse colors all with the full shader setup.


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.