Forum

#1 2016-11-24 07:31:51

soz
Member

guerilla script path

do you know how to add a new python and lua path who will be automaticaly loaded when guerilla opening

I would have a network script path.

thx !!


Tristan

Offline

 

#2 2016-11-24 09:20:15

Ben
Guerilla dev, the guy to hug

Re: guerilla script path

Hi Soz,

In the guerilla.conf (or .guerilla.conf) file a UserPlugins line like:

UserPlugins = C:/directory/to/my/scripts

The .lua and .py files in the directory will be executed automatically at Guerilla startup.
Check the doc on this point:
http://guerillarender.com/doc/1.4/TD%20 … ation.html

Cheers!
Ben


Benjamin 'Ben' Legros
Guerilla developer
http://www.guerillarender.com

Offline

 

#3 2016-11-24 14:54:08

soz
Member

Re: guerilla script path

for .lua it work but not for .py

I can't use the python command

import myScript

in guerilla

if I put my python script here it work : C:\Program Files\Guerilla Render\python


Tristan

Offline

 

#4 2016-11-24 15:11:40

soz
Member

Re: guerilla script path

found thx :p


Tristan

Offline

 

#5 2016-11-24 18:17:11

soz
Member

Re: guerilla script path

work but to call python function in your lua script you need to set :

py = requiert "python"
py.import "__main__".myCommand()


Tristan

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB