There's also some stuff in siutils / sipyutils
http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/files/script_python_WorkingwithCustomPythonModulesinXSI.htm
http://xsisupport.com/2010/10/24/python-importing-modules-into-plugins/



On 04/02/2013 3:29 PM, Stefan Andersson wrote:
Just to confirm a bit what others has said (with an example)
[path]
[mylibs]
__init_.py
coolpython.py

# inside softimage
import sys
sys.path.append("/path/mylibs")
import coolpython

or
[path]
[mylibs]
__init_.py
[ coolpython ]
__init__.py

# inside softimage
import sys
sys.path.append("/path/mylibs")
import coolpython

You might have to also do a reload(coolpython) if you are testing your edits.

best of luck
stefan andersson



On Mon, Feb 4, 2013 at 8:03 PM, Christian Gotzinger <[email protected] <mailto:[email protected]>> wrote:

    Thank you for all the answers guys! I will see which of these
    solutions work best for me.

    Cheers

    Christian




--
*Stefan Andersson | /Digital Janitor/*
blog <http://sanders3d.wordpress.com> | showreel <http://vimeo.com/sanders3d>| twitter <http://twitter.com/sanders3d> | LinkedIn <http://www.linkedin.com/in/sanders3d> | cell: +46-73-6268850 | skype:sanders3d



Reply via email to