Well there are some options in the “image to plane” addon that i would love to use in the general “obj import” addon.
Is there any way to copy the part of the script into the normal obj importer?
The Part that i am needing is (i hope / think)
t = bpy.types.Material.bl_rna.properties[“use_shadeless”]
use_shadeless = BoolProperty(name=t.name, default=False, description=t.description)
use_transparency = BoolProperty(name="Use Alpha", default=False, description="Use alphachannel for transparency")
t = bpy.types.Material.bl_rna.properties["transparency_method"] items = tuple((it.identifier, it.name, it.description) for it in t.enum_items) transparency_method = EnumProperty(name="Transp. Method", description=t.description, items=items)
t = bpy.types.Material.bl_rna.properties["use_transparent_shadows"] use_transparent_shadows = BoolProperty(name=t.name, default=False, description=t.description)
So that the premultiply and shadow options are available in the obj importer.