Mon, Nov 25, 7:29 AM CST

Renderosity Forums / Blender



Welcome to the Blender Forum

Forum Moderators: Lobo3433 Forum Coordinators: LuxXeon

Blender F.A.Q (Last Updated: 2024 Nov 24 8:44 pm)

Welcome to the Blender Forum!


   Your place to learn about Blender, ask questions,
   exchange ideas, and interact with the other Blender users!


   Gallery | Freestuff | Tutorials

 

Visit the Renderosity MarketPlace. Your source for digital art content!

 





Subject: Poser Tools for Blender 2.5


Clg ( ) posted Sun, 29 April 2012 at 4:12 AM

Thanks Reddog9 for this add-on :thumbupboth:


Reddog9 ( ) posted Sun, 29 April 2012 at 10:02 AM

Quote - I've followed these instructions:

  • Unzip the compressed file into your Blender/Scripts/Addons folder.
  • Start Blender.
  • Open the User Preference Window and select Addons.
  • Check the box to enable 'Poser Tools'.

However, I had to actually go to Install Addon... the Poser Tools 2 thingie didn't show up in the list until then even though I'd unzipped to the addons folder and closed and re-opened Blender. And it will not let me make it active (Enable Addon).

Blender 2.63 Final, Linux Ubuntu 12.04, 32-bit.

Hi Robyn..  You'll have to bare with me.. I'll be working on Linux compatibility over the next month.  It usually takes a little bit to account for the different directory listing formats of Linux.

 

 

Reddog9
Tutorials, Samples and Models
www.blender3dclub.com


RobynsVeil ( ) posted Sun, 29 April 2012 at 3:16 PM

No worries, Reddog9... take your time. i'll be happy to test for you when the time comes! 😄

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


gustavoarmando ( ) posted Fri, 25 May 2012 at 12:35 AM

Hi I've been looking for a program to render my poser scenes in vray or luxrender because I haven't been able to figure it out directly in poser and I came across this(but that's another problem entirely).  My problem is I get a error message that says "There is no disk in the drive.  Please insert a disk into drive D:." whenever I try to enable Poser Tools.


3doutlaw ( ) posted Thu, 14 June 2012 at 2:13 PM · edited Thu, 14 June 2012 at 2:14 PM

THIS IS BRILLIANT!!!  (caps intended, since I was shouting)

I loaded Blender 2.61, loaded the add-on, saved as default.  Loaded V4, added Lana Elite Material, render and BAM!  V4 rendered via Blender.  Never been this easy!

I did try making a new CR2 from a posed V4, and she still comes in as default Pose.

Is the Pose section of the directory browser for figure poses, like posing V4? 

With conforming clothes following the poses, are you thinking more of supporting only  dynamic clothes saved as figures, or are you going to try and tackle that?

...but again, great work so far!!!!

Now that I am reloaded on W7/64 with Blender 2.61, I can also help test things if you like.


RobynsVeil ( ) posted Thu, 14 June 2012 at 5:21 PM

Rendering in 2.63 with Cycles and - hopefully - soon to come new SSS materials is definitely something to look forward to!

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


kalifrago ( ) posted Sat, 14 July 2012 at 5:10 AM

i'm pleased with the update of your great script !!! i can't wait for, sorry  

i know it's a hard work to keep up with all the updates of blender....

i think it's great, that you are doing this effort....and it's free !!!

thank you very much !!!!

btw, i can activate your script in the newest version of blender and it works, but not at 100 %....

activating the script is possible only if i unzip first and then copy to the addon-folder of blender......it doesn't work if i install the script by using the "install addon"-button in the user-preferences.... 

i can load a figure, though an error appears.....but the figur load in a wrong axis and too small.....also it's not possible to load a material....

i'm working on windows 7 64 bit

greetings

kali

 

 


imagination304 ( ) posted Sat, 14 July 2012 at 6:30 PM

(bookmarked)


LaurieA ( ) posted Wed, 19 September 2012 at 6:47 PM

Any news? :)

Laurie



