Pasting LUA into VCarve Pro
Pasting LUA into VCarve Pro
I viewed the LUA videos and tried to paste a LUA script into VCarve Pro, but Paste is not active. The first line of the script is: --VECTRIC LUA SCRIPT. I can paste VCarve Pro objects, and bitmaps into VCarve, but when I have copied some text, even from Notepad++, copy is not active. What have I missed?
- Adrian
- Vectric Archimage
- Posts: 14657
- Joined: Thu Nov 23, 2006 2:19 pm
- Model of CNC Machine: ShopBot PRS Alpha 96x48
- Location: Surrey, UK
Re: Pasting LUA into VCarve Pro
You don't paste LUA code into VCarve.
Gadgets are separate files (ending in .lua) that are placed into the Gadgets folder and then are automatically loaded onto the Gadgets menu when VCarve is next loaded.
The correct place to put them is Public Documents\Vectric Files\Gadgets\(your vcarve version)
Gadgets are separate files (ending in .lua) that are placed into the Gadgets folder and then are automatically loaded onto the Gadgets menu when VCarve is next loaded.
The correct place to put them is Public Documents\Vectric Files\Gadgets\(your vcarve version)
Re: Pasting LUA into VCarve Pro
I saw the paste option when I watched the gadget videos on the Vectric website. Creating the LUA files and storing them in the Gadgets folder is a super solution for gadgets that have general usage. The pasting option, if it works, is a great option for a quick, single use gadgets and to learn and experiment with LUA.
Why can't I get the paste option to work? Has something changed and this option no longer available?
Why can't I get the paste option to work? Has something changed and this option no longer available?
- Adrian
- Vectric Archimage
- Posts: 14657
- Joined: Thu Nov 23, 2006 2:19 pm
- Model of CNC Machine: ShopBot PRS Alpha 96x48
- Location: Surrey, UK
Re: Pasting LUA into VCarve Pro
Totally forgot you could do that to be honest as I've never really seen the point. It's faster to have a test script on the Gadgets menu and just edit that when you want to experiment/do a one off as the scripts are loaded dynamically.
Having said that the paste is working fine for me with VCarve 8.5
Have you got a space after the -- on the first line? That's important.
Having said that the paste is working fine for me with VCarve 8.5
Have you got a space after the -- on the first line? That's important.
Re: Pasting LUA into VCarve Pro
Adrian,
Thanks that was the problem! I had just reviewed the gadget video again and noticed the missing space. When I added the space the paste option was activated. I just came back to the forum to post the importance of the space when I saw your post. Thanks again for your support.
Thanks that was the problem! I had just reviewed the gadget video again and noticed the missing space. When I added the space the paste option was activated. I just came back to the forum to post the importance of the space when I saw your post. Thanks again for your support.
Re: Pasting LUA into VCarve Pro
I had the same problem. It also needs to be in all caps