Hallo together!
I have made some new Adjusment for Blender Editing and installed many Addons,
to have Visual remember and quick overview of the powerful Features in Blender.
And i also wrote new Addons for UV Editing:
> UV Tools
> Image Tools      (see appendix)
 
This Addons have now new Functions, they rely only on the existing functions.
 
Maybe it would be a inspiration for something new.)
 
The Link to the Gallery of my Adjustments
best regards
 
Marvin
bl_info = {
    'name': "UV Tools",
    'author': "MKB",
    'version': (1, 0, 0),
    'blender': (2, 6, 9),
    'location': "IMAGE_EDITOR > UI",
    'description': "UV Tools",
    'category': 'UV'}




import bpy

class uvtools(bpy.types.Panel):
    bl_space_type = 'IMAGE_EDITOR'
    bl_region_type = 'PREVIEW'
    bl_label = "UV Tools"


  
    def draw(self, context):
        layout = self.layout
        
        
        
        
#--Transform-------------------------------------------------------------------





        col = layout.column(align=True)
        col.label(text="Transform:")
        
        row = col.row(align=True)


        row.operator("transform.translate",text="Move")
        row.operator("transform.rotate")
        row.operator("transform.resize", text="Scale")
        
        row = col.row(align=True)
        row.operator("transform.mirror", text="Mirror X").constraint_axis=(True, False, False)
        row.operator("transform.mirror", text="Mirror Y").constraint_axis=(False, True, False)
        
        row = col.row(align=True)
        row.operator("uv.island_tools", text="Islands Tools")
        
        
        
        


#--Align------------------------------------------------------------------------------------





        col = layout.column(align=True)
        col.label(text="Align:")
        
        row = col.row(align=True)


        row.operator("uv.align",text="Align X").axis='ALIGN_X'
        row.operator("uv.align",text="Align Y").axis='ALIGN_Y'
        row.operator("uv.align",text="Auto").axis='ALIGN_AUTO'
        
        row = col.row(align=True)
        row.operator("uv.align",text="Straighten").axis='ALIGN_S' 
        row.operator("uv.align",text="Straighten X").axis='ALIGN_T'
        row.operator("uv.align",text="StraightenY").axis='ALIGN_U'
        
        
        
        


#--Selections------------------------------------------------------------------------------
 
 
        
        col = layout.column(align=True)
        col.label(text="Select with / Select:")
        
        row = col.row(align=True)
        row.operator("uv.select_border", text="Box").pinned=False
        row.operator("uv.select_border", text="Box Pinned").pinned=True
        
        
        
        
        col = layout.column(align=True)
        row = col.row(align=True)
        row.operator("uv.select_all", text="All").action='TOGGLE'
        row.operator("uv.select_all", text="Invert").action='INVERT'
        
        row = col.row(align=True)
        row.operator("uv.select_linked", text="Linked")
        row.operator("uv.select_split", text="Split")
        row.operator("uv.select_pinned", text="Pinned")
        
        
        
        
        
        

#--Editing--------------------------------------------------------------------------------


        
        
        col = layout.column(align=True)
        col.label(text="Editing:")
        
        row = col.row(align=True)
        row.operator("uv.stitch", text="Stitch")
        row.operator("uv.weld", text="Weld")
        
        col = layout.column(align=True)     
        row = col.row(align=True)
        row.operator("uv.pin", text="Pin").clear=False
        row.operator("uv.pin", text="UnPin").clear=True
        
        row = col.row(align=True)
        row.operator("uv.minimize_stretch", text="Minimize Stretch")
        row.operator("uv.average_islands_scale", text="Average Scale")
        
        col = layout.column(align=True)
        row = col.row(align=True)
        row.operator("uv.remove_doubles", text="Remove Doubles")
        
        
        
        
#--Seams---------------------------------------------------------------------------------  

  
        
        
        col = layout.column(align=True)
        col.label(text="Seams:")
        
        row = col.row(align=True)
        row.operator("uv.mark_seam", text="Mark Seams")
        row.operator("uv.seams_from_islands", text="from Islands")
        
        
        
        
    
            
        


#--Island---------------------------------------------------------------------------------- 


      
        
        col = layout.column(align=True)
        col.label(text="Island:")
        
        row = col.row(align=True)
        row.operator("uv.pack_islands", text="Pack")
        row.operator("mesh.faces_mirror_uv", text="Copy Mirror UV")
        
        row = col.row(align=True)
        row.operator("uv.unwrap", text="Unwrap")
        row.operator("uv.reset", text="Reset")
        
        

#--Hide------------------------------------------------------------------------------


        
        col = layout.column(align=True)
        col.label(text="Hidden:")
                   
        row = col.row(align=True)
        row.operator("uv.hide", text="Select").unselected=False
        row.operator("uv.hide", text="UnSelect").unselected=True
        row.operator("uv.reveal", text="Show All") 
        
        col = layout.column(align=True)
        col = layout.column(align=True)
        row = col.row(align=True)  
        row.operator("ed.undo", text="Undo")
        row.operator("ed.redo", text="Redo")
        row.operator("ed.undo_history", text="History")
               
        
       
        
 
#--Save--------------------------------------------------------------------------------- 


   
        
        col = layout.column(align=True)
        col.label(text="Save, Save, Save!!!:")
        
        
        row = col.row(align=True)
        row.operator("uv.export_layout", text="Export UV Layout")
        row.operator("wm.save_mainfile",text="",icon="FILE_TICK")
        row.operator("wm.save_as_mainfile",text="",icon="SAVE_AS")
        
        
        
        
       
        
        
        
        
        
#--Edit Image external--------------------------------------------------------------------------------- 

   
        
        #col = layout.column(align=True)
        #col.label(text="External Editor!!!:")
        
        
        #row = col.row(align=True)
        #row.operator("image.external_edit",text="Edit Image External")        

        
        
        
        
        
#--Snap-------------------------------------------------------------------------------------




        #col = layout.column(align=True)
        #col.label(text="Snap:")
                      
        
        
        #row = col.row(align=True)
        #row.operator("uv.snap_selected", text="Selected > Cursor").target="CURSOR"         
        #row.operator("uv.snap_selected", text="-> Cursor Offset").target="CURSOR_OFFSET"
        
        #row = col.row(align=True)        

        #row.operator("uv.snap_selected", text="Selected > Pixel").target="PIXELS"         
        #row.operator("uv.snap_selected", text="-> Adjacent").target="ADJACENT_UNSELECTED"
        
        #row = col.row(align=True)  
        #row.operator("uv.snap_cursor", text="Cursor > Selected").target="SELECTED"
        #row.operator("uv.snap_cursor", text="Cursor > Pixel").target="PIXELS"


   
        
        
        
        #   ‘PIXELS’, ‘CURSOR’, ‘CURSOR_OFFSET’, ‘ADJACENT_UNSELECTED’
        
        
        
 
 
        


        
    
    
    
    
    
    
    
#--Registery------------------------------------------------------------------------------   
    
def register():
    bpy.utils.register_class(uvtools)


def unregister():
    bpy.utils.unregister_class(uvtools)


if __name__ == "__main__":
    register()
bl_info = {
    'name': "Image Tools",
    'author': "MKB",
    'version': (1, 0, 0),
    'blender': (2, 6, 9),
    'location': "IMAGE_EDITOR > UI",
    'description': "Image Tools",
    'category': 'UV'}




import bpy

class imagetools(bpy.types.Panel):
    bl_space_type = 'IMAGE_EDITOR'
    bl_region_type = 'UI'
    bl_label = "Image Tools"


  
    def draw(self, context):
        layout = self.layout
        
  
        
#--Image---------------------------------------------------------------------------------         
        
        
        
        col = layout.column(align=True)
        col.label(text="Image:")
        
        row = col.row(align=True)
        row.operator("image.open", text="Open")
        row.operator("image.new", text="New")
        
        row = col.row(align=True)
        row.operator("image.reload", text="Reload")
        row.operator("image.replace", text="Replace")
        
        col = layout.column(align=True)
        row = col.row(align=True)
        row.operator("image.external_edit",text="Edit Image External") 
        
        
#--Image Pack---------------------------------------------------------------------------        
        
        
        col = layout.column(align=True)
        col.label(text="Pack into File:")

        row = col.row(align=True)
        row.operator("image.pack", text="Pack")
        row.operator("image.pack", text="Pack as PNG").as_png=True
        
        
#--Save-------------------------------------------------------------------------------        
        
        col = layout.column(align=True)
        col.label(text="Save, Save, Save!!!:")
   
        row = col.row(align=True)
        row.operator("image.save", text="Save")
        row.operator("image.save_as", text="Save as.. ")
        row.operator("image.save_as", text="Save Copy").copy=True
        
        
        
        
        
        
#--Edit Image external--------------------------------------------------------------------------------- 

   
        
        #col = layout.column(align=True)
        #col.label(text="External Editor!!!:")
        
        
        #row = col.row(align=True)
        #row.operator("image.external_edit",text="Edit Image External")        

        
        
        
        
        
#--Snap-------------------------------------------------------------------------------------




        #col = layout.column(align=True)
        #col.label(text="Snap:")
                      
        
        
        #row = col.row(align=True)
        #row.operator("uv.snap_selected", text="Selected > Cursor").target="CURSOR"         
        #row.operator("uv.snap_selected", text="-> Cursor Offset").target="CURSOR_OFFSET"
        
        #row = col.row(align=True)        

        #row.operator("uv.snap_selected", text="Selected > Pixel").target="PIXELS"         
        #row.operator("uv.snap_selected", text="-> Adjacent").target="ADJACENT_UNSELECTED"
        
        #row = col.row(align=True)  
        #row.operator("uv.snap_cursor", text="Cursor > Selected").target="SELECTED"
        #row.operator("uv.snap_cursor", text="Cursor > Pixel").target="PIXELS"


   
        
        
        
        #   ‘PIXELS’, ‘CURSOR’, ‘CURSOR_OFFSET’, ‘ADJACENT_UNSELECTED’
        
        
        
 
 
        


        
    
    
    
    
    
    
    
#--Registery------------------------------------------------------------------------------   
    
def register():
    bpy.utils.register_class(imagetools)


def unregister():
    bpy.utils.unregister_class (imagetools)


if __name__ == "__main__":
    register()
_______________________________________________
Bf-python mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-python

Reply via email to