Blender2indigo 0.62beta1

Announcements, requests and support regarding the Blender Indigo export script
User avatar
jansan
Posts: 78
Joined: Sun Jul 02, 2006 3:52 am
Location: Dominican Rep.

Post by jansan » Tue Jan 09, 2007 5:51 am

As I can obtain DOF? .
Where this the parameter ¨Aperture Radius¨?
in New exporter Blender2indigo 0.62beta1

Edit: Fstop must work?

User avatar
afecelis
Posts: 749
Joined: Tue Aug 01, 2006 4:14 am
Location: Colombia
3D Software: Blender
Contact:

Post by afecelis » Tue Jan 09, 2007 7:09 am

yup, check the help tips:
Image
then it's just a matter of trial and error :wink:
AMD Ryzen 7 1800 @3.6ghz, 32GB ddr4 3200 mhz Ram, Nvidia RTX 3060 12GB, Win10, Blender/Sketchup/Modo/Cinema4d

User avatar
jansan
Posts: 78
Joined: Sun Jul 02, 2006 3:52 am
Location: Dominican Rep.

Post by jansan » Wed Jan 10, 2007 1:41 am

Thanks Afecelis

User avatar
tungee
Posts: 482
Joined: Mon Jul 03, 2006 8:17 pm
Location: Gießen Germany

Post by tungee » Wed Jan 10, 2007 10:15 am

Nice work U3dreal,
please make an c4d exporter for :P
Music has the right to children!

User avatar
Pinko
Posts: 58
Joined: Wed Aug 09, 2006 11:06 pm
Location: Italy

Post by Pinko » Wed Jan 10, 2007 11:21 pm

tungee wrote:Nice work U3dreal,
please make an c4d exporter for :P

Very good idea!!! U3dreal save us!!!
Pinko. :wink:

User avatar
u3dreal
Posts: 346
Joined: Sun Jul 02, 2006 10:36 am

Post by u3dreal » Thu Jan 11, 2007 12:28 am

;) ;) ;)

well since i don't have and use C4D ...

there is no need for me... ;)

Don't get me wrong but i'm just sharing the tools i create for my use..
i'm not a exorterwriter for free...;)
cheers

u3dreal ;)

User avatar
YaroslavL
Posts: 34
Joined: Wed Dec 27, 2006 7:20 am
Location: Ukraine
Contact:

Post by YaroslavL » Thu Jan 11, 2007 12:31 am

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!
________________
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

User avatar
YaroslavL
Posts: 34
Joined: Wed Dec 27, 2006 7:20 am
Location: Ukraine
Contact:

Post by YaroslavL » Thu Jan 11, 2007 2:56 am

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!
________________
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

zuegs
Posts: 380
Joined: Tue Jun 27, 2006 5:46 pm
Location: switzerland

Post by zuegs » Thu Jan 11, 2007 3:00 am

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

User avatar
Hans
Posts: 14
Joined: Thu Jan 11, 2007 3:58 am
Location: Japan
Contact:

Solution for the problem

Post by Hans » Thu Jan 11, 2007 4:16 am

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(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) <<<
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.

User avatar
Pinko
Posts: 58
Joined: Wed Aug 09, 2006 11:06 pm
Location: Italy

Post by Pinko » Fri Jan 12, 2007 10:48 pm

somebody knows how i can try the new release 0.7t1 with Blender???
Pinko. :cry:

zuegs
Posts: 380
Joined: Tue Jun 27, 2006 5:46 pm
Location: switzerland

Post by zuegs » Sat Jan 13, 2007 1:31 am

Stay tuned... ;) blender exporter is in work i think ;) ... currently you need to do some hardcoding in XML to use 0.7t1

User avatar
Pinko
Posts: 58
Joined: Wed Aug 09, 2006 11:06 pm
Location: Italy

Post by Pinko » Sat Jan 13, 2007 2:12 am

Ok Zuegs I hope soon
I m not able to edit xml file by hand I don't understand where apply the changes in the code...
Exc for my poor english.
Pinko. :wink:

Jananton
Posts: 66
Joined: Sun Dec 31, 2006 12:56 pm
Location: Amsterdam, The Netherlands

Re: Solution for the problem

Post by Jananton » Sat Jan 13, 2007 3:03 am

Hello Hans,
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...
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:

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)
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:

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")
Greetings from overcast Amsterdam,

Jan

User avatar
afecelis
Posts: 749
Joined: Tue Aug 01, 2006 4:14 am
Location: Colombia
3D Software: Blender
Contact:

Post by afecelis » Sat Jan 13, 2007 4:10 am

great, Hans and Jan! :wink:
Jan, could you upload your mod file as well?
AMD Ryzen 7 1800 @3.6ghz, 32GB ddr4 3200 mhz Ram, Nvidia RTX 3060 12GB, Win10, Blender/Sketchup/Modo/Cinema4d

Post Reply
113 posts

Who is online

Users browsing this forum: No registered users and 37 guests