← Back to team overview

yade-users team mailing list archive

Re: Adding engines from python after scene is created

 

Try this:

O.pause()
O.wait()
O.engines.append(PeriodicPythonRunner(iterPeriod=20,command='plotFunction()'))
O.run()



2010/6/30 boon chiaweng <booncw@xxxxxxxxxxx>

>
> Hi,
>
> I would like to add an engine after the Scene is created:
>
> p=TriaxialTest()
> p.density=3600
> p.dampingMomentum =0.5
> etc etc.
> p.load()
>
> O.engines.append(PeriodicPythonRunner(iterPeriod=20,command='plotFunction()'))
>
> This doesn't work.   I would like to maintain the use of the C
> preprocessor, although I know I can generate triaxial entirely using python.
>
>
> Yours,
>
> Boon
>
>
>
> _________________________________________________________________
> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
> https://signup.live.com/signup.aspx?id=60969
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References