Blender2indigo 0.62beta1
Hi u3dreal!
My name is Yaroslav Lebidko.
First of all sorry for my EN (it`s not my native language).
I try to use your new script
Indigo_export_62beta2_linux.py
but have some problems.
I have indigo in /home/vijt/3D/indigo_06/ folder.
1. Like I read in readme.txt, I put
IndigoWrapper.conf ===> .blender/scripts/bpydata in my PC it's
===>/usr/lib64/blender/.blender/scripts/bpydata
1a. But I changed path in this .conf file:
/home/vijt/3D/indigo_06/indigo/testscenes
# /home/homer/indigo
3. And put
:exporter.py ===> .blender/scripts/ in my PC it's
===>/usr/lib64/blender/.blender/scripts
4. In /home/vijt/3D/indigo_06/initfile.txt I have
"scenefilepath" "testscenes\default.xml"
Ok. When I try to run some experiment scene, I get in konsole:
/home/vijt/3D/indigo_06/testscenes
INDIGO EXPORT
Saving to /home/vijt/3D/indigo_06/testscenes/default.xml
processing Camera...
Skip "Lamp" (type "Lamp")
processing Object "Cylinder.015" (Mesh "Cylinder.015")...
processing Object "Cylinder.012" (Mesh "Cylinder.012")...
processing Object "Cylinder.011" (Mesh "Cylinder.011")...
processing Object "Cylinder.008" (Mesh "Cylinder.008")...
processing Object "Cylinder.006" (Mesh "Cylinder.006")...
processing Object "Cylinder.004" (Mesh "Cylinder.004")...
processing Object "Cylinder.002" (Mesh "Cylinder.002")...
processing Object "Cylinder" (Mesh "Cylinder")...
processing Object "Plane" (Mesh "Plane.002")...
processing Object "Sphere" (Mesh "Sphere")...
processing Object "Cube" (Mesh "Plane")...
Skip "Camera" (type "Camera")
Finished.
Processing time: 0.213774
/home/vijt/3D/indigo_06/testscenes/IndigoWrapper.sh
wine: could not load L"c:\\windows\\system32\\indigo.exe": Module not found
But why wine search indigo in \windows\system.....
My indigo.exe is in /home/vijt/3D/indigo_06/indigo.exe
Please! Help me!
P.S. When I'm using 0.6beta3 exporting script and manually run "wine indigo.exe" everything is OK!
My name is Yaroslav Lebidko.
First of all sorry for my EN (it`s not my native language).
I try to use your new script
Indigo_export_62beta2_linux.py
but have some problems.
I have indigo in /home/vijt/3D/indigo_06/ folder.
1. Like I read in readme.txt, I put
IndigoWrapper.conf ===> .blender/scripts/bpydata in my PC it's
===>/usr/lib64/blender/.blender/scripts/bpydata
1a. But I changed path in this .conf file:
/home/vijt/3D/indigo_06/indigo/testscenes
# /home/homer/indigo
3. And put
:exporter.py ===> .blender/scripts/ in my PC it's
===>/usr/lib64/blender/.blender/scripts
4. In /home/vijt/3D/indigo_06/initfile.txt I have
"scenefilepath" "testscenes\default.xml"
Ok. When I try to run some experiment scene, I get in konsole:
/home/vijt/3D/indigo_06/testscenes
INDIGO EXPORT
Saving to /home/vijt/3D/indigo_06/testscenes/default.xml
processing Camera...
Skip "Lamp" (type "Lamp")
processing Object "Cylinder.015" (Mesh "Cylinder.015")...
processing Object "Cylinder.012" (Mesh "Cylinder.012")...
processing Object "Cylinder.011" (Mesh "Cylinder.011")...
processing Object "Cylinder.008" (Mesh "Cylinder.008")...
processing Object "Cylinder.006" (Mesh "Cylinder.006")...
processing Object "Cylinder.004" (Mesh "Cylinder.004")...
processing Object "Cylinder.002" (Mesh "Cylinder.002")...
processing Object "Cylinder" (Mesh "Cylinder")...
processing Object "Plane" (Mesh "Plane.002")...
processing Object "Sphere" (Mesh "Sphere")...
processing Object "Cube" (Mesh "Plane")...
Skip "Camera" (type "Camera")
Finished.
Processing time: 0.213774
/home/vijt/3D/indigo_06/testscenes/IndigoWrapper.sh
wine: could not load L"c:\\windows\\system32\\indigo.exe": Module not found
But why wine search indigo in \windows\system.....
My indigo.exe is in /home/vijt/3D/indigo_06/indigo.exe
Please! Help me!
P.S. When I'm using 0.6beta3 exporting script and manually run "wine indigo.exe" everything is OK!
________________
Yaroslav Lebidko
"3D XATA"
Photorealistic computer projection & design
of architecture constructions, interiors, furniture.
Ternopil, Ukraine
e-mail: ideja@3dxata.te.ua
web: www.3DXATA.com.ua
Yaroslav Lebidko
"3D XATA"
Photorealistic computer projection & design
of architecture constructions, interiors, furniture.
Ternopil, Ukraine
e-mail: ideja@3dxata.te.ua
web: www.3DXATA.com.ua
And one more thing.
Is it possible to make in initfile.txt some path preset for textures folders and subfolders?
For example, I have near 2 Gb of textures in my HD:
/3DArchive/Maps/Animals
/Arts
...
/Stones/Granite
/Marble
/Wood/Dark
/Light
/XXX :O)
...
It's not very useful to search in subfolders & copying textures for every scene to indigo folder.
And if I work with 2 or 3 big scenes - indigo folder will be looking like big trash!
Is it possible to make in initfile.txt some path preset for textures folders and subfolders?
For example, I have near 2 Gb of textures in my HD:
/3DArchive/Maps/Animals
/Arts
...
/Stones/Granite
/Marble
/Wood/Dark
/Light
/XXX :O)
...
It's not very useful to search in subfolders & copying textures for every scene to indigo folder.
And if I work with 2 or 3 big scenes - indigo folder will be looking like big trash!
________________
Yaroslav Lebidko
"3D XATA"
Photorealistic computer projection & design
of architecture constructions, interiors, furniture.
Ternopil, Ukraine
e-mail: ideja@3dxata.te.ua
web: www.3DXATA.com.ua
Yaroslav Lebidko
"3D XATA"
Photorealistic computer projection & design
of architecture constructions, interiors, furniture.
Ternopil, Ukraine
e-mail: ideja@3dxata.te.ua
web: www.3DXATA.com.ua
Hi u3dreal,
I was looking for your last version of the script but when i download "here it is..." link in your first post i get an old version from 3.1.07 ????
I feel a bit stupid as it seems i missed a new link somewhere... could you please repost lastest script... Thx man
by thw way? For new v0.7t1? As blenders node-materials are not yet accessible through python API it's difficult to add "blend" and "media" features. "normal_smoothing"-tag in meshs and "ior"-tag in phong materials could be a first start for v07. I think we need something like a internal constant in the script that defines indigo version to export for... so we could use same script for exporting v06 and v07 XMLs... what do you think about???
Thx to all
I was looking for your last version of the script but when i download "here it is..." link in your first post i get an old version from 3.1.07 ????
I feel a bit stupid as it seems i missed a new link somewhere... could you please repost lastest script... Thx man
by thw way? For new v0.7t1? As blenders node-materials are not yet accessible through python API it's difficult to add "blend" and "media" features. "normal_smoothing"-tag in meshs and "ior"-tag in phong materials could be a first start for v07. I think we need something like a internal constant in the script that defines indigo version to export for... so we could use same script for exporting v06 and v07 XMLs... what do you think about???
Thx to all
Solution for the problem
Hi, I'm Hans. This exporter is nice, and I know it doesn't work well with " " in the path. So I changed the code...
It'll work well (WinXP Pro SP2).
The changed code file all: http://blender.jp/modules/newbb/downloa ... 8443029000
excuse if my English is bad.
Code: Select all
def launchIndigo(filename):
# get blenders 'bpydata' directory
datadir=Blender.Get("datadir")
# open 'IndigoWrapper.conf' and read the first line
f = open(datadir + '/IndigoWrapper.conf', 'r+')
ic=f.readline()
f.close()
# create 'IndigoWrapper.cmd' and write two lines of code into it
f = open(datadir + "\IndigoWrapper.cmd", 'w')
f.write("cd /d " + ic + "\n")
# f.write("start /b /belownormal Indigo.exe %1 -t " + str(Threads.val) + "\n")
# Modified by Hans.P.G. (2007/01/10) >>>
f.write("start /b /belownormal Indigo.exe \"" + filename + "\" -t " + str(Threads.val) + "\n")
# Modified by Hans.P.G. (2007/01/10) <<<
f.close()
# call external shell script to start Indigo
# cmd= "\"" + datadir + "\IndigoWrapper.cmd " + filename + "\""
# print cmd
# os.system(cmd)
# Modified by Hans.P.G. (2007/01/10) >>>
cmd= "start /d \"" + datadir + "\" IndigoWrapper.cmd"
os.system(cmd)
# Modified by Hans.P.G. (2007/01/10) <<<
The changed code file all: http://blender.jp/modules/newbb/downloa ... 8443029000
excuse if my English is bad.
Re: Solution for the problem
Hello Hans,
One little other thing I found is that when ToneMapping is set to none or in other words linear, the line in the export script for writing the exposure value should read: <scale>%.6f</scale> instead of %.3f, so it should look like:
Greetings from overcast Amsterdam,
Jan
Yup, that's the way to go. One point though, to make it all as OS undependant as possible I've rearranged the launch function as follows:Hans wrote:Hi, I'm Hans. This exporter is nice, and I know it doesn't work well with " " in the path. So I changed the code...
Code: Select all
def launchIndigo(filename):
# get blenders 'bpydata' directory
datadir=Blender.Get("datadir")
# open 'IndigoWrapper.conf' and read the first line
f = open(os.path.join(datadir, 'IndigoWrapper.conf'), 'r+')
ic=f.readline()
f.close()
# create 'IndigoWrapper.cmd' and write two lines of code into it
f = open(os.path.join(datadir, 'IndigoWrapper.cmd'), 'w')
f.write("cd /d " + ic + "\n")
f.write("start /b /belownormal Indigo.exe "%1" -t " + str(Threads.val) + "\n")
f.close()
# call external shell script to start Indigo
cmd = os.path.join(datadir, 'IndigoWrapper.cmd') + ' "' + filename + '"'
print cmd
os.system(cmd)
Code: Select all
file.write("\t<tonemapping>\n")
file.write("\t\t<linear>\n")
file.write("\t\t\t<scale>%.6f</scale>\n" %exposure)
file.write("\t\t</linear>\n")
file.write("\t</tonemapping>\n\n")
Jan
Who is online
Users browsing this forum: No registered users and 37 guests