3doutlaw ( ) posted Fri, 21 September 2012 at 3:59 PM

All this talk of Octane, Cuda and fast renders got you anxious for a little Cycles-ing?  :tongue1:


LaurieA ( ) posted Fri, 21 September 2012 at 5:19 PM

Quote - All this talk of Octane, Cuda and fast renders got you anxious for a little Cycles-ing?  :tongue1:

Cycles works pretty great on my klunker. LOL. I would just like to pull Poser stuff into it easily ;).

Laurie



heddheld ( ) posted Sat, 22 September 2012 at 2:56 AM

it can be used at the mo' LaurieA, just have a bit of fiddling to do in blender(last time I tried it I had to parent to armature (rotate) and I think had to reconnect all the image maps)

there is a script for DS that exports the full scene as .obj and prepares the mats for cycles(did have to tweak the images cos they was set to normal mapping instead of uv, but that could have been my fault lol). That scene.obj will open in octane ready to go, ok so I know your not a DS user but I think there is a script for poser that exports a full scene

 

ps Octane is so fast fast it makes your eyes water rofl


LaurieA ( ) posted Sat, 22 September 2012 at 10:07 AM

Well, Cycles worked pretty fast for me as well. Didn't make my eyes water, but it made me smile...lol.

Laurie



3doutlaw ( ) posted Sat, 22 September 2012 at 10:14 AM · edited Sat, 22 September 2012 at 10:14 AM

heddheld, where can I find that DS script you mention?  Also, does the script reset the pose?  This was a hassle from exporting from DS I ran into before.

I use DS as my conduit to Reality, at least until November.


heddheld ( ) posted Sat, 22 September 2012 at 11:13 AM

http://www.daz3d.com/forums/viewthread/2877/

all the details there, dont use DS often an had a job to find the script after loading but it was under uncategorized

it just makes one object from the whole scene, pose cloth everything and all the mats loaded fine, for cycles I had to change all the maps from normal to uv mapping, but that mighta been my fault and for octane the only real prob was the eyes (all black) but Face-off says to change something for the eyes in his thread on octane

have fun

 


3doutlaw ( ) posted Sat, 22 September 2012 at 6:44 PM

Holy cow!  That script rocked!  Complete import, lights, materials, camera and ready to run in Cycles.  Thanks for the link! :thumbupboth:


RobynsVeil ( ) posted Sat, 22 September 2012 at 7:33 PM

Materials.

One can hope the DS and Poser and Blender and Octane and LuxRender and-and-and would/could/might/SHOULD, to some degree, agree on an open shading language... they could call it "Open Shading Language".

Oh wait, that name's been taken. :biggrin:

Well, maybe they could adopt it?

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


heddheld ( ) posted Sun, 23 September 2012 at 2:48 AM

Oh RV if life was that simple no one would need meds ;-)

@3doutlaw be careful with lights!!  not all lights are supported yet in cycles


RobynsVeil ( ) posted Sun, 23 September 2012 at 3:09 AM

"be careful with lights!!  not all lights are supported yet in cycles"

True. Only sun is supported. But you can use the environment to light your outdoor scene quite effectively.

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


RobynsVeil ( ) posted Sun, 23 September 2012 at 3:18 AM

Oh, and as my avatar shows, the plane with surface as Emission, colour sherbet, strength 1.5 can act as a sort of light, as it does in that image.

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


LaurieA ( ) posted Sun, 23 September 2012 at 6:20 AM

And I'd rather use mesh lights anyway ;)

Laurie



kobaltkween ( ) posted Sun, 23 September 2012 at 9:48 AM

Actually, that's the main thing choosing OSL seems to have done:  unified its lighting model.  Shading and illuminating aren't separate.  Emission is emission, whether it's the shader for a "light" or a mesh.  Lights actually make more fireflies and resolve slower, in my experience.  I suspect because they don't actually have dimension.



PickledPapaya ( ) posted Mon, 24 September 2012 at 3:39 PM

Thanks for the link @heddheld!  That DS plugin is really cool, and per the script, they do not mind someone modifying it, as long as you keep their copyright info in there.  I am perusing it over to see if its within my ability to "poser-ize" it.  I am a Python hack, at best...

