Forum: Poser - OFFICIAL


Subject: New Reality (lux render) Plugin over at Daz...time for Poser Plugin Update?

Ridley5 opened this issue on Jul 26, 2010 · 1724 posts


bagginsbill posted Tue, 24 August 2010 at 2:53 AM

I'm almost done with my new framework. I'm exhausted, though and have to sleep. I'll post it tomorrow.

As an example, this is the Camera exporter in its entirety.

outputFile ='*.lxc'

def prepare():
 cam = scene.CurrentCamera()
 focalLength = getPP(cam, 'Focal')
 data.Camera.Poser.focalLength = focalLength
 

def emit():
 cam = scene.CurrentCamera()
 pos = cam.WorldDisplacement()
 camFocalLength, r, p, y = getPP(cam, 'Focal', 'roll', 'pitch', 'yaw')
 up = rollPitchYaw((0, 1, 0), r, p, y) # up vector
 la = rollPitchYaw((0, 0, -1), 0, p, y) # look-at vector
 focal = choose(overrideFocalLength, focalLength, camFocalLength)
 fov = 360 / pi * atan(12.75 / focal)

 lux('LookAt %s %s %s', pos, add3(pos, la), up)
 lux.typeof.Camera = cameraType
 if cameraType == 'Perspective':
  lux.fov = fov
  if fStop > 0:
   lux.lensradius = 0.0175 / fStop
   lux.autofocus = autoFocus
   if not autoFocus:
    lux.focaldistance = focalDistance
 


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)