← Back to team overview

yade-dev team mailing list archive

Re: [Yade-users] Python and Generator

 

[sorry to have sent that to your private mail first]

I have written a script in python that should work properly, but
generator will not recognize the file and create a .xml file.  How can I
create a .xml file from my python script?

Have a look at scripts/simple-scene.py. After you've setup your simulation, save it with O.save('/your/file.xml.bz2'). But it is not necessary, the simulation will run without saving just fine.

HTH, Vaclav