Skip to content

How to retreive position and control move in SofaPython3? #3002

Discussion options

You must be logged in to vote

Hi @hugtalbot
Thanks for the example code!
I tried self.MO = kwargs.get("MechanicalObject") but it seems that it's not getting any object, when I print self.MO it shows "None". When I change it into self.CFF = kwargs.get("ForceField") it works perfectly well to print the force. Do you know what could be insufficient with the MechanicalObject part?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@hugtalbot
Comment options

Comment options

You must be logged in to vote
2 replies
@damienmarchal
Comment options

@SalemTree
Comment options

Answer selected by SalemTree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants