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.
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
Life is what happens to you when you're busy making other plans.
- John Lennon
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.
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!