Question #678668 on Yade changed:
https://answers.launchpad.net/yade/+question/678668

Jan Stránský proposed the following answer:
Thanks for the code

> However, an error will be reported at the beginning of loading:

the loading is ok, actually too ok :-) see my previous answer. The problem is 
missing triaxFinished in the second script. Solutions:
1) define triaxFinished in the second script, e.g.
###
def triaxFinished():
   O.pause()
###
2) change the doneHook of triax
###
def someNewDomeHook():
   print "STOP"
   O.pause()
O.engines[3].doneHook = "someNewDomeHook()"
###

> O.engines += [PeriTriaxController(...)]

Are you aware that now you have 2 PeriTriaxController simultaneously in the 
simulation? Probably you should do something like:
###
O.engines = O.engines[:3] + [PeriTriaxController(...)] + O.engines[4:]
###

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to