Here's my first Cycles render! (click for bigger)

...and I modeled the glass!

Great tutorial: LINK

Learned more from that Blender tutorial, than all the reading on Blender I've done to date.  It just made sense to me.

I actually cut the render short, due to time...it's only about 1/2 baked.


PickledPapaya ( ) posted Tue, 25 September 2012 at 2:02 PM

Update - @Casual updated to post on how to use that script with Poser, linked here

Have not tried it yet, but will today.


RobynsVeil ( ) posted Tue, 25 September 2012 at 5:41 PM

Quote - Update - @Casual updated to post on how to use that script with Poser, linked here

Have not tried it yet, but will today.

Actually mcj's site is quite interesting, from a Cycles/Blender viewpoint. I'm going to have a go today - taking the day off from housework! (Yesterday was brutal ::lol:)

3DOutlaw made an important point:
"Poser does have a CollectSceneInventory script, which will gather all the materials for you."
... which will make putting all the textures in one place for Blender to find a lot less tedious (thanks 3DOutlaw - good point!) ...

... do have a few questions, though. If they're python scripts, couldn't they be run within Blender?

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


PickledPapaya ( ) posted Tue, 25 September 2012 at 7:02 PM

Yea, most of the scripts are installed in blender and run there.  The only one that does not is the one that exports the OBJ, creates the blender import Py, the batch file to lauch blender/import py and gathers the materials

I am trying to get a scaling export script for poser now (it seems to have that option) but it aint working.  I posted in the Poser Scripts forum


RobynsVeil ( ) posted Thu, 22 November 2012 at 10:42 PM

Right. So, I'm finally coming back to Windows (sort-of) and Poser (sort-of) after a solid stint in Mint 13 building my own Blender from svn and learning all about Boost and OiiO and CUDA and why OpenCL will take a while getting rolling in Blender (AMD isn't sharing their code, which is idiotic, they're going to lose Blender Cycles people left-right-and-centre because CUDA just works).

So, I'm going to have a play with your script again, RedDog9 and see how it plays in 2.64.9 (build 52402, which I compiled last Tuesday).

I have to say: I love Cycles! I love the fact it's so extensible... it's growing so fast, people are creating materials for it so quickly, it's hard to keep up. I've done some messing around in it, but I can't say I've been all to productive: even though I've coded materials in Python/Matmatic, I really don't have the conceptual grip on it KobaltKween has  - not a thousandth of it, really. And having those concepts down would really stand one to good stead in this case.

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


heddheld ( ) posted Fri, 23 November 2012 at 1:51 AM

I couldn't find this thread last week!!!, wanted to see if he had done more work on it, did you have it bookmarked or sumat or you way better at rendos search? lol


RobynsVeil ( ) posted Fri, 23 November 2012 at 4:27 AM

I sort-of have it bookmarked in that I remembered RedDog9's name, and so I went from his profile to his site... to here. 😄

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


3doutlaw ( ) posted Fri, 23 November 2012 at 7:38 PM

Yea, the project seems to have died, huh?


Boni ( ) posted Sat, 01 December 2012 at 4:23 PM

Hi guys ...

Can anyone help me with "activating" Poser tools 2?  I have Blender 2.64 and everything seems to be located properly ... but I can't activate it.  Also, I had to copy and paste the un-zipped file to the addon fold otherwise I got a path error. 

Thanks.

P.S. I am a novice with Blender.

Boni



"Be Hero to Yourself" -- Peter Tork


RobynsVeil ( ) posted Sat, 01 December 2012 at 6:21 PM

I have Blender 2.64.9 (build 52656 from svn, with OSL enabled). I followed the instructions from the wiki:

http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Import-Export/Poser_Tools

installed to the ./scripts/addons/ folder. The Poser Tools 2 addon is now visible in my list of addons, but I cannot tick the tickbox to activate it either.

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


Boni ( ) posted Sat, 01 December 2012 at 6:25 PM

Well, RobynsVeil ... I guess we ait to see if someone has found a way arround this.  I'd really like to use the SSS feature in Blender as I do NOT have PP2012. :)

Boni



"Be Hero to Yourself" -- Peter Tork


LaurieA ( ) posted Sat, 01 December 2012 at 7:08 PM

The creator seems to have lost interest, which is a real shame :(

Laurie



Boni ( ) posted Sat, 01 December 2012 at 7:12 PM

That is a shame ... but I was hoping someone here might have a work-a-round ... since it's open source and all. Just asking. :)

Boni



"Be Hero to Yourself" -- Peter Tork


RobynsVeil ( ) posted Sat, 01 December 2012 at 11:36 PM

App abandonment happens, unfortunately (although I'm not saying RedDog9's giving up on this - probably just busy with other stuff atm). I'd invested in Q7Basic just recently to port my VBA application to Linux and Mac and come to find out the last time anything happened in that area was back in August.

:blink:

At least this is a freebie.

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


Boni ( ) posted Mon, 03 December 2012 at 6:30 AM

Wow, that really sucks, I count myself lucky in that case.  Well, I'll keep trying to contact Reddog9 ... it hasn't been that long.  I would do it but I have no skills in programing ... Pascal freaked me out in college. ;)

Boni

Boni



"Be Hero to Yourself" -- Peter Tork


RobynsVeil ( ) posted Mon, 03 December 2012 at 4:05 PM

In defence of RedDog9, Blender is an ever-changing landscape. There have been so many changes since 2.61, it boggles the mind. Cycles and OSL, BMesh, Retopo tools... the list goes on. Before you know it, people will have written some very clever SSS shaders and simplified existing BSDF stuff into combos ... it's hard to keep up, and I read the Easter Egg thread just to stay current (not that I understand a 10th of what's being discussed :lol: ... )

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


Boni ( ) posted Mon, 03 December 2012 at 4:09 PM

Oh, I have no quams with Reddog9, I know this is an ever changing landscape ... I am just "desperate" to get something to bring Poser into Blender.  So I'm keeping my radar out there.  I'm happy that he has worked on this and hopes that he is continuing.  I like the SSS that Blender has.  I saw an amazing demo on it. 

Boni



"Be Hero to Yourself" -- Peter Tork


klown ( ) posted Wed, 16 January 2013 at 1:05 PM

Sorry about the necropost but does the most recent version of this plug-in work with Blender 2.65? I'm not seeing the tools in the tool pannel, I do see the option to import from the File>Import section though.


Boni ( ) posted Wed, 16 January 2013 at 1:54 PM

Unfortunately, at this point, that is the conclusion we've come to.  Apparently the the latest upgrades to Blender do NOT support the Poser Tools. I've tried.  :(

Boni



"Be Hero to Yourself" -- Peter Tork


3doutlaw ( ) posted Wed, 16 January 2013 at 2:17 PM

Looks like he replied on his website that:

"I am currently unable to work on the project due to my full time job and other family duties.  I hope to continue in the future, but unfortunately, it is just not something I am able to do at this time.

Thank you for your interest in the project."


3doutlaw ( ) posted Wed, 16 January 2013 at 2:20 PM

On another note, the project is Open Source, it seems.  I wonder if there are any Python guru's here willing to adventure into it?

#=============================================================================

Simplified BSD License, see http://www.opensource.org/licenses/

#-----------------------------------------------------------------------------

Copyright (c) 2011-2012, HEB Ventures, LLC

All rights reserved.

Redistribution and use in source and binary forms, with or without

modification, are permitted provided that the following conditions are met:

*    Redistributions of source code must retain the above copyright notice,

#     this list of conditions and the following disclaimer.

*    Redistributions in binary form must reproduce the above copyright notice,

#     this list of conditions and the following disclaimer in the documentation
#     and/or other materials provided with the distribution.

etc...


RobynsVeil ( ) posted Wed, 16 January 2013 at 3:05 PM

If it is figures you wish to import into Blender, there are other options, Boni. My workflow has been:

-- Set up scene in Poser
-- Scene Inventory (copy all to a folder)
-- Import scene as obj into Poser
-- redo materials for Cycles

For Cycles, I've got basic skin sort-of worked out, coming to grips with displacement and bump, and trans-hair appears to work reasonably well for the most part (if you turn off shadows for object for the skullcap - thanks, HeddHeld).

My goals are to get figures rigged in Poser and to get into more exciting materials via OSL. I know: lofty goals. :lol:

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


3doutlaw ( ) posted Wed, 16 January 2013 at 3:23 PM

I believe Ghid-ghid was lookin to get Poser rigged into Blender as well.  He has some pretty inspiring animations done in Poser, but has seemed to find Blender's capabilities now and likes em better.  Maybe one to watch, or drop a note if he is makin any progress.


Boni ( ) posted Wed, 16 January 2013 at 3:29 PM

RobynsVell: That sounds great ... a little time consuming for an intermediate user of Poser and a novice at Blender, but I will definately look into your work-flow.

3doutlaw: Seeking a Poser/Python guru who would like to take the lead would be great. Your posts are offering up hope for a smooth transition. 

Thank you for keeping this thread alive with more information. :)

