⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • Sketchup URL scheme / pseudo protocol

    4
    0 Votes
    4 Posts
    561 Views
    TIGT
    A URL like: file:///C:/Program Files/SketchUp/SketchUp 2013/SketchUp.exe should open SketchUp [with a new file from a template] when run in IE, but the user will be prompted to let it execute because any exe has to have express permission - these are strict internet protocols to protect from virus/trojans etc that might otherwise do things without the user's prior knowledge... In other browsers like Firefox/Chrome you'll get different results, but all will ask the user what to do - usually they as you if you want to save the file NOT run it ! ...
  • Modifying Web-Dialog content size possible?

    4
    0 Votes
    4 Posts
    301 Views
    renderizaR
    @aerilius said: Why do I reply here I'm not a god… I am currently building a temple on your honor...at least a SketchUp model of it for sure! Thanks!
  • Axis Orientation

    3
    0 Votes
    3 Posts
    252 Views
    timberlineT
    @tt_su said: In SketchUp everything is built around Z being up. You will probably find it easier to convert imported geometry to match this and have the exporter adjust the axis again later for the target application. Thank you for this info. After a Google search I started to assume that this would be the case, but you have confirmed it. Being a beginner in SU I didn't want to start coding and hacking a 'square peg into a round hole'. I will code a function to transform the geometry between the two programs so that the data will react to each of the programs assumptions.
  • Problem with face.normal directions...help!

    10
    0 Votes
    10 Posts
    558 Views
    TIGT
    Back to the question... NorthEast Quadrant: normal.y>0 normal.x>0 SouthEast Quadrant: normal.y<0 normal.x>0 SouthWest Quadrant: normal.y<0 normal.x<0 NorthWest Quadrant: normal.y>0 normal.x<0 As you said: Due North: normal.y==1 normal.x==0 Due East: normal.y==0 normal.x==1 Due South: normal.y==-1 normal.x==0 Due West: normal.y==0 normal.x==-1 Exactly Vertical: normal.z==0 Upwards Facing: normal.z>0 Downwards Facing: normal.z<0 Exactly Up: normal.z==1 Exactly Down: normal.z==-1
  • Transformation.rotation help

    5
    0 Votes
    5 Posts
    1k Views
    tt_suT
    What fredo said, Transformation.axes sounds like the method you want to use: http://www.sketchup.com/intl/en/developer/docs/ourdoc/transformation.php#axes
  • Scripting/processing question..

    7
    0 Votes
    7 Posts
    459 Views
    Chris FullmerC
    I think people have pretty good success with getting SU to run under WINE. I've never seen anyone try CentOS. Good luck!
  • Load and/or Save a SKM file to/from a model in Ruby

    10
    0 Votes
    10 Posts
    958 Views
    TIGT
    That's a work around if Java's not available... Sometimes decompression tools also hijack .JAR extensions ! If you are using PC only you can use VBS with 'unzip' etc...
  • X-UA-Compatible meta tag changes image button position.

    6
    0 Votes
    6 Posts
    759 Views
    renderizaR
    @aerilius said: Once you override such a property (like padding: 0) the button can't be rendered anymore using the theme, and it won't look native anymore. I noticed that before using paddin:0 the button had a gloss effect on the button. @aerilius said: without width/height works fine for me. I tried this and it does center the button image but then the button is too big. @tt_su said: Exactly what code to use depend on the scenario and layout you have. Got a small snippet? http://sketchucation.com/resources/pluginstore?pln=RND_KeyScene The .html file is inside the "RND_Keyscene" folder...its called "rnd_keyscene.html" Note: Using the paddin:0 worked ok even though that will mess the theme used for button but I can deal with that. Thanks!
  • [Project] Community Documentation Effort

    11
    0 Votes
    11 Posts
    450 Views
    M
    I'm still (extremely) new to ruby scripting and Git, but I'd be happy to help where I can!
  • &quot;Enter&quot; key is not working in SU WebDialogs. Bug?

    4
    0 Votes
    4 Posts
    317 Views
    fuzzybroF
    Ah, so simple Thank you guys!
  • Migrating plugins to SketchUp 2013

    14
    0 Votes
    14 Posts
    2k Views
    danielbowringD
    Epic bump, but is there any news on this? Was upgrading the installation ruby put on the backburner? Should we still be expecting this sometime in the future (or a complete library at least)? To me at least, this seems like a really important feature - plugins and the community around them are a powerful part of sketchup.
  • Help Faking Ambient Occlusion!

    11
    0 Votes
    11 Posts
    649 Views
    renderizaR
    I still plan to keep working on this and will post future progress. The best case scenario will be to make it work on faces that have angle...so far my attempts have failed in solving this but will keep trying.
  • Mixed Up Data

    8
    0 Votes
    8 Posts
    392 Views
    s_k_e_t_c_h_yS
    Fixed. Thanks Dan for the reminder for the namespace. Namespace now implemented =-P.
  • Color by layer

    3
    0 Votes
    3 Posts
    221 Views
    TIGT
    Nothing in the API AdamB did moot something that came to naught. A way back I made some clunky API additional like layer.color [Pro>DXF] BUT that exports all layers and analyzes the layers colors from the DXF... A really convoluted way BUT you do get the layer color RGB values !
  • String into Array...need help!

    2
    0 Votes
    2 Posts
    164 Views
    renderizaR
    Found it... array = "a,b,c".split(',') array[0] #=> a array[1] #=> b array[2] #=> c Cheers!
  • [Plugin][WIP] Layers Panel - Dev

    45
    0 Votes
    45 Posts
    10k Views
    jiminy-billy-bobJ
    Beta's out
  • Can't regroup an exploded ComponentInstance

    10
    0 Votes
    10 Posts
    2k Views
    Chris FullmerC
    This snippet works for me, and I think its fairly safe? (We'll let one of the other Ruby folk weigh in on that if they feel they need to ). random_classes = [] ents_to_regroup = [] a = Sketchup.active_model.selection[0].explode a.each do |e| random_classes << e.class end random_classes.uniq! random_classes.each do |e| single_class_objects = a.grep(e) if single_class_objects[0].respond_to?(;bounds) then ents_to_regroup << single_class_objects end end ents_to_regroup.flatten! Sketchup.active_model.entities.add_group(ents_to_regroup) This will take the selected component and explode it. It then looks at the class of every object that was returned and decides if that class can be added to a group by testing to see if an object from that class responds to the bounds method, (which is in the Drawingelement class and inherited by all valid SU geometry entities). So if an object from the given class does respond to the bounds method, then it is safe to try to add those objects back into a group. If they do not respond to that method, then they get skipped. Hopefully the logic makes sense. That snippet worked fine for me. You do have to have an object selected to test that piece of code. Chris
  • [Talk] Edit Mode Warning Flag (Beta)

    10
    0 Votes
    10 Posts
    1k Views
    Rich O BrienR
    Edit
  • Hide selected objects from scenes except the active one?

    3
    0 Votes
    3 Posts
    249 Views
    renderizaR
    Thanks TIG but there is a problem... Lets say I have two scenes with two objects and I select the 1st object from 1st scene and do the script...it will work but...if I go to 2nd scene and select the 2nd object to do the script when I go to 1st scene the 1st object ends up hidden as well which it was not supposed to. (Hope this makes sense) Anyhow it may be that the page.update needs to first select each page before doing update. So that means I can't use your suggestion but I did find a solution... Here is the code... model = Sketchup.active_model pages = model.pages sel = model.selection c_page = pages.selected_page skip = [] skip << c_page.name pages.each {|page| pages.selected_page = page if page.name != skip.first sel.each do |e| e.hidden = true end page.update end } page_num = 0 pages.each {|page| if page.name == skip.first pages.selected_page = model.pages[page_num] break end page_num+=1 } skip.clear Note: Updated the explanation a bit to fix it a little so it makes more scene hopefully.
  • Resolution of pre-distorted textures

    3
    0 Votes
    3 Posts
    258 Views
    OricAtmosO
    Thanks for the suggestions! You're right, there's no single "tiling factor" in a distorted texture. I think I'll ignore this problem for now and solve more important issues first. By the way, is there perhaps some kind of exporter plugin template that does all the complicated stuff of getting the needed model information out of SketchUp? Something that's only missing the actual writing of the target file format.

Advertisement