Skip to content

Commit

Permalink
Docs Update
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewHazelden committed Nov 26, 2019
1 parent 65b213f commit 37149e1
Show file tree
Hide file tree
Showing 12 changed files with 79 additions and 49 deletions.
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# SilhouetteFX Python Scripts - 2018-12-27 #
# SilhouetteFX Python Scripts - v1.1 2019-11-26 #

---

Expand Down Expand Up @@ -62,4 +62,37 @@ Clicking the first "**X**" button in the window will close the floating view you
Here's a short video clip of the node alignment tools in action:
[https://www.youtube.com/watch?v=dMrfnLQZtMs](https://www.youtube.com/watch?v=dMrfnLQZtMs)

Last Revised 2018-12-27

## <a name="install"></a>Install ##

1. Download the contents of the SilhouetteFX-Python-Scripts repository.

2. Open `Scripts` folder, and copy the `compressor` and `icons` resources to your SilhouetteFX `Ressources/scripts/` folder. On macOS that is located at:

`/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/`

3. Copy the .py scripts from inside the `scripts/actions/` folder into your SilhouetteFX `Ressources/scripts/actions/` folder. On macOS that is located at:

`/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/`

4. Open the `scripts/actions/keybinds_snippets.py` Python script in a programmer's text editor. This file has a snippet of custom code that provides drag and drop support, along with Trees view grid layout snapping tools. You need to add this content via copy/paste to the top of the SilhouetteFX's built-in `keybinds.py` file by replacing this text area with the new code:

import fx

#
# Helper function which returns a function that calls
# a specified method of an object, passing in the argument list.
# Used to replace 'lambda', which is being phased out
#
def callMethod(func, *args, **kwargs):
def _return_func():
return func(*args, **kwargs)
return _return_func

SilhouetteFX's built-in `keybinds.py` file is located at:

`/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/keybinds.py`

**Note:** *It's a good idea to save a copy of your original `keybinds.py` file as `keybinds.bak` when you edit it.*

Last Revised 2019-11-26
8 changes: 4 additions & 4 deletions Scripts/actions/achDevRevealActionsInFinder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Reveal Actions in Finder - V1.0 2018-12-15
Reveal Actions in Finder - V1.1 2019-11-26
By Andrew Hazelden <[email protected]>
----------------------------------------------
Expand All @@ -16,11 +16,11 @@
Step 1. Open the Silhouette Script Actions folder using the following terminal command:
open "/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/"
open "/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/"
Step 2. Install this Python script by copying it to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/DevRevealActionsInFinder.py
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/DevRevealActionsInFinder.py
Step 3. Restart SilhouetteFX to re-load the active scripts.
"""
Expand All @@ -35,7 +35,7 @@ def Command():
import os
import subprocess

dir = '/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions'
dir = '/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions'

# Make the output filename
dest = dir + os.sep
Expand Down
8 changes: 4 additions & 4 deletions Scripts/actions/achDevRevealScriptsInFinder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Reveal Scripts in Finder - V1.0 2018-12-15
Reveal Scripts in Finder - V1.1 2019-11-26
By Andrew Hazelden <[email protected]>
----------------------------------------------
Expand All @@ -16,11 +16,11 @@
Step 1. Open the Silhouette Script Actions folder using the following terminal command:
open "/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/"
open "/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/"
Step 2. Install this Python script by copying it to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/DevRevealScriptsInFinder.py
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/DevRevealScriptsInFinder.py
Step 3. Restart SilhouetteFX to re-load the active scripts.
"""
Expand All @@ -35,7 +35,7 @@ def Command():
import os
import subprocess

dir = '/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts'
dir = '/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts'

# Make the output filename
dest = dir + os.sep
Expand Down
12 changes: 6 additions & 6 deletions Scripts/actions/achEncodeMovieMP4.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Encode Movie MP4 Script - V1.0 2018-12-15
"""Encode Movie MP4 Script - V1.1 2019-11-26
By Andrew Hazelden <[email protected]>
----------------------------------------------
Expand All @@ -14,22 +14,22 @@
Step 1. Open the Silhouette Script Actions folder using the following terminal command:
open "/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/"
open "/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/"
Step 2. Install this Python script by copying it to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/EncodeMovieMP4.py
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/EncodeMovieMP4.py
Step 3. Copy the provided Apple Compressor encoding presets folder named "compressor" to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/compressor
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/compressor
The compressor folder is used as a container to neat and tidily hold your exported ".cmprstng" file.
Step 4. Scroll down in this document and update that filepath and the name of the Apple Compressor exported ".cmprstng" preset file you want to use with the current "achEncodeMovie.py" script.
# Compressor preset
settings = '/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/compressor/MP4.cmprstng'
settings = '/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/compressor/MP4.cmprstng'
Step 5. Restart SilhouetteFX to re-load the active scripts, and start creating new art, new possibilities, and making new creative visions come to life!
Expand Down Expand Up @@ -93,7 +93,7 @@ def EncodeMovie(path):
dir = os.path.dirname(path)

# Compressor preset
settings = '/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/compressor/MP4.cmprstng'
settings = '/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/compressor/MP4.cmprstng'

# Compressor Job name
batch = 'sfx+'
Expand Down
12 changes: 6 additions & 6 deletions Scripts/actions/achEncodeMovieProRes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Encode Movie ProRes Script - V1.0 2018-12-15
"""Encode Movie ProRes Script - V1.1 2019-11-26
By Andrew Hazelden <[email protected]>
----------------------------------------------
Expand All @@ -14,22 +14,22 @@
Step 1. Open the Silhouette Script Actions folder using the following terminal command:
open "/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/"
open "/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/"
Step 2. Install this Python script by copying it to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/EncodeMovieProRes.py
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/EncodeMovieProRes.py
Step 3. Copy the provided Apple Compressor encoding presets folder named "compressor" to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/compressor
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/compressor
The compressor folder is used as a container to neat and tidily hold your exported ".cmprstng" file.
Step 4. Scroll down in this document and update that filepath and the name of the Apple Compressor exported ".cmprstng" preset file you want to use with the current "achEncodeMovie.py" script.
# Compressor preset
settings = '/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/compressor/ProRes.cmprstng'
settings = '/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/compressor/ProRes.cmprstng'
Step 5. Restart SilhouetteFX to re-load the active scripts, and start creating new art, new possibilities, and making new creative visions come to life!
Expand Down Expand Up @@ -93,7 +93,7 @@ def EncodeMovie(path):
dir = os.path.dirname(path)

# Compressor preset
settings = '/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/compressor/ProRes.cmprstng'
settings = '/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/compressor/ProRes.cmprstng'

# Compressor Job name
batch = 'sfx+'
Expand Down
12 changes: 6 additions & 6 deletions Scripts/actions/achEncodeMovieYouTubeLowQualityPreview.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Encode Movie YouTube Low Quality Preview Script - V1.0 2018-12-15
"""Encode Movie YouTube Low Quality Preview Script - V1.1 2019-11-26
By Andrew Hazelden <[email protected]>
----------------------------------------------
Expand Down Expand Up @@ -32,22 +32,22 @@
Step 1. Open the Silhouette Script Actions folder using the following terminal command:
open "/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/"
open "/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/"
Step 2. Install this Python script by copying it to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/EncodeMovieYouTubeLowQualityPreview.py
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/EncodeMovieYouTubeLowQualityPreview.py
Step 3. Copy the provided Apple Compressor encoding presets folder named "compressor" to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/compressor
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/compressor
The compressor folder is used as a container to neat and tidily hold your exported ".cmprstng" file.
Step 4. Scroll down in this document and update that filepath and the name of the Apple Compressor exported ".cmprstng" preset file you want to use with the current "achEncodeMovie.py" script.
# Compressor preset
settings = '/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/compressor/YouTubeLowQualityPrevie.cmprstng'
settings = '/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/compressor/YouTubeLowQualityPrevie.cmprstng'
Step 5. Restart SilhouetteFX to re-load the active scripts, and start creating new art, new possibilities, and making new creative visions come to life!
Expand Down Expand Up @@ -111,7 +111,7 @@ def EncodeMovie(path):
dir = os.path.dirname(path)

# Compressor preset
settings = '/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/compressor/YouTubeLowQualityPreview.cmprstng'
settings = '/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/compressor/YouTubeLowQualityPreview.cmprstng'

# Compressor Job name
batch = 'sfx+'
Expand Down
6 changes: 3 additions & 3 deletions Scripts/actions/achSendToAffinityPhoto.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Affinity Photo Script - V1.0 2018-12-15
Affinity Photo Script - V1.1 2019-11-26
By Andrew Hazelden <[email protected]>
----------------------------------------------
Expand All @@ -17,11 +17,11 @@
Step 1. Open the Silhouette Script Actions folder using the following terminal command:
open "/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/"
open "/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/"
Step 2. Install this Python script by copying it to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/achSendToAffinityPhoto.py
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/achSendToAffinityPhoto.py
Step 3. Restart SilhouetteFX to re-load the active scripts.
Expand Down
6 changes: 3 additions & 3 deletions Scripts/actions/achSendToDJV.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
DJV Script - V1.0 2018-12-15
DJV Script - V1.1 2019-11-26
By Andrew Hazelden <[email protected]>
----------------------------------------------
Expand All @@ -17,11 +17,11 @@
Step 1. Open the Silhouette Script Actions folder using the following terminal command:
open "/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/"
open "/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/"
Step 2. Install this Python script by copying it to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/achSendToDJV.py
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/achSendToDJV.py
Step 3. Restart SilhouetteFX to re-load the active scripts.
Expand Down
6 changes: 3 additions & 3 deletions Scripts/actions/achToolsOutputToSource.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Output to Source - V1.0 2018-12-15
Output to Source - V1.1 2019-11-26
By Andrew Hazelden <[email protected]>
----------------------------------------------
Expand All @@ -17,11 +17,11 @@
Step 1. Open the Silhouette Script Actions folder using the following terminal command:
open "/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/"
open "/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/"
Step 2. Install this Python script by copying it to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/ToolsOutputToSource.py
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/ToolsOutputToSource.py
Step 3. Restart SilhouetteFX to re-load the active scripts.
Expand Down
6 changes: 3 additions & 3 deletions Scripts/actions/achToolsRevealInFinder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Reveal in Finder Script - V1.0 2018-12-15
Reveal in Finder Script - V1.1 2019-11-26
By Andrew Hazelden <[email protected]>
----------------------------------------------
Expand All @@ -15,11 +15,11 @@
Step 1. Open the Silhouette Script Actions folder using the following terminal command:
open "/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/"
open "/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/"
Step 2. Install this Python script by copying it to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/ToolsRevealInFinder.py
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/ToolsRevealInFinder.py
Step 3. Restart SilhouetteFX to re-load the active scripts.
"""
Expand Down
6 changes: 3 additions & 3 deletions Scripts/actions/achToolsSplitEXR.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
SplitEXR Script - V1.0 2018-12-15
SplitEXR Script - V1.1 2019-11-26
By Andrew Hazelden <[email protected]>
----------------------------------------------
Expand All @@ -17,11 +17,11 @@
Step 1. Open the Silhouette Script Actions folder using the following terminal command:
open "/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/"
open "/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/"
Step 2. Install this Python script by copying it to:
/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/actions/ToolsSplitEXR.py
/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/actions/ToolsSplitEXR.py
Step 3. Restart SilhouetteFX to re-load the active scripts.
Expand Down
9 changes: 3 additions & 6 deletions Scripts/keybinds_snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def _return_func():


# -----------------------------------------
# ACH MacOS keybinds Start - 2018-12-15
# ACH MacOS keybinds Start - 2019-11-26
# "g" hotkey runs a node alignment script
# "r" hotkey runs a "Reveal in Finder" script
# "tab" hotkey runs a "Send To > DJV View" script
Expand Down Expand Up @@ -533,7 +533,7 @@ def AlignByCSV():
import fx
import csv

path = '/Applications/SilhouetteFX/Silhouette v7/Silhouette.app/Contents/Resources/scripts/node_shape.csv'
path = '/Applications/SilhouetteFX/Silhouette v7.5/Silhouette.app/Contents/Resources/scripts/node_shape.csv'

tool = 'Align By CSV'
PrintStatus(tool)
Expand Down Expand Up @@ -739,8 +739,5 @@ def SnapDialog():
fx.bind("g", SnapDialog)

# -----------------------------------------
# ACH keybinds End - 2018-12-15
# ACH keybinds End - 2019-11-26
# -----------------------------------------



0 comments on commit 37149e1

Please sign in to comment.