Skip to main content

Get a Python Script from Github

How to Pull Down a Python Script from Github

This entry will cover how to pull down a script generated by MakeShopPro from github.  See the youtube channel for specific scripts and what they do: MakeShopPro Youtube Channel

You'll need to Install Python, before doing the following steps.

Github

  • Click on the link provided by the youtube video  (for this example you can use this script)
  • From the github page, find the *.py file and click on it.  In the example below, click on the PhotoMosaic.py
  • To download the script right-click on the [Raw] button and select Save Link As...

  • Choose a location to save the script.

Install Libraries

Sometimes scripts require extra libraries/modules to be installed for them to run.  Most of the libraries (but not all) come with the Python install.  If the video calls out an extra script to be added the following procedure is how to install them.
  • Open a command prompt (doesn't matter the location)
  • Enter the command: pip install <name of library>
  • So for example, to install the Imageio library the command would be:
    • pip install imageio
  • If you were missing the library, it would begin to install
  • If you already had the library, something like the following would be displayed:

Run the Script

All scripts should be accompanied by a Readme.txt which will provide instructions on how to run the script.  Often times you'll need to call the script with some parameters passed in.  All scripts can be run from within the command prompt window.

Comments

Popular posts from this blog

Youtube Subtitles for Other Languages

The following is an instruction on how to view Make Shop Pro videos but with subtitles in a different languages.   First click the settings icon (gear) Click on the Subtitles/CC option Click on English (auto-generated) Click on this modified button Subtitles/CC English(auto-generated) Click Auto-translate Select your language You should now see subtitles (that may or may not be that accurate) that are a translation of the auto-subtitles generated in english.

Vector Graphic Drawing in PaintShop Pro

Basic Vector Graphic Drawing See the video on youtube at this link:  Make Shop Pro - Vector Graphic Drawing There are three types of vector objects that can be created, these are Shapes, Lines, and Text.  For the purposes of this tutorial, we'll focus on shapes and lines. Shapes To draw a shape, simply click on the Vector Graphic tool which will be any of the icons below depending on what was selected last. Once the tool type is selected, you can simply drag on the image to draw the shape.   We'll discuss how to manipulate this shape below. Lines To draw a vector line, you'll need to first click on the Pen Tool In the Pen Tool menu (typically upper left), you'll see there are three types of lines you can draw:  Line, Bezier and Freehand.  Select which type you want to draw. Before attempting to draw, ensure that on your Materials palette that the Line material (upper left, shown as black) is not transparent or has a co...