I want to move on object in the scene, but I don’t know how can I do it.
A try the python exampe ‘keyboardControl’ in the SofaPython library, but it doesn’t work. I press the Ctrl key also, but the object doesn’t move.
I read an topic about moving a scissor parts, and I try to modify that script, but it didn’t work also. It is like, that Sofa can’t sense the key pressing.
I want to move an instrument start point by this way.
Can anyone help me?
Your first idea of looking in the ‘keyboardControl’ example of the SofaPython plugin was very good!
Are you sure to have SofaPython compiled on your machine?
Can you tell me what happens (console output) when you run this example?
Nothing happens when using ctrl+keys (from directional keyboard)?
I solved the problem. The keyboardControl.py was wrong, it use incorrect variable (free_position instead of position). When I change it, it worked!
I will mark the topic as solved, congrats!
You must be logged in to reply to this topic.
Get involved in this forum: