I'm interested in building on Ben McNeilage's Navigate script, which allows the user to easily manipulate the overscan settings of a camera to zoom in without altering the camera's translate and rotate values. The script is invaluable when rotoscoping, but I think it could be even better.
Is there a way to make an interface that can display a thumbnail of the image plane and a draggable box that reflects the portion of the image plane that you are currently viewing, a la Photoshop? Even if the thumbnail cannot be displayed, it would still be very useful to have a draggable box, as the sliders are sometimes very cumbersome.
Can anyone point me in the right direction?
thanks in advance,
Chad
unfortunately i don't think any of the UI controls are that interactive... you might be able to get a point and clikc style interface, but a draggable box like PS I doubt you'll be able to do.
having said that, you might be able to somehow create a model panel with a custom camera, that somehow links the translation of the camera to the film offsets of your roto camera...
so far i've come up with a kind of a hack solution, but it works ok. I am using the middle mouse drag and drop functionality along with the absolute positioning available through formLayout to allow the user to drag and drop the zoomed area wherever they want. i'm just using a grayed-out button as the drag and drop element. the button's size scales to reflect the size of your viewer with respect to the overall area of the image plane. unfortunately, the screen does not update until you drop. i wish there were some way to get real-time info on the cursor position.
i've found another fucntion called draggerContext. this WILL give you realtime feedback of cursor position, but only in a GL modeling pane. i'm going to try to use this to create an overscan zoom and pan that works akin to maya's regular zoom/dolly and pan/track, with a simple mouse drag activated by a depressed key.
i was also thinking that what you described would work very well, using an actual openGL modeling panel. It would only be really efficient though, if it were a stand-alone floating model panel, like the hardware render buffer. there are some controls for scaling the the hardware renderer and docking it to panels, but i still haven't found a way to get rid of the menus, time slider, and other extraneous elements. what i really need to know is if there is a way to create custom floating modeling panels.
anyone out there with some clues to how to do this?
-chad