Forum: Poser Python Scripting


Subject: For a very enterprising Python script writer ;o)

LaurieA opened this issue on Jul 24, 2010 · 33 posts


LaurieA posted Sat, 24 July 2010 at 6:33 PM

In case you haven't seen it, there is going to be a new plugin for DazStudio to port DS scenes and materials over to LuxRender (a fantastic rendering engine). Trouble is, I don't use DS (hate it), I use Poser ;o). Now, in visiting LuxRender's website, there are already exporters from various programs to get your scenes into LuxRender. Poser is not among them and Blender is the only free modeling program that has an exporter on the list - the rest are Maya, Max, C4D, etc. (which I don't own). Here's what I'm asking: being that the Blender to Lux exporter is written in Python, if for Blender than why not for Poser? Has anyone attempted this? Anyone interested? That would just be the monkey's ass if we could render Poser scenes in Lux ;o).

Any takers? I suppose you could always examine the LuxBlend exporter for Blender to see the Python script already done there. If I were a programmer, I'd do it myself, but I have about a snowball's chance in hell of ever doing that...lol. Therefore, I'm begging on my hands and knees...

Laurie



markschum posted Sat, 24 July 2010 at 7:10 PM

After looking at the Blender script my first reaction is BLAH ! 

I may have a look at this though.


LaurieA posted Sat, 24 July 2010 at 7:17 PM

Blah! In what way? lol

I'm thinking this shouldn't be too awfully hard (at least for the right person) since LuxRender is open source and the code is available to you ;o). I could be wrong...lol.

If you can go anywhere with this, I kiss your feet in advance.

Laurie



RobynsVeil posted Sat, 24 July 2010 at 10:20 PM

Quote - Blah! In what way? lol

I'm thinking this shouldn't be too awfully hard (at least for the right person) since LuxRender is open source and the code is available to you ;o). I could be wrong...lol.

If you can go anywhere with this, I kiss your feet in advance.

Laurie

I'm in the queue right behind Laurie (kissing feet).

I suppose one could export finished scenes via PoseRay. Not sure if that would do much good for LuxRender, but I understand it does sort-of provide some sort of bridge to Blender. Mind you, all this is a total grey area for me. Grey, as in: charcoal.

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


markschum posted Sat, 24 July 2010 at 10:36 PM

The blender exporter is a VERY long python code that writes a Luxrender format file.  The Bleh was just that its very long code but a starter one for Poser might be a lot shorter. 

I will have a look when I can download the full thing.


LaurieA posted Sat, 24 July 2010 at 11:15 PM

Quote - I'm in the queue right behind Laurie (kissing feet).

I suppose one could export finished scenes via PoseRay. Not sure if that would do much good for LuxRender, but I understand it does sort-of provide some sort of bridge to Blender. Mind you, all this is a total grey area for me. Grey, as in: charcoal.

It's about as clear as mud to me too...lol.

Laurie



odf posted Sat, 24 July 2010 at 11:37 PM

If anyone ventured to write an exporter, it would be great to get someone like bagginsbill on board for converting the materials.

...just saying. :laugh:

-- I'm not mad at you, just Westphalian.


LaurieA posted Sun, 25 July 2010 at 12:22 AM

I'd help in any way I could, I just can't write code ;o). About the only thing I could do is test. Not much help in the scheme of things ;o).

Laurie



Lucifer_The_Dark posted Sun, 25 July 2010 at 1:13 AM

Count me in for the testing phase as well, I'm not too sure about the whole feet kissing thing but I'll high-five the person who gets a workable Poser script for this.

Windows 7 64Bit
Poser Pro 2010 SR1


odf posted Sun, 25 July 2010 at 2:15 AM

Quote -
I suppose one could export finished scenes via PoseRay. Not sure if that would do much good for LuxRender, but I understand it does sort-of provide some sort of bridge to Blender. Mind you, all this is a total grey area for me. Grey, as in: charcoal.

