Instant render launch from Linux

Discussion related to the 'LuxBlend' Blender 2.4+ python exporter script.

Moderators: Ratow, SATtva, coordinators

Instant render launch from Linux

Postby lempour » Sat Nov 03, 2007 10:11 am

Hi,
I just want to share, don't really know if this is the right place to post in, but nevermind.
I've been playing with the luxblend exporter and I missed the instant render button, so I enabled it for linux users too, here's the diff from the latest CVS.

regards
Lempour

EDIT: oops, seems it did not get attached, sorry
copy&pasted:

Code: Select all
869c869,876
<    # get blenders 'bpydata' directory
---
>         
>     if os.uname()[0]== "Linux":
>         datadir = Blender.Get("datadir")
>         cmd = "luxrender " + filename
>    os.popen(cmd)
>
>     else:
>    # get blenders 'bpydata' directory   
892,898d898
< def launchLinLux(filename):
<     datadir = Blender.Get("datadir")
<     cmd = "luxrender " + filename
<     os.open(cmd)
<       
<
<
924,925c924,925
<    #if ExecuteLux.val == 1:
<    #   launchLux(filename)
---
>    if ExecuteLux.val == 1:
>       launchLux(filename)
1434,1435c1434,1435
<    #ExecuteLux = Draw.Toggle("Run", evtNoEvt, 10, 5, 30, 10, ExecuteLux.val, "Execute Lux and render the saved .lxs file")
<    #DefaultExport = Draw.Toggle("def",evtNoEvt,40,5,30,10, DefaultExport.val, "Use default.lxs as filename")
---
>    ExecuteLux = Draw.Toggle("Run", evtNoEvt, 10, 5, 30, 10, ExecuteLux.val, "Execute Lux and render the saved .lxs file")
>    DefaultExport = Draw.Toggle("def",evtNoEvt,40,5,30,10, DefaultExport.val, "Use default.lxs as filename")
1455,1463c1455,1467
<       #if DefaultExport == 0:
<          Blender.Window.FileSelector(save_still, "Export", newFName('lxs'))
<       #else:
<       #   datadir=Blender.Get("datadir")
<       #   f = open(datadir + '/LuxWrapper.conf', 'r+')
<       #   ic=f.readline()
<       #   f.close()
<       #   filename = ic + "\default.lxs"
<       #   save_still(filename)
---
>       
>       if DefaultExport == 0:
>                         Blender.Window.FileSelector(save_still, "Export", newFName('lxs'))
>       elif os.uname()[0] == "Linux":
>          filename = "./default.lxs"
>          save_still(filename)
>       else:
>          datadir=Blender.Get("datadir")
>          f = open(datadir + '/LuxWrapper.conf', 'r+')
>          ic=f.readline()
>          f.close()
>          filename = ic + "\default.lxs"
>          save_still(filename)
Last edited by lempour on Sat Nov 03, 2007 1:44 pm, edited 1 time in total.
lempour
 
Posts: 190
Joined: Mon Oct 29, 2007 9:12 am

Re: Instant render launch from Linux

Postby tomb » Sat Nov 03, 2007 10:12 am

Hi,

Thanks! :) Could pm zcott the diff?

Tom
User avatar
tomb
Developer
 
Posts: 1918
Joined: Thu Oct 11, 2007 4:23 pm
Location: Oslo, Norway

Re: Instant render launch from Linux

Postby zcott » Thu Nov 08, 2007 3:05 pm

The diff is not for any version I'm aware of...
I enabled the functionality manually. It should work in both windows and linux now, provided that the luxrender executable is in the path...
User avatar
zcott
Developer
 
Posts: 127
Joined: Fri Oct 05, 2007 8:52 pm


Return to LuxBlend (Blender Exporter)

Who is online

Users browsing this forum: hans2540 and 1 guest