[READ-ONLY] Mirror of https://github.com/probablykasper/2dcam. After Effects 2d camera
after-effects camera extendscript script
0

Configure Feed

Select the types of activity you want to include in your feed.

Changed resizing behavior

Kasper (Mar 12, 2020, 5:20 AM +0100) bbffe382 d9c913e7

+5 -4
+5 -4
2dcam.jsx
··· 58 58 } 59 59 } 60 60 61 - var win = (this instanceof Panel) ? this : new Window("palette", "2dCam", undefined, { resizeable: true }); 61 + var windowed = !(this instanceof Panel); 62 + var win = (!windowed) ? this : new Window("palette", "2dCam", undefined, { resizeable: true }); 63 + if (!windowed) win.margin = [30, 0, 30, 0]; 62 64 var rootGroup = win.addc('group', { 63 65 orientation: 'row', 64 66 }); ··· 77 79 helpTip: 'New 2dCam output comp\nAlt+click: Apply 2dCam output to the selected layer', 78 80 }); 79 81 win.onResize = function() { 80 - win.orientation = 'column'; 81 - rootGroup.orientation = 'column'; 82 - rootGroup.location = [win.size[0]/2-rootGroup.size[0]/2, win.size[1]/2-rootGroup.size[1]/2]; 82 + if (windowed) rootGroup.location = [win.size[0]/2-rootGroup.size[0]/2, win.size[1]/2-rootGroup.size[1]/2]; 83 + else rootGroup.location = [win.size[0]/2-rootGroup.size[0]/2, 0]; 83 84 } 84 85 85 86 var prefixFieldChars = 20;