Boni

Boni



"Be Hero to Yourself" -- Peter Tork


klown ( ) posted Wed, 16 January 2013 at 8:26 PM · edited Wed, 16 January 2013 at 8:32 PM

I'm looking to export, but I'm really just scratching the surface with blender right now so my stuff is real basic and might have to keep exporting obj's. I don't even know what half the obj export options do.

 

And I saw in the python window when I tried to activate this

"Event gives an invalid window"

if that means anything.


RobynsVeil ( ) posted Fri, 23 October 2015 at 7:28 AM · edited Fri, 23 October 2015 at 7:36 AM

The last post to this thread was almost three years ago. RedDog9 seems to have gone completely off the radar. I don't have a copy of his work anymore - well, I might do, but it would be well buried in some obscure folder on a set-aside HDD - but am still interested in rendering Poser-posed figures in Blender.

Actually, my workflow has been: pose the figure in Poser, export base scene and figure to OBJ, then after import and scale in Blender, do all the refinements to the scene that Blender props gives capability to (such as grass and trees and smoke and - and - and ...) and then, put skin shaders on my figures, hair shaders on the hair and something for the clothing and then render: SeaStroll028.jpg

The process of copying texture files into a folder for use in Blender is reasonably trivial in Poser - it's that CollectSceneInventory script (under Utilities). Exporting the posed figures to OBJ: also trivial.

Appending the shaders from another .blend and applying on the figure: tedious. Until now.

I'm in process of developing a script that - with a bit of work - will apply shaders as sophisticated as you like. I.e, we can build whatever shaders you desire in script, then apply them to the figure.

This dead-simple script applies dead-simple skin textures to a V4 figure... only skins, so far. If you have Pixeluna's figure Syri and an exported figure called 'V4', you're laffin'. Otherwise, just change the names of the image and figure files and the path. Import the figure, copy and paste this script into the text editor, and after you've made figure and image file name and path changes, click "Run Script':

# simpleSkinShader002.py
# 
# Copyright (c) 23-Oct-2015, Robyn Hahn. Heaps of borrowed code.
#
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ***** END GPL LICENCE BLOCK *****

bl_info = {
    "name": "Simple skin shader for Poser Figures",
    "author": "Robyn Hahn",
    "version": (0, 1, 2),
    "blender": (2, 76, 0),
    "location": "-= Not Even a Tool For Blender, Yet =-",
    "description": "Generates an idiot-simple Cycles shader for a Poser figure",
    "warning": "early development",
    "wiki_url": "http://0.0.0.1",
    "category": "Simple Material Script"}

import bpy
import os.path

# sets renderer to Cycles
if bpy.context.scene.render.engine == 'BLENDER_RENDER':
    bpy.context.scene.render.engine = 'CYCLES'


# make sure your figure is selected and nothing else
bpy.ops.object.select_all(action='DESELECT')

