Open child script when V-REP is not running

Typically: "How do I... ", "How can I... " questions
Post Reply
mthor13
Posts: 61
Joined: 03 Jul 2017, 08:32
Contact:

Open child script when V-REP is not running

Post by mthor13 »

Hi,
Is it possible to edit child scripts without launching v-rep?
I am currently on Linux and the script only becomes visible when I start v-rep (they are called embScript_*some_number*.lua).

Best,
Mathias Thor

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Open child script when V-REP is not running

Post by coppelia »

Hello Mathias,

yes, the best way would be to have your child script contain something like:

Code: Select all

require('utils')
include('/lua/yourScript.lua')
From V-REP 3.4.1 onwards, you will also be able to directly write:

Code: Select all

sim.include('/lua/yourScript.lua')
this way, your script content will be stored outside of your scene or model file.

Cheers

mthor13
Posts: 61
Joined: 03 Jul 2017, 08:32
Contact:

Re: Open child script when V-REP is not running

Post by mthor13 »

Thank you very much!

Post Reply