working script list on os x and 2.28

for the mac users here:

the easiest way to get the scripts working is to put in the pythonpath directly into the script so blender does not get confused.

import sys
sys.path.extend([’’, ‘/usr/lib/python2.2’, ‘/usr/lib/python2.2/plat-darwin’, ‘/usr/lib/python2.2/lib-tk’, ‘/usr/lib/python2.2/lib-dynload’, ‘/usr/lib/python2.2/site-packages’])

fiber13 needs the dynoise.py file compied directly into the contents>MacOS folder inside the Blender app package.

scripts that work fine:

fiber13
exporter (yafray)
makehuman
objIO_228 (thankx teeth)
Pyshell

more will be updated in that post

Did you try this with Povanim?

Regards

no not yet but i also do not use povray since it does not worlk on os x at the moment or is there a new version?

http://users.skynet.be/smellenbergh/

You can use MacMegaPov1.0 instead.
There is a thread on the povray’s newsgroups :
news://news.povray.org/povray.macintosh

Povanim exports also files for Megapov1.0
(for megapov0.7 and mlpov too, but not yet on mac,
I suppose).

Regards.

[quote]
scripts that work fine:

exporter (yafray)

[quote]

Yafray ! telll me how then please.

I get it to work but noooo mesh or XML data is created just a bunch of files.

I keep forgetting to test Povanim. I will test now.

Add displacement map to the list.

Hey how do I compile the povanim228_03.pyc script as the other script instructs.

I keep getting “import povanim228_03”

as the error

Am I just a fool and this is an easy question to answer ?

Run Python script “truedisp26-07-2003.py” …
Using a clean Global Dictionary.
Run Python script “lanc_povanim228_03.py” …
Traceback (most recent call last):
File “lanc_povanim228_03.py”, line 71, in ?
ImportError: No module named povanim228_03

i have not tested povanim yet. i guess that the problem with the miussing module i spythomn rel;ated. i hade missing fiber13 modlue as well.

adding import sys
sys.path.extend[(here comes you python path)]

solved the rpoblem for me

go to the yafray forum and insid ethe exporter thread there is a new very low feature script exporter named. this one works.

tell me if that fails for you!

It is necessary to save the blender file before
using the script. You can try this:


import Blender
#=======
# Text in povanim...
#=======
import sys
sys.path.extend(['', '/usr/lib/python2.2', '/usr/lib/python2.2/plat-darwin', '/usr/lib/python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload', '/usr/lib/python2.2/site-packages']) 
# correction du 05/23 

try:
  import nt
  os=nt
  os.sep='\\'
except:
  import posix
  os=posix
  os.sep='/'
# correction du 05/23 /fin >

L=sys.path
ls=Blender.Get('filename')

# correction du 05/23 Quit
k0=ls.split(os.sep)
ls=ls.replace(k0[len(k0)-1],'')
# correction du 05/23 /fin >

if ls not in sys.path:
   sys.path.append(ls)

print sys.path

Can you return the printed sys.path ?

Thanks.

Ok i get this from the small script above Jms

IndentationError: expected an indented block
Using a clean Global Dictionary.
Run Python script “testpyu.py” …
Traceback (most recent call last):
File “testpyu.py”, line 16, in ?
NameError: name ‘Blender’ is not defined

I am still testing the other stuff, but boy this all takes so much time.

Cek how did you get the Exporter to work. Was it just the added
script line? I am still testing. But BOY ! I hope that it works I want to
start playing with HDRI. !

This needs to be inserted at the beginning of povanim…

I am still testing the other stuff, but boy this all takes so much time.

Just do what you can… :frowning:

:stuck_out_tongue: Heh Jms getts a work out from us script kiddies. :stuck_out_tongue:

Ok I pasted the code right under the first amout of ipomt calls
in the pov script ( and saved it closed it and reopened it)

