Forum: Poser - OFFICIAL


Subject: The LuxPose Project - Alpha Stage

Khai-J-Bach opened this issue on Aug 27, 2010 · 1684 posts


KrashWerks posted Mon, 13 September 2010 at 2:01 PM

Running into this error when attempting to run the PoserLuxExporter python.  Any help would be appreciated. 

Compiling C:UsersPublicDocumentsPoser 8 ContentRuntimePythonposerScriptsscriptsMenuLuxPoseluxmaticnodes.pyc
Compiling C:UsersPublicDocumentsPoser 8 ContentRuntimePythonposerScriptsscriptsMenuLuxPoseluxmaticnodes.pyc
Loading  pydough.geometry_export
Loading  pydough.geometry

Loading  pydough.hair

Loading  pydough.from_poser
Loading  pydough.to_lux
Loading  pydough.geometry

Loading  pydough.hair

Loading  pydough.from_poser
Loading  pydough.to_lux
Loading  pydough.geometry_export
Loading  pydough.geometry

Loading  pydough.hair

Loading  pydough.from_poser
Loading  pydough.to_lux
Compiling C:UsersPublicDocumentsPoser 8 ContentRuntimePythonposerScriptsscriptsMenuLuxPoseluxmaticnodes.pyc
Loading  pydough.geometry_export
Loading  pydough.geometry

Loading  pydough.hair

Loading  pydough.from_poser
Loading  pydough.to_lux
Compiling C:UsersPublicDocumentsPoser 8 ContentRuntimePythonposerScriptsscriptsMenuLuxPoseluxmaticnodes.pyc
LuxPose Version alpha 1.22, exporting files to C:UsersPublicDocumentsPoser 8 ContentRuntimePythonposerScriptsscriptsMenuLuxPosetoLux3test2.lxs

Using sampler metropolis
Using integrator bidirectional
Using accelerator kdtree
Traceback (most recent call last):
  File "C:UsersPublicDocumentsPoser 8 ContentRuntimePythonposerScriptsscriptsMenuLuxPosePoserLuxExporter.py", line 222, in ?
    ExportScene(scene, globalParameters).write(f)
  File "C:UsersPublicDocumentsPoser 8 ContentRuntimePythonposerScriptsscriptsMenuLuxPoseworkersPoserLuxExporter_workers.py", line 465, in write
    ExportLight(light, self.globalParameters).write(f)
  File "C:UsersPublicDocumentsPoser 8 ContentRuntimePythonposerScriptsscriptsMenuLuxPoseworkersPoserLuxExporter_workers.py", line 303, in write
    self.convert2Lux()
  File "C:UsersPublicDocumentsPoser 8 ContentRuntimePythonposerScriptsscriptsMenuLuxPoseworkersPoserLuxExporter_workers.py", line 278, in convert2Lux
    gain *= .00005 / 8
UnboundLocalError: local variable 'gain' referenced before assignment