yade-users team mailing list archive
Mailing list archive
Re: Scripting in Yade
Václav Šmilauer <eudoxos@xxxxxxxx>
Thu, 22 Jan 2009 19:16:24 +0100
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:18.104.22.168) Gecko/20090105 Lightning/0.8 Thunderbird/22.214.171.124 Mnenhy/0.7.5.666
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
for example. Get back should you have further questions.