# 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.
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
