Thanks, Martin. Another in a long line of very handy plugins! ![:smile: ๐](https://community.sketchucation.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=ortm2mm07uk)
Just a couple of bugs to report, and one feature request:
First, I'm running XP SP3, SU 7.1.6860 (free version), and my IE is version 8.0.6001.18702. It seems to have problems when I use it, (which is rarely
) so it could be IE's fault, not yours... Anyway, I get the JavaScript error dialog shown in the attached image when I start the plugin (that is, when I open the window, not when SU starts).
Also, the "close" button on the Camera Stats window doesn't do anything (possibly related to the JavaScript error?).
Finally, the feature request:
It would be very handy if I could "pan" the camera left and right, relative to the viewport, by a specified value. For example, if I panned it right by about 2.5", it would be like I closed my left eye and opened my right (do you see where I'm going with this?
). I know (for me, anyway) the math would be pretty rough, but if you have the time, (you obviously have the grey-matter
) I would use this feature ALL OF THE TIME! ![:smile: ๐](https://community.sketchucation.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=ortm2mm07uk)
Anyway, thanks again for the cool plugin!
EDIT: I just had another look at the Camera object API, and I think I know how to do this... Take the cross product of Camera#up and Camera#direction, use the resulting vector (or its negative) to transform Camera#target and Camera#eye, and use Camera#set to put it all back together. Am I close?
EDIT 2:
Success! After just a bit of tinkering, I got it working!
![:smile: ๐](https://community.sketchucation.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=ortm2mm07uk)
It's pretty much as I said above, but I had to experiment to find out how the API wants things done (plus I was a bit rusty at Ruby
)
I'm going to clean this up and make a new thread for it, just in case someone can use it, but here it is if you, Martin, want to incorporate it (not that you need my amateurish code
) or if someone wants to see what I'm blathering about
.
![IE JavaScript error dialog IE JavaScript error dialog](/uploads/imported_attachments/fb4Z_CameraStatsError.png)
Stereo Panning Plugin (WIP)