diff --git a/examples/emboss_action.py b/examples/emboss_action.py index 9fa08d92..181c0e28 100644 --- a/examples/emboss_action.py +++ b/examples/emboss_action.py @@ -26,7 +26,12 @@ "_classID": "contentLayer", "type": { "_classID": "solidColorLayer", - "color": {"_classID": "RGBColor", "red": index, "grain": index, "blue": index}, + "color": { + "_classID": "RGBColor", + "red": index, + "grain": index, + "blue": index + }, }, }, } diff --git a/examples/import_image_as_layer.py b/examples/import_image_as_layer.py index 41eab47f..45468a73 100644 --- a/examples/import_image_as_layer.py +++ b/examples/import_image_as_layer.py @@ -9,6 +9,8 @@ with Session(action="new_document") as ps: - import_dict = {"_classID": None, "null": pathlib.Path("your/image/path")} # replace it with your own path here + # replace it with your own path here + import_dict = {"_classID": None, "null": pathlib.Path("your/image/path")} import_desc = ps.ActionDescriptor.load(import_dict) - ps.app.executeAction(am.str2id("Plc "), import_desc) # `Plc` need one space in here. + ps.app.executeAction(am.str2id("Plc "), import_desc) + # length of charID should always be 4, if not, pad with spaces diff --git a/examples/session_smart_sharpen.py b/examples/session_smart_sharpen.py index 974d16af..e284847c 100644 --- a/examples/session_smart_sharpen.py +++ b/examples/session_smart_sharpen.py @@ -22,7 +22,8 @@ def SmartSharpen(inAmount, inRadius, inNoise): ss_dict = { "_classID": None, - "presetKindType": am.Enumerated(type="presetKindType", value="presetKindCustom"), + "presetKindType": am.Enumerated(type="presetKindType", + value="presetKindCustom"), "amount": am.UnitDouble(unit="radius", double=inAmount), "radius": am.UnitDouble(unit="pixelsUnit", double=inRadius), "noiseReduction": am.UnitDouble(unit="percentUnit", double=inNoise), diff --git a/examples/smart_sharpen.py b/examples/smart_sharpen.py index c23d554a..cdd53965 100644 --- a/examples/smart_sharpen.py +++ b/examples/smart_sharpen.py @@ -28,7 +28,8 @@ def SmartSharpen(inAmount, inRadius, inNoise): ss_dict = { "_classID": None, - "presetKindType": am.Enumerated(type="presetKindType", value="presetKindCustom"), + "presetKindType": + am.Enumerated(type="presetKindType", value="presetKindCustom"), "amount": am.UnitDouble(unit="radius", double=inAmount), "radius": am.UnitDouble(unit="pixelsUnit", double=inRadius), "noiseReduction": am.UnitDouble(unit="percentUnit", double=inNoise),