Sketchup API for navigating around a model (eventually to integrate with
Leap Motion)
I'm trying to use to SketchUp API to navigate around 3D models (zoom, pan,
rotate, etc). My ultimate aim is to integrate it with a Leap Motion app.
However, right now I think my first step would be to figure out how to
control the basic navigation gestures via the Sketchup API. After a bit of
research, I see that there are the 'Camera' and the 'Animation'
interfaces, but I think they would be more suited to 'hardcoded' paths and
motions within the script.
Therefore I was wondering - does anyone know how I can write a plugin that
is able to accept inputs from another program (my eventual Leap Motion App
in this case) and translate it into specific navigation commands using the
Sketchup API (like pan, zoom, etc). Can this be done using the 'Camera'
and the 'Animation' interfaces (in some sort of step increments), or are
there other interfaces I should be looking at.
As usual, and examples would be most helpful.
Thanks!
No comments:
Post a Comment