yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #01341
Re: Scripting in Yade
-
To:
yade-users@xxxxxxxxxxxxxxxxxxx
-
From:
Václav Šmilauer <eudoxos@xxxxxxxx>
-
Date:
Thu, 22 Jan 2009 19:16:24 +0100
-
In-reply-to:
<20090122171217.18268.84034.launchpad@potassium.ubuntu.com>
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.19) Gecko/20090105 Lightning/0.8 Thunderbird/2.0.0.19 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
to yade:
yade-trunk scripts/simple-scene.py
for example. Get back should you have further questions.
Regards, Vaclav