Log :
Using a clean Global Dictionary.
Run Python script “lanc_povanim228_03.py” …
[’/sw/lib/python2.2/’, ‘/sw/lib/python2.2/plat-darwin’, ‘/sw/lib/python2.2/lib-tk’, ‘/sw/lib/python2.2/lib-dynload’, ‘/Users/joiceannhall/Desktop/apps not new/blender.app/Contents/MacOS’, ‘’, ‘’, ‘/usr/lib/python2.2’, ‘/usr/lib/python2.2/plat-darwin’, ‘/usr/lib/python2.2/lib-tk’, ‘/usr/lib/python2.2/lib-dynload’, ‘/usr/lib/python2.2/site-packages’, ‘/Users/joiceannhall/Desktop/big test stuff/’]
Traceback (most recent call last):
File “lanc_povanim228_03.py”, line 99, in ?
ImportError: No module named povanim228_03

It looks like it can not find Povanim. ? Should I place it in the home dir ?

I will report back in a few hours. ^v^ skateboard time !

The file dir seems to be:
“/Users/joiceannhall/Desktop/big test stuff/”
You can try this place or the blender binary dir (if there is something like
that)…

Score ?
YaY ! I have Jms gui, but crash.
First I read that it does not work on 2.28.
So I tested with 2.23 still no go.
I do get camampov.inc and lampmpov.inc but only cama has any code, very little .

And Cek can you please help with the Exporter Yablex ?
I see to much code make brain go splay atstjheuhfe

Mega Pov ? Is that needed ? I have Pov-Ray Mac 3.5

Crash report.

Using a clean Global Dictionary.
Run Python script “lanc_povanim228_03.py” …
[’/sw/lib/python2.2/’, ‘/sw/lib/python2.2/plat-darwin’, ‘/sw/lib/python2.2/lib-tk’, ‘/sw/lib/python2.2/lib-dynload’, ‘/Users/joiceannhall/Desktop/apps not new/blender.app/Contents/MacOS’, ‘’, ‘’, ‘’, ‘/usr/lib/python2.2’, ‘/usr/lib/python2.2/plat-darwin’, ‘/usr/lib/python2.2/lib-tk’, ‘/usr/lib/python2.2/lib-dynload’, ‘/usr/lib/python2.2/site-packages’, ‘/Users/joiceannhall/Desktop/big test stuff/’]
[‘Armature’, ‘BGL’, ‘Camera’, ‘Curve’, ‘Draw’, ‘Effect’, ‘Get’, ‘Image’, ‘Ipo’, ‘IpoCurve’, ‘Lamp’, ‘Material’, ‘Metaball’, ‘NMesh’, ‘Object’, ‘Redraw’, ‘ReleaseGlobalDict’, ‘Scene’, ‘Set’, ‘Text’, ‘Types’, ‘Window’, ‘World’, ‘doc’, ‘name’, ‘bylink’, ‘event’, ‘link’, ‘sys’]
[‘Armature’, ‘BGL’, ‘Camera’, ‘Curve’, ‘Draw’, ‘Effect’, ‘Get’, ‘Image’, ‘Ipo’, ‘IpoCurve’, ‘Lamp’, ‘Material’, ‘Metaball’, ‘NMesh’, ‘Object’, ‘Redraw’, ‘ReleaseGlobalDict’, ‘Scene’, ‘Set’, ‘Text’, ‘Types’, ‘Window’, ‘World’, ‘doc’, ‘name’, ‘bylink’, ‘event’, ‘link’, ‘sys’]
colors
pimages
pigment
finish
normal
texture
interior
media
material
transform
Oimageslist
nor_mapnum
text_maplist
patternslist
materiallist
pig_maplist
interiorlist
nor_maplist
colorslist
pimageslist
texturelist
transformlist
normallist
col_mapnum
col_maplist
finishlist
col_mapbut
nor_mapbut
reflectlist
pigmentlist
medialist
109 353 100
<module ‘posix’ (built-in)>
That’s begun!! :slight_smile:
Blender to Povray Anim Effects Exporter
alpha version, revision 2.28-02: july, 2003
jm soler, 02/2002->07/2003

