Mon, Feb 10, 4:29 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2025 Feb 10 10:34 am)



Subject: how to modify (or new) material room Wacro for SSS scatter options?


MistyLaraCarrara ( ) posted Tue, 21 February 2012 at 12:03 PM · edited Mon, 10 February 2025 at 4:21 PM

the wacro adds a skin scatter node, but the node doesn't have the drop down arrow for Skin, skin 1, apple, etc.

would it be as simple as a search&replace to change the node to the one with dropdown arrow?

or is it a more complicated recipe?

Thanks  :D



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


JAFO ( ) posted Tue, 21 February 2012 at 12:06 PM

not my forte' but i think it applies to currently selected material....Soops the man for this subject, or BB

Y'all have a great day.


hborre ( ) posted Tue, 21 February 2012 at 12:14 PM

The one you are looking for would be the custom scatter node.  I am not at my own computer to verify the exact name for the node itself.  You should find it when you expand the popup menu by left click any open area in the material room.


MistyLaraCarrara ( ) posted Tue, 21 February 2012 at 12:16 PM

is it possible to make the Wacro use the custom scatter node?



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


hborre ( ) posted Tue, 21 February 2012 at 12:20 PM

That would take editing the Python script itself, or creating a new script and placing that in the wacros folder.  Adding a new script to the folder will not overwrite anything unless the names are identical, and you would be able to access the new entry by clicking the arrow at the bottom the wacros panel.


MistyLaraCarrara ( ) posted Tue, 21 February 2012 at 2:59 PM

new script sounds good.

after i finish setting up the 64 bit version, i'd like to learn how to do the blurrted shadow on metal.



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


mikegg ( ) posted Tue, 21 February 2012 at 8:11 PM

I've created a simple wacro that will add a scatter node to alternate_diffuse in the same way that the "add skin subsurface scattering" wacro button works in the material room. You can modify it with wordpad to change the values as you use it, even while Poser is running, to get different amounts of scatter, texture_detail, material, etc.