# First thing to change - change 'V4' to whatever you exported the OBJ as:
selObj = bpy.data.objects['V4']
selObj.select = True


# function generates node set (shader)
def buildShader(cImgClr, cImgBmp=None):
    selMats = selObj.active_material
    
    selMats.use_nodes = True
    treeNodes = selMats.node_tree
    nodeLinks = treeNodes.links
    
    # clears existing nodes, if any
    for n in treeNodes.nodes:
        treeNodes.nodes.remove(n)
        
    # create nodes: Texture Coordinate and Mapping
    shTcd = treeNodes.nodes.new('ShaderNodeTexCoord')
    shMap = treeNodes.nodes.new('ShaderNodeMapping')
    
    # create nodes: Image Texture
    sImgC = treeNodes.nodes.get('ShaderNodeTexImage')
    if sImgC is None:
        sImgC = treeNodes.nodes.new('ShaderNodeTexImage')    
    sImgC.image = cImgClr
    
    # create nodes: Diffuse
    shDif = treeNodes.nodes.get('ShaderNodeBsdfDiffuse')
    if shDif is None:
        shDif = treeNodes.nodes.new('ShaderNodeBsdfDiffuse')
    
    # create nodes: Glossy and Mix
    shGls = treeNodes.nodes.new('ShaderNodeBsdfGlossy')
    shMix = treeNodes.nodes.new('ShaderNodeMixShader')
    
    # create node: Material Output (sort-of like PoserSurface)
    shOut = treeNodes.nodes.get('ShaderNodeOutputMaterial')
    if shOut is None:
        shOut = treeNodes.nodes.new('ShaderNodeOutputMaterial')

    # Set node locations, roughly
    shTcd.location = -850, 300
    shMap.location = -600, 300
    sImgC.location = -200, 300
    shDif.location = 0, 400
    shGls.location = 0, 200
    shMix.location = 200, 300
    shOut.location = 400, 300

    # Link nodes
    nodeLinks.new(shTcd.outputs[2], shMap.inputs[0])
    nodeLinks.new(shMap.outputs[0], sImgC.inputs[0])
    nodeLinks.new(sImgC.outputs[0], shDif.inputs[0])
    nodeLinks.new(shDif.outputs[0], shMix.inputs[1])
    nodeLinks.new(shGls.outputs[0], shMix.inputs[2])
    nodeLinks.new(shMix.outputs[0], shOut.inputs[0])
    return selMats

bpy.context.object.active_material_index = 0

"""So far, this will set the skin shader for any skin materials"""
for i in range(27):
    bPasteTex = False 
    selObj.active_material_index = i
    
    # Next thing to change: this is a Linux path to my files. Change to suit ...
    path = '/home/robyn/Documents/Blender/Projects/AllTextures/AllSkin/textures/'
    matName = selObj.active_material.name
    matType = matName[0:1]
    if matType == '3':
    # Change to your Limbs file ...
        imgFile = 'Syri_Limbs.jpg'
        bPasteTex = True
    if matType == '2':
    # Change to your Torso file ...
        imgFile = 'Syri_Torso.jpg'
        bPasteTex = True
    if matType == '1':
    # Change to your Face file ...
        imgFile = 'Syri_Face.jpg'
        bPasteTex = True
    fullImg = path + imgFile
    img = bpy.data.images.load(filepath = fullImg)

    if bPasteTex:
        newMat = buildShader(img)

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


RobynsVeil ( ) posted Fri, 23 October 2015 at 7:33 AM

Oh, and no: this is not even close to a replacement for RedDog9's fine work. If I had a copy of his script, I might have a go at making it work for Blender 2.76 - unless he was keen at grabbing the reins, again.

No, this is just a quick-n-dirty lets-throw-some-shaders-on-V4-and-see-if-they-stick... thing. 🙂

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


heddheld ( ) posted Sat, 24 October 2015 at 4:04 PM

I "might" still have it kicking around .........checked my drives(had a clean up recently went too ssd's)....but might be in the box of dvds (used to a packrat lol ) want me to look ?


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.