Posted: Thu May 22, 2003 9:29 pm
Joined: 21 Feb 2003
Posts: 72
er, how do i from one script in blender import the code in another script (also in blender) ?
what i'm trying to do is automate the YaBle script to export each frame of my animation with a numbered yafray xml file by invoking its export method from my script.
Posted: Fri May 23, 2003 1:59 pm
Joined: 16 Oct 2002
Posts: 1177
Yable already supports this, I'm the one who coded that feature in.
anyway, the copy/paste shortcuts in Blender are alt-C/alt-V
Martin
_________________
Life is what happens to you when you're busy making other plans.
- John Lennon
Posted: Fri May 23, 2003 4:39 pm
Joined: 21 Feb 2003
Posts: 72
Sorry, I didn't make it clear. I have the YaBle script in my project. I want to use YaBle as I would a module; so where I would say 'import whrandom' to use the methods of whrandom in my script, how do I tell python that I'm going to be using methods from the YaBle script ?
I imagine it must be something like:
import yable.py ? but, this isn't it.
I don't want to just paste the entire YaBle script onto the end of my script if I can refer its methods and classes from my script.
Posted: Sat May 24, 2003 12:06 am
Joined: 21 Feb 2003
Posts: 72
ok. I found it. One brings the YaBle script into Blender, runs it, and then one can say 'from Yable import *' in one's script and it works.
Anyway, thankyou Yafray!