diff --git a/AnyShortcut.py b/AnyShortcut.py index a3c28a4..4c5af45 100644 --- a/AnyShortcut.py +++ b/AnyShortcut.py @@ -237,7 +237,7 @@ def created_handler(args: adsk.core.CommandCreatedEventArgs): args.command.isRepeatable = False camera_copy = app_.activeViewport.camera - camera_copy.cameraType = adsk.core.CameraTypes.OrthographicCameraType #? +# camera_copy.cameraType = adsk.core.CameraTypes.OrthographicCameraType #? camera_copy.viewOrientation = getattr(adsk.core.ViewOrientations, view_orientation_name + 'ViewOrientation') app_.activeViewport.camera = camera_copy @@ -397,15 +397,26 @@ def create(cmd_def_id, text, tooltip, resource_folder, handler): # create_roll_history_handler('play')) # timeline_dropdown.controls.addCommand(c) - view_dropdown = builtin_dropdown_.controls.addDropDown('View Orientation', './resources/viewfront', - 'thomasa88_anyShortcutBuiltinViewList') + view_orientation_dropdown = builtin_dropdown_.controls.addDropDown('View Orientation', './resources/viewfront', + 'thomasa88_anyShortcutBuiltinViewOrientationList') for view in ['Front', 'Back', 'Top', 'Bottom', 'Left', 'Right']: - c = create('thomasa88_anyShortcutBuiltinView' + view, + c = create('thomasa88_anyShortcutBuiltinViewOrientationList' + view, 'View ' + view, '', './resources/view' + view.lower(), create_view_orientation_handler(view)) - view_dropdown.controls.addCommand(c) + view_orientation_dropdown.controls.addCommand(c) + + view_corner_dropdown = builtin_dropdown_.controls.addDropDown('View Orientation', './resources/viewisotopright', + 'thomasa88_anyShortcutBuiltinViewCornerList') + for view in ['IsoTopRight', 'IsoTopLeft','IsoBottomRight', 'IsoBottomLeft' ]: + c = create('thomasa88_anyShortcutBuiltinViewCornerList' + view, + 'View ' + view.strip('Iso'), + '', + './resources/view' + view.lower(), + create_view_orientation_handler(view)) + view_corner_dropdown.controls.addCommand(c) + def run(context): global app_ diff --git a/resources/viewisobottomleft/16x16.png b/resources/viewisobottomleft/16x16.png new file mode 100644 index 0000000..d5be56c Binary files /dev/null and b/resources/viewisobottomleft/16x16.png differ diff --git a/resources/viewisobottomleft/32x32.png b/resources/viewisobottomleft/32x32.png new file mode 100644 index 0000000..3d8446b Binary files /dev/null and b/resources/viewisobottomleft/32x32.png differ diff --git a/resources/viewisobottomleft/viewbottomleft.svg b/resources/viewisobottomleft/viewbottomleft.svg new file mode 100644 index 0000000..620834f --- /dev/null +++ b/resources/viewisobottomleft/viewbottomleft.svg @@ -0,0 +1,161 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/viewisobottomright/16x16.png b/resources/viewisobottomright/16x16.png new file mode 100644 index 0000000..19eeac1 Binary files /dev/null and b/resources/viewisobottomright/16x16.png differ diff --git a/resources/viewisobottomright/32x32.png b/resources/viewisobottomright/32x32.png new file mode 100644 index 0000000..5ef5c2c Binary files /dev/null and b/resources/viewisobottomright/32x32.png differ diff --git a/resources/viewisobottomright/viewbottomright.svg b/resources/viewisobottomright/viewbottomright.svg new file mode 100644 index 0000000..529c7cc --- /dev/null +++ b/resources/viewisobottomright/viewbottomright.svg @@ -0,0 +1,167 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/viewisotopleft/16x16.png b/resources/viewisotopleft/16x16.png new file mode 100644 index 0000000..ba8e28d Binary files /dev/null and b/resources/viewisotopleft/16x16.png differ diff --git a/resources/viewisotopleft/32x32.png b/resources/viewisotopleft/32x32.png new file mode 100644 index 0000000..e40b054 Binary files /dev/null and b/resources/viewisotopleft/32x32.png differ diff --git a/resources/viewisotopleft/viewtopleft.svg b/resources/viewisotopleft/viewtopleft.svg new file mode 100644 index 0000000..1efc174 --- /dev/null +++ b/resources/viewisotopleft/viewtopleft.svg @@ -0,0 +1,167 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/viewisotopright/16x16.png b/resources/viewisotopright/16x16.png new file mode 100644 index 0000000..d2a7169 Binary files /dev/null and b/resources/viewisotopright/16x16.png differ diff --git a/resources/viewisotopright/32x32.png b/resources/viewisotopright/32x32.png new file mode 100644 index 0000000..815faf9 Binary files /dev/null and b/resources/viewisotopright/32x32.png differ diff --git a/resources/viewisotopright/viewtopright.svg b/resources/viewisotopright/viewtopright.svg new file mode 100644 index 0000000..025a06d --- /dev/null +++ b/resources/viewisotopright/viewtopright.svg @@ -0,0 +1,167 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + +