[Plugin] CameraControls
-
Hey Rick, its not working for me. It just gives constant errors to the console. This is the first of them
Error: #<NoMethodError: undefined method
atan' for #<CameraControls:0x8e8fb98>> C:/Program Files/Google/Google SketchUp 7/Plugins/cameracontrols.rb:153:in
set_angles'
C:/Program Files/Google/Google SketchUp 7/Plugins/cameracontrols.rb:216:in `onViewChanged'
C:/Program Files/Google/Google SketchUp 7/Plugins/cameracontrols.rb:153Chris
-
@chris fullmer said:
...its not working for me.:
Error: #<NoMethodError: undefined methodatan' for #<CameraControls:0x8e8fb98>> C:/Program Files/Google/Google SketchUp 7/Plugins/cameracontrols.rb:153:in
set_angles'Chris:
Strangely it works fine for me - although I can't find the script that's defining 'atan
' as aMath
function !
Try addingMath::
in front ofatan
in line 153 - I did and it still works for me - so it might then work for you ?Also Rick: if you run the tool in 'parallel projection' then the 'fov' returns errors at lines 72/97/121 [linked to 79/104/139 as the optional 'perspective' and 'fov' are NOT applicable to pp] - it all shows in the Console - these can easily be trapped in the 3 locations... I have already 'fixed' mine...
fov = @camera.fov if perspective ###... if perspective @view.camera = Sketchup;;Camera.new(@eye,newtarget,newup,perspective,fov) else @view.camera = Sketchup;;Camera.new(@eye,newtarget,newup) end#if
Thanks for another great tool by the way...
-
TIG: Thanks for the note - I forgot about parallel projection
I'll also add Math::atan to (hopefully) fix Chris's problem.[EDIT] New version uploaded to Smustard
-
erm there's something on the camera controls page that kills my Firefox. something about a C library not loading correctly.
-
@tig said:
Try adding
Math::
in front ofatan
in line 153Ding!Ding!Ding!Ding!
We have a winner! That solved it all for me Tig, thanks!
Works great now Rick, very cool!
Chris
-
Rick,
Did you write the Javascript slider?
-
@jim said:
Did you write the Javascript slider?
Yep. Thought about an out-of-the-box thing, but decided to go custom.
-
thanks rick
-
@khai said:
erm there's something on the camera controls page that kills my Firefox. something about a C library not loading correctly.
Which page? The Smustard page or the webDialog?
-
@rickw said:
@khai said:
erm there's something on the camera controls page that kills my Firefox. something about a C library not loading correctly.
Which page? The Smustard page or the webDialog?
the Smustard page
I had to use Chrome to get to it in the end...Fire fox complains about the loading and locks out. -
My FireFox goes in just fine. I don't have any of those ad removel apps installed, just vanilla FireFox.
version 3.0.13
-
actually it wasn't an ad removal problem at all.. (btw the Firefox version is 3.5.2 the latest)
it's Videolan, my video player. it's having a problem with the embedded video on that page.. working on it..
-
Thank you very much for the tool! I loved.
A thing that could be implemented would be the possibility to arise or to go down the camera, to change the zoom, or to alter the vision field, or Pan by slide. -
Thanks for the suggestions. I'll see what might work.
-
@khai said:
actually it wasn't an ad removal problem at all.. (btw the Firefox version is 3.5.2 the latest)
it's Videolan, my video player. it's having a problem with the embedded video on that page.. working on it..
Ah, sorry about that. I'll see about embedding a YouTube video instead.
-
John,
The 90-degree issue is (I think) an internal SU thing due to the desire of the camera to not look straight down - you can see this when manually orbiting, and I suspect it carries over to dynamically moving the camera in Ruby. Either that, or it's a by-product of my (necessary) assumption that when looking straight down, the positive y-axis is zero roll. Not sure.
As for the second issue you described in your model, I don't quite understand the issue - I didn't have any problem getting 90 degrees for the magenta(?) and green boxes. I'll try to get with you later to get more input.
-
I cant get it to work.
I get a window with three sliders but nothing happens when I drag them.
Should there be more things visible in that window?
If not I suggest you make it a lot smaller.
It takes up a great deal of space IMHO. -
Ahh yes, agreed. The window initialy starts quite large for just the three sliders.
Jan, is it giving errors to the webconsole? I had a problem described earlier in the thread where the atan function needed to be specified as Math::atan on line 153. Did you already fix that one Rick?
Chris
-
Ok. I added the Math::atan and now it works. Still the window is huge!
I really like the way it works in realtime but please make the window much more compact.
It would also be nice with a small reset button for each slider.Also would it be possible to have these as well:
Truck (left/right)
Pedestal (up/down)
Dolly (in/out)For these maybe some logarithmic/non linear curve for the slider so when sliding a little it would be small values and when sliding towards the extremes it would be larger/faster movement.
Just a thought. -
Interesting, on my work computer, the window was HUGE also. But on my home computer, it was tiny tiny. Resized as absolutely small as possible, I almost didn't see it because it just shows the red x, minimize and maximize buttons.
You can manually resize it though, which works fine. And for me it remembers its size and location between SU sessions. So try to resize it and see if SU rememeber's its size.
Chris
Advertisement