Thanks for this, although 5 years later, i'm getting this with Sketchup8:
Error Loading File QueryToolbar.rb
undefined method `GetString' for nil:NilClass
Thanks for this, although 5 years later, i'm getting this with Sketchup8:
Error Loading File QueryToolbar.rb
undefined method `GetString' for nil:NilClass
Sketchup seems to persist image export settings, such as width/height, file format, antialias. Is there a way I can grab these settings?
I'm making a fairly simple script called Thicken, thats basically a wrapper for JPP. My problem is that the VCB is greyed out - even after putting in enabledVCB?
Does anything stand out here (I removed the guts between start_operation and commit_operation for debugging purposes)?
### NOTE; Dev. halted - couldnt get Measurements (VCB/Value Control Box) input working
require 'sketchup.rb'
require 'extensions.rb'
require 'jointpushpull.rb'
thickenExt = SketchupExtension.new "Thicken", "CKD_Thicken.rb"
thickenExt.version = '1.0'
thickenExt.description = 'Uses JPP to thicken the select face/s directly or inside the selected groups'
Sketchup.register_extension thickenExt, true
module Thicken
def initialize()
@thickness = 100.mm
@model = Sketchup.active_model
selectedEntities = model.selection
thickenTool = ThickenTool.new(self)
@model.select_tool thickenTool
model.start_operation "Thicken"
model.commit_operation
end
class ThickenTool
def initialize(caller_class)
@caller = caller_class
end
def activate
Sketchup.set_status_text "Thickness", SB_VCB_LABEL
Sketchup.active_model.active_view.invalidate
end
def deactivate(view)
view.invalidate
end
def onUserText(text, view)
UI.messagebox("what")
end
def enableVCB?
return true
end
end #Class ThickenTool
if( !$thickenLoaded )
$ckdSubMenu.add_item("Thicken") { thicken }
thickenLoaded = true
end
end #Module Thicken
@unknownuser said:
That's how I would go about it as well. JD has done a great job of matching the SU viewport with the Maxwell output so exporting an image with SU linework and overlaying it in photoshop is a pretty straightforward process. It's a nice trick to have under the belt, I've used it once before. But I can't see Maxwell incorporating something like this as their aim is for photorealism and that's more of a NPR trick.
-Brodie
JD?
If this had the option to render edges/lines, i'd buy it. This is very important when using them as textural elements (panel breakup lines, etc).
In Sketchup, if you right click on a material theres an option to see the total area. Can I call this in my script?
Thanks for the tips, although it seems the Style window does not use standard Windows dialog boxes (which I suppose it's why it's one I can't do alt+space m on, which works for the others). Damn!
I changed my dual screen config, and now many of my sketchup floating windows are on a screen that doesn't exist! For most, I can press alt+space and m to move it, but others i can't. Is there some file I can edit or delete to reset this?
Thanks Chris. I'm slowly getting better at the math involved I made a tiling DC today that's central panel does not scale, but the vertical beams do, so it can be whatever size horizontally, but is fixed vertically. Loving these DC's