Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2006-09-15 14:21:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-09-15 14:21:25 +0400
commitcca79d086a8f9aa4a8e8a6c996eebb241051d0cc (patch)
tree82dfdbe4509e606ec5d53f9d16aa7bbb61ea0890 /release/scripts/image_edit.py
parent26520225ee0e40669a217c1c98eeca1bcc4c1529 (diff)
changed the defaults for image edit. will open the image instantly with no options. hold shift for setting the application.
Diffstat (limited to 'release/scripts/image_edit.py')
-rw-r--r--release/scripts/image_edit.py24
1 files changed, 15 insertions, 9 deletions
diff --git a/release/scripts/image_edit.py b/release/scripts/image_edit.py
index 1711c2af72f..e9c264b4bef 100644
--- a/release/scripts/image_edit.py
+++ b/release/scripts/image_edit.py
@@ -1,9 +1,9 @@
#!BPY
"""
-Name: 'Image Edit (External App)'
-Blender: 241
+Name: 'Edit Externaly'
+Blender: 242a
Group: 'Image'
-Tooltip: 'Edits the image in another application. The Gimp for eg.'
+Tooltip: 'Open in an application for editing. (hold Shift to configure)'
"""
__author__ = "Campbell Barton"
@@ -15,12 +15,16 @@ This script opens the current image in an external application for editing.
Useage:
Choose an image for editing in the UV/Image view.
-Select UVs, Image Edit (External App)
-For first time users try running the default application *
+
+To configure the application to open the image with, hold Shift as you click on
+this menu item.
+
+For first time users try running the default application for your operating system.
If the application does not open you can type in the full path.
-The last entered application will be saved as a default.
+You can choose that the last entered application will be saved as a default.
-* Note, Start for win32 and open for macos will use system default assosiated application.
+* Note, default commants for opening an image are "start" for win32 and "open" for macos.
+This will use the system default assosiated application.
"""
# ***** BEGIN GPL LICENSE BLOCK *****
@@ -97,8 +101,10 @@ def main():
pupblock.append(('editor: ', appstring_but, 0, 48, 'Path to application, %f will be replaced with the image path.'))
pupblock.append(('Set Default', save_default_but, 'Store this path in the blender registry.'))
- if not Draw.PupBlock('External Image Editor...', pupblock):
- return
+ # Only configure if Shift is held,
+ if Blender.Window.GetKeyQualifiers() & Blender.Window.Qual.SHIFT:
+ if not Draw.PupBlock('External Image Editor...', pupblock):
+ return
appstring = appstring_but.val
save_default= save_default_but.val