Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.
/ DuGR Public archive

Commit

Permalink
Implement precomps and all comps
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Duduf committed Jul 17, 2023
1 parent 46ad013 commit 5237b44
Show file tree
Hide file tree
Showing 3 changed files with 202 additions and 56 deletions.
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"request": "launch",
"name": "Dugr",
"program": "${workspaceFolder}/src/Dugr.jsx",
"stopOnEntry": false
"stopOnEntry": false,
"hostAppSpecifier": "aftereffects-23"
}
]
}
17 changes: 9 additions & 8 deletions src/inc/api.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ DuGR.Group = {

/**
* The way the warning frame can be displayed
* @enum {int}
* @enum {Number}
* @readonly
*/
* @ts-ignore */
DuGR.WarningFrameMode = {
/**
* No frame at all
Expand All @@ -207,9 +207,9 @@ DuGR.WarningFrameMode = {

/**
* The way layers are isolated
* @enum {int}
* @enum {Number}
* @readonly
*/
* @ts-ignore */
DuGR.IsolationMode = {
/**
* No isolation
Expand All @@ -231,9 +231,9 @@ DuGR.IsolationMode = {

/**
* How to isolate layers in the comp panel
* @enum {string}
* @enum {Number}
* @readonly
*/
* @ts-ignore */
DuGR.CompIsolationMode = {
HIDE: 0,
WIREFRAME: 1
Expand Down Expand Up @@ -527,6 +527,7 @@ DuGR.toggleCollapseTransformation = function( groups, invert, comp, allowLockedC
function f( layer, enabled)
{
if (layer.locked && !allowLockedChanges) return enabled;
if (!layer.canSetCollapseTransformation) return enabled;

var locked = layer.locked;
layer.locked = false;
Expand Down Expand Up @@ -870,7 +871,7 @@ DuGR.isolate = function( groups, invert, comp, frameMode, isolationMode, compIso
lockHiddenLayers = def(lockHiddenLayers, true);
invert = def(invert, false);

if (isolationMode == DuGR.IsolationMode.NONE) DuGR.exitIsolation( comp );
if (isolationMode == DuGR.IsolationMode.NONE) DuGR.exitIsolation( comp, compositions );

var timeline = isolationMode == DuGR.IsolationMode.BOTH || isolationMode == DuGR.IsolationMode.TIMELINE;
var compPanel = isolationMode == DuGR.IsolationMode.BOTH || isolationMode == DuGR.IsolationMode.COMP_PANEL;
Expand All @@ -887,7 +888,7 @@ DuGR.isolate = function( groups, invert, comp, frameMode, isolationMode, compIso
else
{
dugrFrameLayer = DuGR.getDugrLayer(comp);
DuAETag.setValue(sq, DuAETag.Key.DUGR_ISOLATION_MODE, isolationMode);
DuAETag.setValue(dugrFrameLayer, DuAETag.Key.DUGR_ISOLATION_MODE, isolationMode);
}

// Restore the selection
Expand Down
Loading

0 comments on commit 5237b44

Please sign in to comment.