That fixed the 'issue', thanks
Latest posts made by JaViXP
-
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: