This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Check if Photoshop is active and a document is open | |
if (app.documents.length > 0) { | |
var doc = app.activeDocument; | |
var layerVisibility = []; | |
// Function to check if the active layer is a group | |
function isLayerGroup(layer) { | |
try { | |
var temp = layer.layers.length; | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[FilePath("ProjectSettings/" + nameof(ExampleProjectSettings) + ".asset", FilePathAttribute.Location.ProjectFolder)] | |
public class ExampleProjectSettings : SimpleSettings<ExampleProjectSettings> { | |
/// <summary> | |
/// the display path in the project settings window | |
/// </summary> | |
private const string WINDOW_PATH = "Tools/" + nameof(ExampleProjectSettings); | |
public bool exampleSettingBool; | |
/// <summary> |