Don’t know exactly with what os we run but we are running /
[’/sw/lib/python2.2/’, ‘/sw/lib/python2.2/plat-darwin’, ‘/sw/lib/python2.2/lib-tk’, ‘/sw/lib/python2.2/lib-dynload’, ‘/Users/joiceannhall/Desktop/apps not new/blender.app/Contents/MacOS’, ‘’, ‘’, ‘’, ‘/usr/lib/python2.2’, ‘/usr/lib/python2.2/plat-darwin’, ‘/usr/lib/python2.2/lib-tk’, ‘/usr/lib/python2.2/lib-dynload’, ‘/usr/lib/python2.2/site-packages’, ‘/Users/joiceannhall/Desktop/big test stuff/’]
Python: 2.2.3 (#1, 06/02/03, 18:17:34)
[GCC Apple cpp-precomp 6.14]
photons are “on”!
Did init
Rename object
0
no tohubohu, analyse : Lamp no tohubohu, analyse : Lamp.001 no tohubohu, analyse : Lamp.002 no tohubohu, analyse : Plane.003 {‘mat’: [], ‘img’: []}
You are in Expert mode but there is a DataError:
Plane.003 has no valid face to be exported.

no tohubohu, analyse : Suzanne {‘mat’: [0], ‘img’: []}
no tohubohu, analyse : Circle {‘mat’: [], ‘img’: []}
You are in Expert mode but there is a DataError:
Circle has no valid face to be exported.

0
patch 3
Jul 31 18:13:36 Joiceann-Halls-Computer crashdump: Crash report written to: /Users/joiceannhall/Library/Logs/CrashReporter/blender.crash.log

Woa! Fiber does work ! I did not add the extra code, just droped the file into MacOS, like you said. Now tell me about the exporter,
Did you try it with Wings3d , They have a nicer uvunwrap .

^v^ YaY! OSX almost has PuRe ! ! PoweWr! ! ! !! ! ! ! ! !! ! ! ! ! !! ! 1 1! !

arg its name is extractor not exporter :slight_smile:
there is a new version now:
url: http://www.gvc.net/~jmatthews/extractor/index.php

lights and subsurf are supported but now.

wings3d has a uv unwrapper inside? mh let me launch it.
mh OK SOMEHOW WINGS TELL SME ALLWAYS THAT A CLOSED SURFACE
cannot be mapped when i hit continue and select eater unfold or wrap…

any clue?

Yeah wings, does. But… It is really freaky confusing.

You must select some of it and select segment by> Projection > or feature

Then Press continue unwrapping. And even then it is very ify.
I am rakking my brain on how to make it work. And the manual is of little help.

Have you figured out how to make the UVX program thing work ?

Are you sure that it is the povanim228_04 version?

Hi, I am new to blender and I am testing out python functionality. I have the “blender book” and I am testing out the python script in there on 2.28 on my OS X box. Can someone tell me why I am getting errors on the following script:

import Blender
import sys
sys.path.extend([’’, ‘/usr/lib/python2.2’, ‘/usr/lib/python2.2/plat-darwin’, ‘/usr/lib/python2.2/lib-tk’, ‘/usr/lib/python2.2/lib-dynload’, ‘/usr/lib/python2.2/site-packages’])
from Blender import NMesh, Object
from Blender.NMesh import Col
from math import sin,cos,sqrt,exp

xw=0.5
yw=0.5
xmax=36
ymax=36

me2 = NMesh.GetRaw()

for y in range(0,ymax):
for x in range(0,xmax-1):
r=sqrt((x-xmax/2)**2+(y-ymax/2)**2)
z=sin(r*xw)cos(ryw)*exp(-r/5)*10
v=NMesh.Vert(x,y,z)
me2.verts.append(v)

for y in range(0,ymax-1):
for x in range(0,xmax-1):
a=x+y*ymax
f=NMesh.Face()
f.v.append(me2.verts[a])
f.v.append(me2.verts[a+ymax])
f.v.append(me2.verts[a+ymax+1])
f.v.append(me2.verts[a+1])
me2.faces.append(f)

NMesh.PutRaw(me2,“Function”,1)
Bloender.Redraw()

I get the error on this line:
f.v.append(me2.verts[a+ymax])
why would that cause an error when the line above it doesnt cause an error. Can someone else get this script running? IF it needs to be changed, what should be changed? Thanks

there is no more Nmesh mod.

That is all that I can help you with, I will update the list for cek in a few days.

Use this tut’ instead
http://jmsoler.free.fr/didacticiel/blender/tutor/english/python_script03.htm
http://jmsoler.free.fr/didacticiel/blender/tutor/english/python_script04.htm
and this python script to test the creation of a mesh under blender 228:
http://jmsoler.free.fr/util/python_ressources/pythontutperso03.py