In the interest of wheel reinvention prevention, I think it may indeed be a good idea to have a look at PoseRay. I have to confess I don't know much about it. Is it open source? What language is it written in? Since it can export to various formats, I'm assuming there must be a decent exporting API, and it would be feasible to add an exporter for Lux. Probably still a lot of work, though.

-- I'm not mad at you, just Westphalian.


witchdidi posted Sun, 25 July 2010 at 5:56 AM

Count me in...I'd wash your feet so Laurie can kiss it. :O)

Be mad...until proven genius.

Sitting quietly in the corner does not make one the class fool.

- Didi


RDNA Store


markschum posted Sun, 25 July 2010 at 9:06 AM

From the forum at Luxrender there is at least one person working on a Poser version  and a few other maybes.  I finally found the file spec and it looks fairly straightforward.


LaurieA posted Sun, 25 July 2010 at 9:43 AM

Quote - > Quote -

I suppose one could export finished scenes via PoseRay. Not sure if that would do much good for LuxRender, but I understand it does sort-of provide some sort of bridge to Blender. Mind you, all this is a total grey area for me. Grey, as in: charcoal.

In the interest of wheel reinvention prevention, I think it may indeed be a good idea to have a look at PoseRay. I have to confess I don't know much about it. Is it open source? What language is it written in? Since it can export to various formats, I'm assuming there must be a decent exporting API, and it would be feasible to add an exporter for Lux. Probably still a lot of work, though.

I was thinking something a little more seamless if possible ;o). The less hoops I have to jump thru from one to the other, the less chance I have at screwing it up...lol.

Actually, I was thinking more like the lines of the Reality plugin, only for Poser. I asked the creator of that plugin if a Poser version would be forthcoming and was told nope. Not that I don't admire what the man did with the plugin - it seems to have many nice features - but I just don't use DS ;o).

Laurie



Khai-J-Bach posted Sun, 25 July 2010 at 3:57 PM

count me in for testing and helping where I can..

poseray ain't OS, but it's worth asking the programmer on that for tips I think.

this is good timing btw. now that Lux 0.7 is out, they are working to bring Hybrid rendering to Lux.

yup CPU, GPU and Network rendering. all at once. (I'm running a test of LuxGPU atm and DAMN it's fast...)



LaurieA posted Sun, 25 July 2010 at 3:58 PM

Quote - (I'm running a test of LuxGPU atm and DAMN it's fast...)

And an enormous improvement in realism over Firefly ;o).

I'd just really hate to see a nice plugin like Reality for DS (ugh) and nothing for my beloved Poser...lmao.

Laurie



Khai-J-Bach posted Sun, 25 July 2010 at 5:57 PM

oh, should have noted : the coming GPU support is for OpenCL compatible cards. so it'll be ATI / Nvidia compatible ;)



Lucifer_The_Dark posted Mon, 26 July 2010 at 4:00 AM

I suppose the GPU rendering feature isn't available to the general public at the moment then?

Windows 7 64Bit
Poser Pro 2010 SR1


Khai-J-Bach posted Mon, 26 July 2010 at 7:15 AM

it's here http://www.luxrender.net/forum/viewtopic.php?f=34&t=4277&sid=5a1ea547e533e72b1f087d22c5fbcf82 but it's roughs / proofs of concept atm...



markschum posted Mon, 26 July 2010 at 11:23 AM

k, I have a first version done but I need to get Luxrender working , it just terminates nastily at the moment. :( 

Does anyone have a lxs file for a very simple scene they could send me ?


Khai-J-Bach posted Mon, 26 July 2010 at 11:28 AM

got one for you. where you want it sent?

(tested in Lux here and renders well)



markschum posted Mon, 26 July 2010 at 12:21 PM

either attach here if its small , or mail to marks542004@yahoo.com

thats a spam trap email but I will get it :)   thanks


Khai-J-Bach posted Mon, 26 July 2010 at 12:26 PM

okies turns out it's tiny :)

basically 2 walls, 1 floor, 1 red cube and oops... the Sketchup cutout man Sang...

Edit - I may have missed 2 files.. attaching a zip of all 3 (sorry)



DarkElegance posted Fri, 06 August 2010 at 6:23 AM

