Page 1 of 1

Relative Path to dependencies

Posted: 21 Mar 2016, 15:23
by schwarzgrau
I'm working on more than one computer, but always keep the whole folder structure in sync. Unfortunately I have to relink all dependencies every time I switch the computer, cause their path seems to be absolute. I know I could implement all dependencies in the project, but often it would get a huge file. So I thought maybe their could be a way to choose if the path is absolute or relative. Maybe a little checkbox in the import-window.

Re: Relative Path to dependencies

Posted: 21 Mar 2016, 15:42
by NathanOtano
I also really need this, same for the scripts libraries and configs

Re: Relative Path to dependencies

Posted: 21 Mar 2016, 16:37
by Svengali
try this:

tv_GetPath
Path = result
tv_warn "path = " Path // see what it gives you

then experiment with the command and any of these arguments:

tv_GetPath HOST|TEMP|CONFIG|PLUGIN|GEORGE

for example:
tv_GetPath "george"
GeorgePath = result
tv_warn "GeorgePath = " GeorgePath

you can concatenate the resulting GeorgePath-variable and your George Script name so you can load the same script on either of your systems.

Now see if this lets you use the same, unchanged button/script on both systems.

Sven :D

Re: Relative Path to dependencies

Posted: 21 Mar 2016, 17:48
by NathanOtano
Svengali wrote:try this:

tv_GetPath
Path = result
tv_warn "path = " Path // see what it gives you

then experiment with the command and any of these arguments:

tv_GetPath HOST|TEMP|CONFIG|PLUGIN|GEORGE

for example:
tv_GetPath "george"
GeorgePath = result
tv_warn "GeorgePath = " GeorgePath

you can concatenate the resulting GeorgePath-variable and your George Script name so you can load the same script on either of your systems.

Now see if this lets you use the same, unchanged button/script on both systems.

Sven :D

Ah! Nice :)