From 05bd3c2cb340b889f6ff3cb74d24b31ab7712f78 Mon Sep 17 00:00:00 2001 From: Zxynine <79198508+Zxynine@users.noreply.github.com> Date: Tue, 21 Dec 2021 19:46:59 -0500 Subject: [PATCH 1/4] Fixed odd camera effects This Should result in normal operation of the camera --- AnyShortcut.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnyShortcut.py b/AnyShortcut.py index a3c28a4..06af2b0 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 From 68dc4543f01f8aa3c9f4667697fd16d43dcfc191 Mon Sep 17 00:00:00 2001 From: Zxynine <79198508+Zxynine@users.noreply.github.com> Date: Wed, 22 Dec 2021 01:00:51 -0500 Subject: [PATCH 2/4] NewViewIcons --- resources/viewisobottomleft/16x16.png | Bin 0 -> 451 bytes resources/viewisobottomleft/32x32.png | Bin 0 -> 468 bytes .../viewisobottomleft/viewbottomleft.svg | 161 +++++++++++++++++ resources/viewisobottomright/16x16.png | Bin 0 -> 476 bytes resources/viewisobottomright/32x32.png | Bin 0 -> 503 bytes .../viewisobottomright/viewbottomright.svg | 167 ++++++++++++++++++ resources/viewisotopleft/16x16.png | Bin 0 -> 469 bytes resources/viewisotopleft/32x32.png | Bin 0 -> 472 bytes resources/viewisotopleft/viewtopleft.svg | 167 ++++++++++++++++++ resources/viewisotopright/16x16.png | Bin 0 -> 570 bytes resources/viewisotopright/32x32.png | Bin 0 -> 708 bytes resources/viewisotopright/viewtopright.svg | 167 ++++++++++++++++++ 12 files changed, 662 insertions(+) create mode 100644 resources/viewisobottomleft/16x16.png create mode 100644 resources/viewisobottomleft/32x32.png create mode 100644 resources/viewisobottomleft/viewbottomleft.svg create mode 100644 resources/viewisobottomright/16x16.png create mode 100644 resources/viewisobottomright/32x32.png create mode 100644 resources/viewisobottomright/viewbottomright.svg create mode 100644 resources/viewisotopleft/16x16.png create mode 100644 resources/viewisotopleft/32x32.png create mode 100644 resources/viewisotopleft/viewtopleft.svg create mode 100644 resources/viewisotopright/16x16.png create mode 100644 resources/viewisotopright/32x32.png create mode 100644 resources/viewisotopright/viewtopright.svg diff --git a/resources/viewisobottomleft/16x16.png b/resources/viewisobottomleft/16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..d5be56c85288b187aacf79277357b07370f4b944 GIT binary patch literal 451 zcmV;!0X+VRP)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10Z>Uq zK~y-6rIWu)!$1^(zg(gyPANs`?{7(112@ z1e^g+mSxoe`u+ZOj^F^e1NMLjhz+1@z{>}`0%jCNi^*j(N3a5{CNKa7@URBUO+Z4c z(P&5j&+}xCz|F!VL0Xi65AS)yj|-uk-9oQd|Brx$!C>Prl3#+6M8feb0%JnWJuH{q zw@M{Vc%FyjI5B|l`*b>;SOerb)S9q0Msy;fmF#1_-%k4QM3Pni#E(vtaZ(t#5kd&D tR4CXJ1ga#30WeMTHfe2^^$FCn<}Zg6V_ZG88s-21002ovPDHLkV1iN)y#xRN literal 0 HcmV?d00001 diff --git a/resources/viewisobottomleft/32x32.png b/resources/viewisobottomleft/32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..3d8446b3db1c93b93bd0cc8161aef7676feb9544 GIT binary patch literal 468 zcmV;_0W1EAP)@^3Th0N;})D7?ixHL^&p68vxk!tR& z*Rmt<5x50jvMeJ>k}1raJL^p!!0*7VfcZ8A;0t^cFmLW$#s*55w*mgdye+9Zcbv+2 zY!SZk@O3IL_l=jaTy^kCr5vtR!ZEn0gQGs5T$v=sX$ zyaUP<05K53>1Zl|E{N!%R0<+$D3yeW8cHQ+!q8CqE#ZH^o#tPdF#>#sXNi6Q0000< KMNUMnLSTYg8O1mN literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..19eeac19d0678423f4c76d66bd157cff7558b16b GIT binary patch literal 476 zcmV<20VDp2P)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10clA@ zK~y-6jnF-7Qvnpl@!!2SDJWu%jY2w92xc&oA0UMeU0Oszh){Pg2!4X%a2Gcxzk#@^ zAjC+Q5(O8>f}25|)5VgP4gtLmChg^t7yodU=bZmDoIs9BrLsR54C=$-@N0gTBf@Tw z3%8;uIw+UR-+H~?!4ml%YT0lTy+)()GLGY9fn3Bpd_WpzXJjtxielVAW4SYm(52GnHdms4|IyV>XMMJF&L?h0L2&-WIF5_ggP?V-)w&Y(`wQjIxWnjonr?>>hGAGd zIeEXRFSlL!M@ahR}R%3?13!n#sfu7A~*5Z~a zdz#g=6sEukSWc%?`u)BOc-hl@tP@x-9D9I|n*{0#-#x&~p1rn(KHyb>KY>@{>zr$f zV;t2me;q@g=e!QyC{UX?j&&Tzt?z+3%uP=X$2Nhcd!Tbx@Q2E$dt1Fzff_i#orVkV z0u68g0W35ec@wa}O)dfHMW6-TER8qOAYH9lv;rlIsFp8tNW@NbORB5>3NowNV|002ovPDHLkV1n+{$*KSV literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..ba8e28d8a80f1b9970f5231c56f7901ca6584efe GIT binary patch literal 469 zcmV;`0V@89P)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10b)r+ zK~y-6jgPTQ0&x__KX;yXW+)CG>S72kP0@Z>v|Nd8MU5@~5l;RO4#f@q0TDFiR+F2+UEbsKdGAU1DwoUEhr{89ZQGCjnXe+ie#F<@7NgNc zS%{+TI6WIAARdr4;27BS!g>PiTM%NNPXP@9G2fCXa1Go5ViD}kvw+(|6 z6r#n&|B4cYYI=BX=IfTt2@hfoH< zvRr1}!*_w5##}J<^pO`|{Re&x8ion}g~J4)@It{X7PFRt0Th43NhF*>wVHC0$(NdM zW|}6oT1^1-`+ZuimiQ%bRCPQsjE<7Y7-!AqBw(R1O;ZAN;0idA0R%{ns*VShN=M1( zjb6P)jj!!Q)a@qduT#@LD@urTEW6?e(X5eP?M$&itpAtM_nfPr!XI3^6!%yCl36BS}LV>fJEq>6$hRp;awYR0XzY60rCbS@F9>3oZ6Dx z=ClRS;r)IUxbnbX#sb*zuD=EDr5*2zpPK?q#ryp(a4m4+fTIgA2k-Zzz~w}I5WpAj z`cvRe;LL�>s+qLc5KZn!n~xfSCJShyR*M?}FSg(zO!EZw}KXhG7EcJJ%P#ojN{f z09QO{fH`=u0CVvm0eo=p0KT|afDriX0HN?%0Yc)=0Yc;ZIe`g};%%C;P1DH}mt_e+ zmSuzAnx>(uDq!LYxZ-2gG!1oK1E7@pvaY}$Un`|nMNw=VtnO9Ye;F-+2ik+n8d#04 zfCsLt0S;`80gi!#;T|{^t_=_vXAB<%h=4PO_bcX^&~zw0ROGMUQTzu0T$7ru4>(=` O0000 + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/viewisotopright/16x16.png b/resources/viewisotopright/16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..d2a71697d50de57275db76af3364797c5703f92a GIT binary patch literal 570 zcmV-A0>%A_P)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10mn&1 zK~y-6jgmb`TTvK>pL1fY5DildkOX#9Y3mLi=a<wmqIHpM`2P(Y;E`{{VzJL{qnmXCj0eI00FIiN0@a_@Y5)KL07*qo IM6N<$f(^;{7ytkO literal 0 HcmV?d00001 diff --git a/resources/viewisotopright/32x32.png b/resources/viewisotopright/32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..815faf98d82873760cffe20f0a713f56f4c27bc0 GIT binary patch literal 708 zcmV;#0z3VQP)r5)NqaFRAg9I6n7HeZLkq<8P$yIg*p;1?dp`@#Es^4|Ad-obwmIi=Jw zASsmNfpB0qC3vq`V+Pm(B%94jsZ@#`Yzu*l0=ES=TJUpT6HqbmCNK}|7mLNb>$*vS z7l3QPDo_Mw0os1UE|3TI{qZJ&5FA)>UH2dcI1OC&=U)Y`=wsTzjR5=&{F#L_CV>bX zIMjd&C6h<#4EDTnUff?>lg9G02y6%(2}qLi4Wzf{d60wC zzPo5i7=k~5g1{|-rvhJ-0u#bT;BrX7@y=r^$LtbFD-3T7OzA6-+Bw(YBJe!O3?*R= z)&(Bv$uUY){bw%P)eKgqf|ZBx*n#y)2*iY4;2%hQcHm2_K*|!Y^ai6qiV{t|!77k~ z#0lPuFu6ca;%ISk5&|C`_%XBqz^{b`CLj^n|HJ}4i7~e$vj0N~z*sr)8~8A`z!(zm z9q5=k9RDd=y&siICD-kCTYCHS_BLm?wyeZzVB!}`OS~);`hA^Fheo3T3|IjlZrrX@(K1kvTe6qnK0;9s?B<{d78$2Q~4m>CU)bu$` q@L;5NC&c?CFx<=nk@DAXEc`E9$gWriygnNM0000 + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + From 670eaa3ee80e687a82f053cf1ad7a0ef47ad7e8c Mon Sep 17 00:00:00 2001 From: Zxynine <79198508+Zxynine@users.noreply.github.com> Date: Wed, 22 Dec 2021 01:02:37 -0500 Subject: [PATCH 3/4] Update AnyShortcut.py --- AnyShortcut.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/AnyShortcut.py b/AnyShortcut.py index 06af2b0..bb750c9 100644 --- a/AnyShortcut.py +++ b/AnyShortcut.py @@ -397,15 +397,25 @@ 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, '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/viewfront', + 'thomasa88_anyShortcutBuiltinViewCornerList') + for view in ['Front', 'Back', 'Top', 'Bottom', 'Left', 'Right']: + c = create('thomasa88_anyShortcutBuiltinView' + view, + 'View ' + view, + '', + './resources/view' + view.lower(), + create_view_orientation_handler(view)) + view_corner_dropdown.controls.addCommand(c) def run(context): global app_ From 4395894d739f4a33dbf0b1172fa7772ba1ea1b53 Mon Sep 17 00:00:00 2001 From: Zxynine <79198508+Zxynine@users.noreply.github.com> Date: Wed, 22 Dec 2021 01:05:04 -0500 Subject: [PATCH 4/4] Update AnyShortcut.py --- AnyShortcut.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/AnyShortcut.py b/AnyShortcut.py index bb750c9..4c5af45 100644 --- a/AnyShortcut.py +++ b/AnyShortcut.py @@ -400,23 +400,24 @@ def create(cmd_def_id, text, tooltip, resource_folder, handler): 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_orientation_dropdown.controls.addCommand(c) - view_corner_dropdown = builtin_dropdown_.controls.addDropDown('View Orientation', './resources/viewfront', + view_corner_dropdown = builtin_dropdown_.controls.addDropDown('View Orientation', './resources/viewisotopright', 'thomasa88_anyShortcutBuiltinViewCornerList') - for view in ['Front', 'Back', 'Top', 'Bottom', 'Left', 'Right']: - c = create('thomasa88_anyShortcutBuiltinView' + view, - 'View ' + view, + 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_ global ui_