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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

###
def stopIfIntLost():
    if O.interactions.has(1,2): # [1]
        O.pause()
###

cheers
Jan

[1] https://yade-
dem.org/doc/yade.wrapper.html#yade.wrapper.InteractionContainer.has

-- 
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     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to