Guest User

Untitled

a guest
Jul 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. mat = bpy.data.materials['Material']
  2. tex = bpy.data.textures.new("SomeName", 'IMAGE')
  3. slot = mat.texture_slots.add()
  4. slot.texture = tex
  5.  
  6. tex = bpy.data.textures.new("SomeName", 'IMAGE')
Add Comment
Please, Sign In to add comment