yablex= AttributeError: Lens

anybody could tell me how i get yable x working? i cannot get any light inside my scene accepted by yablex.

mac os x python 2.2 latest yablex and yafray

Run Python script “yablex.py” …
yablex.py:1921: SyntaxWarning: name ‘sunbg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘hdribg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘normbg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘constbg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘hdribg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘normbg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘constbg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘sunbg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘normbg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘hdriprobe’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘hdriprobe’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘constbg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘sunbg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘hdribg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘normbgimg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘normbgimg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘pathtrace’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘hemi’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘toposphlD’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘toposphlC’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘fogr’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘fogb’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘fogg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘fogr’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘fogg’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘fogb’ is used prior to global declaration
yablex.py:1921: SyntaxWarning: name ‘exposure’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘txmenu’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘txmenu’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘texmenu’ is assigned to before global declaration
yablex.py:3006: SyntaxWarning: name ‘mixmode’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘addmode’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘mulmode’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘mixmode’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘mulmode’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘addmode’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘oth_mixmode’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘oth_addmode’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘oth_mulmode’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘oth_mixmode’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘oth_mulmode’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘oth_addmode’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘selcol1’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘selcol2’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘marbleselcol1’ is used prior to global declaration
yablex.py:3006: SyntaxWarning: name ‘marbleselcol2’ is used prior to global declaration
yablex.py:3213: SyntaxWarning: name ‘Layersw’ is used prior to global declaration
Blender Version 228
/Users/claaskuhnen/Desktop/YFexport2 already exists
/Users/claaskuhnen/Desktop/YFexport2/Archive already exists
/Users/claaskuhnen/Desktop/YFexport2/Settings already exists
/Users/claaskuhnen/Desktop/YFexport2/HEAD3.3 already exists
/Users/claaskuhnen/Desktop/YFexport2/HEAD3.3/Materials already exists
/Users/claaskuhnen/Desktop/YFexport2/HEAD3.3/Materials/Textures already exists
/Users/claaskuhnen/Desktop/YFexport2/HEAD3.3/Meshes already exists
Running Operating System: posix
startGUI
Clicked Export
<Getting List of Meshes>

skipping

skipping

skipping

skipping

skipping

skipping

skipping

skipping

skipping

skipping

skipping

Got Meshes

No lights found
Adding Scene info:

Resolution: 320, 240

Traceback (most recent call last):
File “yablex.py”, line 1961, in bevent
File “yablex.py”, line 3259, in export
File “yablex.py”, line 5548, in exporttoyafray
AttributeError: Lens

I’m having this same problem…

You need the latest version of yablex for Blender 2.28 as the Python API has changed to allow more standard scripting across the board.

You can get it in the Python forum here.

BgDM

Thanks a lot, I did this last night, it worked like a charm. Now comes the hard part…figuring out Yable/Yafray!!!

yable isn’t hard to use just play round with everything and start of with simple things.
just a few light tips.
For all lights ex. sun lights a power value of about 70-130 should be enough
For sun lights it’s about the same as blender lights .8-1.5

I want GUI for yafray to be update :x or wait for the integration :stuck_out_tongue:

oh yeah, the 'attributeError: lens ’ is caused by another object other than a camera set as a camera (Ctrl 0)

i want it as well ,some of the new stuff in 0.0.5 looks good
like the new texture mapping, but i don’t think yafrat will be updated any time soon.

From kino3d yable forums about an update

Hi
just you to know the last version is not the one on the python forum

this is after the one modified by jms
http://kino3d.com/forum/files/yablex20030826-leope.zip

ciao
kino