The trick is to modify the mainwacros script and address the new add scatter wacro in the spot where the "set up toon render" wacro button was ( i don't use that toon wacro at all) and shift click the button to add a scatter node to all body materials at one time.  You can modify any wacro button you don't use instead. It can also be placed in the userdefined folder and used for one material at a time.

This simple wacro in no way is as sophisticated as BB's or Ezskin, but I created it to see the effects of the scatter node and it works fine and is easily modified.

If you're interested let me know and I'll upload the files (how do you upload a file?) and give more specific instructions.

Michael


MistyLaraCarrara ( ) posted Wed, 22 February 2012 at 9:14 AM

kewl.  i think, to attach a file, you add the extention  .txt to the file name.



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


mikegg ( ) posted Wed, 22 February 2012 at 7:26 PM

file_478794.txt

So I've created a zip with 2 files:addscatter.py and mainWacros.py. Place these files in Smith MicroPoser Pro 2012RuntimePythonposerscriptsWacros. Be sure to backup and make a copy of "mainwacros" first and also addscatter.py. I hope the file wacros.zip.txt shows up, I attached it to this message. Rename it to wacros.zip.

Load a figure in poser, go to material room, and shift-click "set up toon render". This should add a scatter mode to alt diffuse and connect to the image map for all materials/body parts. Then switch out of Poser and Open the file addscatter.py in wordpad (on a pc...any text editor will work) I have my wordpad file open in my other monitor so I can work on it, but you can also alt-tab to it. The part to edit looks like this:

   #material 1=apple to 11=whole milk
    scatter.Input(0).SetFloat(9.0)
    #Use material color 1=on 0=off
    scatter.Input(1).SetFloat(0.0)
    #texture detail
    scatter.Input(2).SetFloat(0.8)
    #scale higher less scatter
    scatter.Input(3).SetFloat(1.1)
    #max error
    scatter.Input(4).SetFloat(0.2)

You may want to edit any of the numbers in parentheses after a "SetFloat " and make sure you save the file with your changes. The first line with the # describes what the next line does. In my example  "scatter.Input(0).SetFloat(9.0)" sets the "material" to skin1, as skin1 is the 9th choice in the scatter node drop down box. The next line turns "use material" on and off.

The line :
   " scatter.Input(3).SetFloat(1.1)" changes the scale parameter in the scatter node...in this example scale is set to 1.1

Change a number after any setfloat and save the file, go back to Poser and Shift-click "add toon render" (I don't know how to change this name) and you should have added a new scatter node with the changes you made.

This sounds cumbersome and maybe it is, but after you get the hang of it, it works. This is not a very elegant solution to modifying a node...my knowledge of python scripting is very limited...but it does work. If you mess up, copy your backup copy of "MainWacros.py back to the wacros folder.

I hope this isn't too complicated and mess you or anyone else up. If you need more clarification, let me know and tell me if it works.

Michael


MistyLaraCarrara ( ) posted Thu, 23 February 2012 at 9:06 AM

Thanks Michael  😄

you gave me the courage to open up a wacro.

i see this line:

scatter = tree.CreateNode(poser.kNodeTypeCodeSCATTERSKIN)

 

guessing this is the line to show where to plug it in?

scatter.ConnectToInput(root.InputByInternalName("AlternateDiffuse"))

 

sigh

 

i'm searching the Poser Python Methods Manual, can't finds the  'kNodeTypeCodeSCATTERSKIN' in it.   was hoping it would put me near the other scatter node info.



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


MistyLaraCarrara ( ) posted Thu, 23 February 2012 at 9:15 AM

when the nodes info isn't in the poser python methods manual, is there another resource?



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


MistyLaraCarrara ( ) posted Thu, 23 February 2012 at 9:37 AM

woww, google and yahoo didn't have a single hit for 'kNodeTypeCodeSCATTERSKIN'

i saw a few python books on amazon, but nothing poser specific.



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


markschum ( ) posted Thu, 23 February 2012 at 9:39 AM

there is a script named documentation in python/poserscripts which will generate some documentation.

 

If you create a material with the required node you can read the node type from it using python  and use the number instead of the poser.kNodetype..... constant.


MistyLaraCarrara ( ) posted Thu, 23 February 2012 at 9:55 AM

a script named 'documentation'?

THANKSSSS



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


MistyLaraCarrara ( ) posted Thu, 23 February 2012 at 10:05 AM

if diffInNode

does that mean if something is plugged into Diffuse, it can disconnect whatever is connected there?

 

is it possible to make the SSS wacro sript iterate through multiple M4 material zones?

can't use shift click, there's different imagemaps like limbs and torsos

 

i haz too many m4 character textures, it would take many many weekends and bottls of Merlot to update them all to scatter.



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


hborre ( ) posted Thu, 23 February 2012 at 10:18 AM

The only method to implement your node arrangement over various material zones with different image maps is BB's VSS.  Snarly's EZSkin will do the exact same thing except there is no access to customizable channels.  But the next version will have some flexibility.


MistyLaraCarrara ( ) posted Thu, 23 February 2012 at 10:47 AM

I stilh have a ways to go yet before adding on the extras yet,  still working on learning what comes with Poser.

i brought all the wacro scripts with me to at least read them on my lunch hour.

ohhh, there was a script for the m4 displacement maps, forgot that one, darn.



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


mikegg ( ) posted Thu, 23 February 2012 at 12:27 PM

That's what i did...opened up several wacro scripts and puzzled through them and came up with the addscatter script. I'm sure you could use my script to create an add custom scatter or fastscatter wacro. An important thing about my script is that it connects to the imagemap node too.

The add skinscatter wacro works differently and will not allow changing the detail parameter...the only one that makes a difference.

Why wouldn't you want to add the scatter script to all body parts?

 

BTW, did you try the wacro and did it work?

 

Michael


MistyLaraCarrara ( ) posted Thu, 23 February 2012 at 3:00 PM

Quote - That's what i did...opened up several wacro scripts and puzzled through them and came up with the addscatter script. I'm sure you could use my script to create an add custom scatter or fastscatter wacro. An important thing about my script is that it connects to the imagemap node too.

The add skinscatter wacro works differently and will not allow changing the detail parameter...the only one that makes a difference.

Why wouldn't you want to add the scatter script to all body parts?

 

BTW, did you try the wacro and did it work?

 

Michael

 

sorry, i couldn't make heads or tails of  the toon script.

all i wanted to do is make the sss wacro use the customscatter node instead of the skinscatter.
plus set the scatter type to cream

i'm gonna try the documents script tonight and experiment.



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


mikegg ( ) posted Thu, 23 February 2012 at 3:26 PM

sorry, i couldn't make heads or tails of  the toon script<<<

You mean the add scatterscript that i wrote that is activated by the toon button or what? Sorry I made it so complicated.

Personally, I think the scatter node works better than customscatter, but that's just my opinion.  The scatter node is the one that lets you choose a material like cream and change the scale which determines how much SSS in my opinion. The addSSS  skinscatter does this "under the hood" . To do what you want you'd have to use multiple math nodes to add together the different SSS nodes, and that's a whole other matter.

Michael


MistyLaraCarrara ( ) posted Fri, 24 February 2012 at 10:23 AM

file_478852.jpg

oops, not custom scatter,

the dropdown arrow comes in the plain ole Scatter Node.  (like POTS- plain old telephone system)

last night, i tried borrowing a couple of nodes from Anastasia, to try and scatter up old Aiko. 

and the cake.  lol



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


MistyLaraCarrara ( ) posted Fri, 24 February 2012 at 10:26 AM · edited Fri, 24 February 2012 at 10:26 AM

Quote - >>>sorry, i couldn't make heads or tails of  the toon script<<<

You mean the add scatterscript that i wrote that is activated by the toon button or what? Sorry I made it so complicated.

Personally, I think the scatter node works better than customscatter, but that's just my opinion.  The scatter node is the one that lets you choose a material like cream and change the scale which determines how much SSS in my opinion. The addSSS  skinscatter does this "under the hood" . To do what you want you'd have to use multiple math nodes to add together the different SSS nodes, and that's a whole other matter.

Michael

thanks.  😄

i didn't realize there was scale option.



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


hborre ( ) posted Fri, 24 February 2012 at 10:36 AM

The scale option controls how much translucency will appear on your model.  The lower the value, the greater the translucency.  However, if you apply scatter to your inner mouth and teeth textures, you will have a bluish effect around the characters mouth.  This can be corrected by eliminating the scatter node from those textures or increasing the scatter scale for the skin texture.


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.