just posting to keep track of the developments

https://www.darkelegance.co.uk/



Commission Closed till 2025



odf posted Fri, 06 August 2010 at 6:29 AM

I think you might also be interested in this thread in the Poser forum. 😉

-- I'm not mad at you, just Westphalian.


DarkElegance posted Fri, 06 August 2010 at 9:40 AM

I saw that(was how I found this thread) unfortunatly while I do like how fast daz renders and how it renders. I do not like the program in general(for some reason any time I load lights in it it just puts them all in a ball on the floor)
So I am working with poser and this script would be lovely :D

https://www.darkelegance.co.uk/



Commission Closed till 2025



odf posted Fri, 06 August 2010 at 9:46 AM

Just read a little further. We are implementing a Python script to for Poser that exports to Lux. It's all in the thread.

-- I'm not mad at you, just Westphalian.


DarkElegance posted Fri, 06 August 2010 at 10:03 AM

oooo in that casedashes back to that thread

https://www.darkelegance.co.uk/



Commission Closed till 2025



Kros2692 posted Wed, 18 August 2010 at 9:14 PM

Quote - In case you haven't seen it, there is going to be a new plugin for DazStudio to port DS scenes and materials over to LuxRender (a fantastic rendering engine). Trouble is, I don't use DS (hate it), I use Poser ;o). Now, in visiting LuxRender's website, there are already exporters from various programs to get your scenes into LuxRender. Poser is not among them and Blender is the only free modeling program that has an exporter on the list - the rest are Maya, Max, C4D, etc. (which I don't own). Here's what I'm asking: being that the Blender to Lux exporter is written in Python, if for Blender than why not for Poser? Has anyone attempted this? Anyone interested? That would just be the monkey's ass if we could render Poser scenes in Lux ;o).

Any takers? I suppose you could always examine the LuxBlend exporter for Blender to see the Python script already done there. If I were a programmer, I'd do it myself, but I have about a snowball's chance in hell of ever doing that...lol. Therefore, I'm begging on my hands and knees...

Laurie

Would you be so kind to take a look at my thread because I need a little bit of help from people with some kind of experiance or knowledge on working with unbiased renderers and Poser?
http://www.renderosity.com/mod/forumpro/showthread.php?thread_id=2809128
Any kind of help will be very much appreciated.


LaurieA posted Wed, 18 August 2010 at 9:39 PM

This thread may be of great interest to you. Not Indigo, but Lux. But perhaps Indigo as well someday ;o).

Happy reading - it's a long one...lol.

Laurie



wespose posted Mon, 23 August 2010 at 6:01 PM

I would looooove to have a direct xml exporter for Poser..then you just export scene in xml format open Lux and open the xml file for rendering...as of now you have to export obj's, gather maps, import into Blender, fidget with the surface shaders, convert materials in luxblend and render, it works but takes a long long time.

Daz studio to blender to lux render work flow examples.
the only difference between Daz and poser is that daz gathers the Maps for you.

http://www.renderosity.com/mod/gallery/index.php?image_id=2097031&user_id=192060&member&np

http://www.renderosity.com/mod/gallery/index.php?image_id=2093278&user_id=192060&member&np


Khai-J-Bach posted Mon, 23 August 2010 at 6:42 PM

erm Wespose? check the link - www.renderosity.com/mod/forumpro/showthread.php it's called Luxpose... and they are at a workable Alpha we've been playing with.



wespose posted Tue, 24 August 2010 at 10:26 AM

Thanks Kaibach, I found the script now Im need to figure out what I did wrong, all I get is a black viewport during the rendering process in Lux 0.7 after running  the script in poser 8 and opening the lxs. file in Lux.


LaurieA posted Tue, 24 August 2010 at 10:38 AM

Quote - Thanks Kaibach, I found the script now Im need to figure out what I did wrong, all I get is a black viewport during the rendering process in Lux 0.7 after running  the script in poser 8 and opening the lxs. file in Lux.

Try playing with the Exposure setting and the Gain in the lights tab ;o).

Laurie