← Back to team overview

yade-users team mailing list archive

Re: Scripting in Yade

 

Hi, please use yade-users@xxxxxxxxxxxxxxxxxxx for questions, since
others may be interested, too.
> I’m familiar with C and learning C++, but I saw that scripting in python would be better.
> How can I start a Python Yade console and make a script running?
>   
If you run yade from terminal and it is compiled with features=python,
you will get python console. That way you can start experiments. Note
that specifically for STL importer, there is a big demo in
examples/rod_penetration. To run script, you can pass it as an argument
to yade:
 
 yade-trunk scripts/simple-scene.py

for example. Get back should you have further questions.

Regards, Vaclav