SketchUcation Plugin Store

 

 

[Plugin] CameraKeyMaker 1.0 (Update 2011-04-09)

Re: [Plugin] CameraKeyMaker 1.0 (Update 2011-04-09)

Postby LivioE » Wed May 23, 2012 8:57 am

..bute are you sure it runs also within su8 ?
LivioE
 
Posts: 2
Joined: Sat Apr 28, 2012 9:15 pm
Name: Livio

Re: [Plugin] CameraKeyMaker 1.0 (Update 2011-04-09)

Postby TIG » Wed May 23, 2012 10:30 am

LivioE wrote:..bute are you sure it runs also within su8 ?
It should work.
Incompatibility is usually 'backwards' to earlier versions, that don't have all of the newer version's tools.
Why not just install it and try it out.
The worst that can happen is it doesn't work !
Check that you have indeed installed it as directed [a common pitfall] !!
If so then uninstall the few files you have installed.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13898
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] CameraKeyMaker 1.0 (Update 2011-04-09)

Postby Oxer » Thu May 16, 2013 4:43 pm

Hi,
This plugin for me is very useful but I work on Mac and it didn't work because de keys codes and pathname are different between Pc and Mac.
I have done changes in camera_key_maker.rb and the plugin works on Mac now, except the preview animation with UP Key, I think is because the temporal folder on mac is different to Pc-->line 802: @fileName = c:/Temp/Anim/#{date}_img_#{@frame}.png
I use Apple Extended Keyboard.

CHANGES KEYS CODE lines 295 to 360

------------------------------------
# ONKEYDOWN (CAMERA MANUAL ANIMATION)
# ------------------------------------
def onKeyDown(key, x, y, view)

# 63234 LEFT, 63235 RIGHT, 63232 UP, 63233 DOWN

if @points_eye.size > 0
size = (@points_eye.size) -1

#previous/next Key <--[--1] || [++1]-->
if key == 63234 or key == 63235

if key == 63234 # LEFT <--
if @index && @index > 0
@index -= 1
eye = @points_eye.at(@index)
target = @points_target.at(@index)
else
@index = size
eye = @points_eye.at(size)
target = @points_target.at(size)
end
else # RIGHT -->
if @index && @index < size
@index += 1
eye = @points_eye.at(@index)
target = @points_target.at(@index)
else
@index = 0
eye = @points_eye.at(0)
target = @points_target.at(0)
end
end # key 63234

@camera.set eye, target, @up.clone
Sketchup::set_status_text("Llave de Cámara: #{@index+1}", SB_PROMPT)
view.animation = nil
@edit_cam = false
@draw = true
view.invalidate

end # key 63234/63235

# PLAY PREVIEW
if key == 63232 # UP

@edit_cam = false

if @points_eye and @points_eye.size > 1
$preview = true
view.animation = CameraAnimation.new(@points_eye, @points_target)
#view.animation = cam_anim
#place to last camera key
@index = (@points_eye.size) -1
end
#Animation stopped"
end # 63232

# EDIT current position camera key
if key == 63233 # DOWN
@edit_cam = true
Sketchup::set_status_text("Editar Llave de Cámara: #{@index+1} , Editar curva manualmente solo Vistas [Arriba-Abajo-Izquierda-Derecha]", SB_PROMPT)
end # key 63233

end # @points_eye.size > 0

@draw = true
view.invalidate

end #onKeyDown

CHANGES PATHNAME

line 637: pathname = Sketchup.find_support_file "camera_path.html" ,"Plugins/CameraKeyMaker"

If somebody can help with the implementation of Preview Animation (line 802: @fileName = "c:/Temp/Anim/#{date}_img_#{@frame}.png", path to temporal folder on Mac), I would be very grateful.
"The result is the end what is important is the process" by Oxer
http://www.oxervision.blogspot.com/
User avatar
Oxer
 
Posts: 156
Joined: Thu Sep 10, 2009 1:13 am
Location: Benavente, Spain
Name: Oscar
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: illustration, cartoons
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Keyframe Animation plugin - animate your SketchUp model by adding movement to any object.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012

Previous


 

Return to Plugins

Who is online

Users browsing this forum: 5565star, andy1347, bonio, ptsly, revit dp and 14 guests