[Tutor] writing the correct map names
Paul Coones
paulcoones at comcast.net
Sat Sep 15 01:51:13 CEST 2007
# Test for maps
#if faceUV = 0:
texture_map = "NULL.TIF"
if me.hasVertexUV():
print "must be a texture map!"
texture_map = current_obj.name
texture_map = texture_map + ".TIF"
smf_file.write(str(texture_map + '\n'))
#if not map:
bump_map = '"null.bump.tif"'
if me.hasVertexUV():
print"must be a bump map!"
bump_map = current_obj.name
bump_map = bump_map + "_bump.TIF"
smf_file.write(str(bump_map + '\n'))
1.000000,0.5000000,0.5000000,0,1,NULL.TIF
"null.bump.tif"
-7.028856,3.349522,4.785803,0.333323,0.666646,
-0.666646,0.000000,0.000000
When I do have a mapped object, the script is not putting in the map
name nor the bump map name.
What am I missing? The python script is for the 3D graphics program
Blender, which is free.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 978 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tutor/attachments/20070914/9158138c/attachment-0001.bin
More information about the Tutor
mailing list