💡 LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering Download Trial
  • Layer Material Alpha - Not Possible in API?

    6
    0 Votes
    6 Posts
    2k Views
    placidfuryP

    I don't know - I may do something like that, but I probably won't. I have a new tool I made as part of my plugin and it creates a draw layer for different defined area types, and I just wanted it to have some level of transparency automatically so it didn't totally cover what may be underneath. But, I think I'll leave it alone for now. I just just figured I must have been missing something, as setting the layer appearance seems very... basic, to be a missing feature.

  • Animation SUalive extension. May you test beta version?

    60
    0 Votes
    60 Posts
    19k Views
    SUaliveS

    Hello,

    SUalive Free 2.40 under review...

    see features update on the following thread (replay slider, render)
    http://sketchucation.com/forums/viewtopic.php?f=323&t=65306&p=631451#p631451

    Have a good day
    WhyDi

  • Stopping script execution

    6
    0 Votes
    6 Posts
    3k Views
    F

    I did think it was a bit complicated myself. Most of my programming experience was years ago on 3rd GL stuff. All this is new, but I do have fairly good programming sense.I did try the CSV modifier, but I wasn't using it correctly. That's when I stumbled on JSON. It's only a one shot deal for me, but I have to admit, I do like Ruby! Will be studying your example.
    Thanks again.

    Everett

  • Mac OS materials issue

    2
    0 Votes
    2 Posts
    2k Views
    D

    probably same reason as this...

    Link Preview Image More mac 'Color' panel woes

    there are many ways to end up with <auto> colors in SU… I wrote an extension that hopes to aleviate the fustration caused… it assigns new names using a javascript color names library… but, on my mac, although the colo…

    favicon

    SketchUp Community (forums.sketchup.com)

    john

  • Rendering_options, "back edges"

    11
    0 Votes
    11 Posts
    3k Views
    Dan RathbunD

    @tboy said:

    Any updated info for this topic?

    YES. (5 years after this thread ...)

    In the SketchUp 2015 release, a new key was added to the RenderingOptions hash:

    The key is: "DrawBackEdges"

    See API documentation:
    http://ruby.sketchup.com/Sketchup/RenderingOptions.html

  • How can I disable keyboard shortcuts while in a tool?

    5
    0 Votes
    5 Posts
    3k Views
    renderizaR

    Hi, I am running on this same issue... Has this been fixed yet or is there a trick around this?

    Thanks in advance!

  • Iterators in Sketchup Ruby

    5
    0 Votes
    5 Posts
    2k Views
    D

    try a 'one liner' directly in SU's Ruby Console...

    for count1 in 0..5; print count1, " "; end

    I think the errors are caused by RubyConsolePro rather than the snippet...

    on a PC, SU's Ruby Console has only recently accepted 'multiline' input...

    Mat always saves the snippets as files and loads those...

    john

  • Unscramble my own old plugin

    2
    0 Votes
    2 Posts
    2k Views
    jiminy-billy-bobJ

    You can find an unscrambler pretty easily on Google...

  • Transformation method not working in 2018 the same as 2017?

    3
    0 Votes
    3 Posts
    2k Views
    SminkyS

    Thank you so much TIG!
    Adding a simple grep for instances solved it.
    Best regards and sorry for the newbyness.

  • Bugsplat using followme tool

    9
    0 Votes
    9 Posts
    3k Views
    Dan RathbunD

    As I mentioned in a reply the bug report (it is ridiculous and should be closed.)

    Some of the coordinates are in MILLIONTHS (or smaller) of inches !

    One near the end has a -16th exponent:

    points << Geom::Point3d.new( 4.194623966922387e-16, 0.20218771239100042, 65.51048909232898 );

    That is about 42 femtoinches. In other words,
    42 millionths of a nanoinch !
    (42 millionths of a millionth of an inch.)

    Does the OP (@torel) understand that SketchUp has an internal coordinate tolerance of only 1 one thousandth of an inch ?

    Why would anyone want to be passing SketchUp coordinate floats with up to 19 decimal places ?

  • Some, but not all, definition attributes are set

    17
    0 Votes
    17 Posts
    4k Views
    K

    Thanks for your continued help, Dan.

    I've been closely following the methods outlined in "Sketchup & Layout for Architects" by Sonder and Donley (see http://sketchupbook.com). I use the Sketchup and Layout templates that are provided with great success -- the documents that are generated from all of the scenes look great (although I'm still learning -- there's a lot of information provided in the book that I have yet to understand and/or utilize). The methods in the book appear to expand the concepts outlined in the "Ten Fundamentals about LayOut for Architects" tutorial.

    Modern, stick-built structures don't require the architect to detail each unique lumber component, fortunately. Timber Frame builders, however, often require detailed dimensions for each unique timber. This is where I think the methods for timber construction might need to add some new steps to the process.

    A frame I'm currently working on (a 744 sf garage) has 24 different frame members. Using the same type of methods in the book I would have to create 76 different scenes (24 * 4) for the four views of each member. I would then create 24 layout pages each having four viewports for each of the members so that dimensions can be added. I'm just trying to wrap my head around how I might automate these tasks in an effective way -- especially when there are several design iterations that would require regenerating some scenes and layout pages.

  • Deleting Component Definition

    3
    0 Votes
    3 Posts
    3k Views
    K

    Thanks Dan for the explaination. I had tried other terms than clear that was just the last version. I will let the user take care of deleting the old panel def if they need to remake the same panel. The neW panel will automatcaly get the new #diget Sketchup adds to components with the same name. Now I know why I couldnt delete def. Never saw the purge unused.

    THANKS AGAIN ans. with exp are very helpful.
    Keith

  • Excluding scenes from animation

    11
    0 Votes
    11 Posts
    4k Views
    Dan RathbunD

    @skastafari said:

    I am looking for a method to exclude pages from my animation similar to how the "Include in animation" checkbox works from within Sketchup's scene editor.
    ...
    I had found a thread from Dan Rathbun somewhere dating a couple years back discussing a need for this, but I can't seem to find what the outcome was. If anyone knows, please advise.

    FYI,... Finally, ... the API has been updated for version 2018 and higher ...

    ... both a query method and a setter method have been added to the Sketchup::Page class.

    Sketchup::Page.include_in_animation=

    Sketchup::Page.include_in_animation?

  • How to release a plugin

    13
    0 Votes
    13 Posts
    3k Views
    artmusicstudioA

    hi dan,
    thank you very much,
    i was already there, but missed somehow to press the button once more after uploading, was too tired probably 😄
    it works now perfectly (and there were no problem with the code, so things develope well...)
    stan

  • How to get &quot;Plugins&quot; menu name in other language?

    10
    0 Votes
    10 Posts
    3k Views
    TIGT

    It's also a bad idea to set shortcuts anyway [even if you could do it effectively !] - the user might be angry at you when you overwrite their own shortcuts with yours !

    You can instruct the user of your tool how to add their own shortcuts, but don't force them - you are meant to be their friend, not their master.

    If you want the user to press certain keys to do certain things in your Tool, then you are pretty much limited to Ctrl, Alt, Shift and Tab, or say numbers 0-9 followed by other characters which can be parsed off from the user's typed text input - so "1:3" can be read in as a slope of "1 in 3", or "1left" gives "left" when leading numerals are stripped off...
    All other keys can potentially be already assigned to other tools and actions by the user, so pressing "L" for left is unlikely to work as that will likely invoke the "Line" tool - and it's including key-combos like Ctrl+Shift+V [typically for Edit>PasteInPlace]. So that's kind of use in your Tool is essentially a bad idea...

  • Remove dynamic attributes in ruby

    5
    0 Votes
    5 Posts
    3k Views
    Dan RathbunD

    David, why are using this crazy indentation ?

    Ruby uses 2 space indents, and all code at the same level must be at the same indent:

    def delete_attribute mod = Sketchup.active_model mod.definitions.each do |d| d.instances.each do |i| d.delete_attribute 'dynamic_attributes', 'lola' i.delete_attribute 'dynamic_attributes', 'lola' end end end

    This way the beginning of blocks line up with the indent lines in code editors.

  • ? [Question] - A Ruby Calculator ?

    40
    0 Votes
    40 Posts
    34k Views
    Dan RathbunD

    @turbodizayn said:

    Hi! Does it work in SU2016 ? I have a message, " Could not activate SketchUp application window."

    I just tested version 2 of "ruby_calc_2.rb" in SketchUp 2016, and this works.

    Version 2 is in this post:
    http://sketchucation.com/forums/viewtopic.php?f=180&t=22660&view=unread#p535117

    What is "it" you refer to ?

  • LibFredo6 v8 not loading or being recognized

    2
    0 Votes
    2 Posts
    2k Views
    fredo6F

    @ajhook said:

    I've installed the latest version of LibFredo v8.0, am running Sketchup 2017 on Mac OS High Sierra. Every tie I restart Sketchup, I get the message 'You must intstall LibFredo6 version 6.9 or higher to run Fredo6_RoundCorner. But I have version 8 installed. When I go to my Extension Manager, it shows that LibFredo ver8.0b - 19 Nov 17 is installed and enabled. Why do I keep getting this error message?

    Alan

    I think you also need to get fresh version of RoundCorner (and other plugins).

    On High Sierra, there is an incompatibility introduced by Apple (order of file loading). So the fixes are in LibFredo6 7.9 and higher, but as well in each plugin.

    Fredo

  • Where are shortcuts stored in sketchup2018

    7
    0 Votes
    7 Posts
    3k Views
    S

    I expect that SketchUp reads these json files as it starts and writes out revised copies as it quits. So, if you edit the file while SketchUp is already running, SketchUp will not see the changes and will overwrite with its in-memory version when it quits. You need to quit SketchUp before editing any preferences files.

  • Where can I find webdialog's position and size in su 2018

    3
    0 Votes
    3 Posts
    2k Views
    W

    @tig said:

    C:/Users/USERNAME/AppData/Local/SketchUp/SketchUp 2018/SketchUp/**PrivatePreferences.json**

    For example, for the "ExtensionStore" toolbar info, you need to find the entries using some grepping and parsing/splitting... for the toolbar

    "RubyWorkspace\\ToolbarsUser-Bar8"; { > "BarID"; 59661, > "BarName"; "ExtensionStore" > },

    and from its BarID, its status later on

    "RubyWorkspace\\RubyToolBar-59661"; { > "Columns"; 0, > "DockBarId"; 0, > "Visible"; 1 > },

    and for its main dialog details

    "WebDialog_SketchUcation ExtensionStore"; { > "Height"; 918, > "Left"; 11, > "Top"; 84, > "Width"; 862 > },

    for this kind of entry note that another 'prefix' might apply for the newer HTML dialog type - test it..

    Great!
    Many thanks!
    wikii

Advertisement