I have the omni phantom, and I want to use the buttons on it to run a function I have in a python script.
The GeomagicDriver defines several data. Among them the data “button_1” and “button_2” are boolean specifying the state (pressed = 1) of each button.
Thanks Hugo, but these are not accessible form python, right?
They should be, as any data.
Using something like:
state_button1 = your_GeomagicDriver.findData('button_1').value
Oh I see, I got a bit confused about what you meant. My bad :).
Thank you so much Hugo,
If you think that shorter is better you can also write:
state_button1 = your_GeomagicDriver.button_1
This works because the python binding search for each “MyComponent.xxxx” if there is a data with the xxxx name.
Thanks, I managed to get the button, but using “button1” instead of “button_1”.
You must be logged in to reply to this topic.
Get involved in this forum: