That fixed the 'issue', thanks
Posts
-
RE: Reloading plugins while SketchUp is running
-
RE: Reloading plugins while SketchUp is running
I know, I know. I think you didn't understand me well
It does work on the ruby console, but not as a plugin itself.
-
Reloading plugins while SketchUp is running
@thomthom said:
@javixp said:
is is possible to load/unload/reload plugins with SketchUp running?
You can load (and reload) scripts by using the Ruby Console, typing
load 'myRubyFile.rb'
I tried that and it worked. However, what I wanted was to reload plugins using... another plugin, something like this:
def reload load 'myRubyFile.rb' end
Problem is that one doesn't work, the Ruby Console says:
C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/myRubyFile.rb;64;in `load' C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/myRubyFile.rb;64 C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/myRubyFile.rb;64;in `call' C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/myRubyFile.rb;64
Note: Line 64 is where the function 'reload' is called
Thanks
-
RE: What am I doing wrong?
Thank you everyone, for "clearing up" my doubts. It works fine now.
By the way, just not to make a new topic for a single question, is is possible to load/unload/reload plugins with SketchUp running? -
What am I doing wrong?
Hello,
well, I was just trying do make an 'addition' to Chris' multi-pushpull plugin and this is what I've got so far:
model = Sketchup.active_model sel = model.selection ent = model.active_entities height = mpp_options_diag faces = [] sel.each do |e| if e.is_a? Sketchup;;Face faces << e end end faces.each do |face| face.pushpull height.to_i end def mpp_options_diag prompts = ["Insert the height for the Multi PushPull"] defaults = ["100"] input = UI.inputbox prompts, defaults, "Multi PushPull Tool Parameters" end
Thing is, it lets me run the code if I do "face.pushpull(100)", but not with "face.pushpull height.to_i"
The Ruby Console shows this error:
undefined method `to_i' for ["100"];Array C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/webconsole/webconsole.rb;31;in `run' (eval);15;in `each' (eval);15;in `run' undefined method `to_i' for ["100"];Array
What am I doing wrong then?
Thanks. -
RE: Looking ahead to SU 8.
In my opinion, native renderers are free, easy to use and nice results. I'm a little newbie at rendering, I know, just my opinion.
-
RE: Looking ahead to SU 8.
**1.-**More than 2GB RAM Support
**2.-**Native renderer
**3.-**Some subdivision add-onI do hope that all becomes true, which is I think everyone wants of Google SketchUp.
SketchUp Team, keep up the good work!
Regards, Javier
-
RE: My .SKP Works
Me before seeing your SL:
Me when you told me it was done:
Me once I saw it:
-
RE: Rogue's W.I.P's!
Very nice, Ben! You have done an awesome work with only one image!
-
RE: 3D Warehouse Explorer V 1.2
Great!
I am almost sure it is about .NET Framework
When I was running XP, it didn't work, but now I'm using Vista and all works fine. -
RE: Real time render with real time camera matching!!
Thank you so much! The video looks really good, and the best: I am a student!
-
RE: Toggling Thrusters?
For thrusters... I am not sure.
Try using this in 'onTick'
push(1)
Note: You can change the 1 for the value you want.
-
RE: WIP: Scripted aircraft
It's nice! Can I fully control it with my PS3 controler?