How to download / copy script?

  • 2 Replies
  • 147 Views
How to download / copy script?
« on: 29 / March / 2018, 16:50:01 »
Advertisements
Can some one please direct me to the link for "how to download / copy scripts". I have done it before but I am not sure if I am doing it right. I downloaded a .lua script (yass4.lua) and copied the file to the SD card of my camera to the LUALIB folder. But when I went to run, it is not present in the list. Am I supposed to copy it to both LUALIB and Scripts folders? Some scripts do not have a download link, just hte text of the script. Can you please direct me to the link for how I can copy it and create it to usable script file. Thanks.

*

Offline reyalp

  • ******
  • 11336
Re: How to download / copy script?
« Reply #1 on: 29 / March / 2018, 22:37:58 »
The script just needs to be downloaded to the SD card. If you edit the file, it must be saved as plain ASCII text. For lua scripts, the extension must be ".lua"

Scripts are normally put in the CHDK/SCRIPTS directory, but that's just a convention, you can load scripts from anywhere on the SD card.

LUALIB is used for modules loaded by lua scripts with require(). You should not normally put scripts there.
Don't forget what the H stands for.

Re: How to download / copy script?
« Reply #2 on: 02 / April / 2018, 10:56:35 »
I was also asking about when there is no download link and some one has given only the script text code. How to create a file and copy the text to that file? Thanks.

 

Related Topics