πŸ’‘ LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering Download Trial
  • Material with coloured or distorted texture

    15
    0 Votes
    15 Posts
    2k Views
    T

    @daiku said:

    gourp.entites will give you the array of entities in the group. Then run through all the items in the array, and look for your face.

    I just want to OPEN a group. I am using group.entities.. but it is not the case. uvHelper behaves different INSIDE.

    There is method in model called close_active. But I cannot find make_active. How can I achieve it?
    In other words - is there way to do outliner double click in Ruby?

    Tomasz

  • Adjustable Line Widths aka Fat Lines

    15
    0 Votes
    15 Posts
    2k Views
    T

    Here's some virtual "grass" on top of the grass texture. 😐

    Todd

    http://www.sketchucation.com/forums/scf/sas/Ruby/Picture%2019.png

  • UI.openURL(executable + params)

    17
    0 Votes
    17 Posts
    4k Views
    TIGT

    @unknownuser said:

    I have no idea. I am working on XP.

    Thanks anyway.

    Just upgraded to a new PC - Core 2 Quad with 2Gb RAM - but it runs Vista...

    Vista seems to be the problem...

  • UI Messagebox within LMB method of a tool

    6
    0 Votes
    6 Posts
    1k Views
    T

    I have found it! Silly me. I have placed view.invalidate at the end of draw method 😳

    def draw(view) if( @ip1.valid? ) if( @ip1.display? ) @ip1.draw(view) @drawn = true end end if( @ip2.valid? ) @ip2.draw(view) if( @ip2.display?) self.draw_geometry(@ip1.position, @ip2.position, view) view.invalidate #WRONG! @drawn = true end end

    Each time UI.messagebox was invoked SU called draw method which erased MB from the view.
    Thanks
    Tomasz

  • 3d interaction objects?

    8
    0 Votes
    8 Posts
    1k Views
    N

    Is this script easy to write? Can someone write one for this scene jumping in the animation?

    Thanks again.

    [honsuales]

  • Transparency shadow threshold

    16
    0 Votes
    16 Posts
    3k Views
    PixeroP

    Hmmm... there seem to be a problem. Now it doesnt work the way it did when I tested it.
    I'll try it more at work tomorrow.
    For now you can use the other script, jsShadowControl, to turn shadow casting and shadow receiving on or off. Even for non transparent objects. πŸ˜„

  • Ruby and Open GL

    4
    0 Votes
    4 Posts
    1k Views
    A

    But seems to be supported by some SDK programming, am I right? I thought you mean a Ruby-only approach. πŸ˜„

    azuby

  • Setting the scale in sketchup

    2
    0 Votes
    2 Posts
    1k Views
    L

    I'm really trying to understand what you mean, can you upload an image that demonstrates the issue?

  • Animation Presention Bundle 2

    8
    0 Votes
    8 Posts
    2k Views
    R

    Wow, those are some seriously long transition times. If you're working with a large site model, I'd suggest something along the lines of 10-20m/s for motion speed. Of course, it all depends on whether you want fly-by, drive-by, or walk-by speed, and the physical size of the site/campus.

    As it is, you can use the multiplier. Select all scenes, use 1/5 as your multiplier, then click the "Apply to Selected TT", then click "Save Changes". That will speed things up considerably.

    The Transition Time is a time in seconds that it takes to transition from one scene to the following scene. Your TT of 80 seconds for scene 1 is a LONG TIME. That's why I suggested using 1/5 for your multiplier - it will yield a 16 second TT (and other selected scenes will also be reduced by 80%).

    Hope that helps...

  • Pushpull coding problem

    8
    0 Votes
    8 Posts
    1k Views
    Didier BurD

    Hi,
    The simplest way:

    arc= model.entities.add_arc([x+@dist, y+@dist, z], vecx, vecz, @d/2, 0, pi/2, @s) line1 = model.entities.add_line([x+@dist, y+@dist, z],[x+@dist, y+@dist+@d/2, z]) line2 = =model.entities.add_line([x+@dist, y+@dist, z],[x+@dist+@d/2, y+@dist, z]) face = model.entities.add_face[arc,line1,line2] face.pushpull @thick

    πŸ˜›
    Regards,

  • What is wrong with this script?

    9
    0 Votes
    9 Posts
    2k Views
    PixeroP

    Got it working! Thanks for the help. Read more here:
    http://www.sketchucation.com/scf/viewtopic.php?f=9&t=1986

  • Question About Extension Toolbars

    7
    0 Votes
    7 Posts
    1k Views
    GaieusG

    In my office I have Free SU 6. I can check - unless someone will be faster than me. At home I cannot install Free SU6 for I have Pro and they don't run parallel with each other.

  • V6 Downloadable Ruby Help?

    5
    0 Votes
    5 Posts
    1k Views
    PixeroP

    Thanks.

  • Autosave

    4
    0 Votes
    4 Posts
    888 Views
    BurkhardB

    thanks todd for taking a look on it.

  • Shortcuts.rb: how does it work?

    5
    0 Votes
    5 Posts
    1k Views
    TIGT

    Here's a 'universal solution'...
    Paste this into a file:

    (c) TIG 2007, ANY without warranty... BUT you can use it freely... however, it'd be nice NOT to claim it as your own OR at least just to mention me when you do reuse it... To use it: Put it in the Plugins folder... as 'GetShortcuts.txt', and the you can manually load it, when required [load"GetShortcuts.txt"] in the Ruby Console...

    require 'sketchup'

    Choose where you want the list to go PICK ONE # ...

    #filepath=ENV["TEMP"]+"/Shortcuts.txt" ### list's in, =YOUR Temp...
    #filepath=ENV["TMP"]+"/Shortcuts.txt" ### =YOUR Tmp...
    filepath="C:/Temp/Shortcuts.txt" ### =SystemTemp (PC)

    file=File.new(filepath,"w")
    Sketchup.get_shortcuts.sort!.each{|s|file.puts s}
    file.close

  • Key sequence in ruby

    10
    0 Votes
    10 Posts
    2k Views
    T

    Oops.

    Command = 1048576
    Alt = 524288
    Control = 262144

    The Command key, also known as the "apple" key, shown as a ⌘ in the Doc, is the Mac equivalent to the PC's CONTROL key. The control key on a Mac isn't used that often.

    The ALT key is also named the Option key.

    Todd

  • Select Visible?

    4
    0 Votes
    4 Posts
    1k Views
    J

    @cphillips said:

    @jim said:

    Is there a plugin to select only geometry that can be seen on the screen?

    Edit: Including the backfaces. Maybe select visible is a bad description. How about select all within the field of view?

    Cant you just use select and drag across the whole window? That does the same thing.

    Yes, but wanted to do it using Ruby.

  • Keycode with onKeyUp question

    3
    0 Votes
    3 Posts
    977 Views
    PixeroP

    Thanks! I'll try that.

  • Script icons

    7
    0 Votes
    7 Posts
    1k Views
    CadFatherC

    yes i thought so - was thinking to organise my plugins menu but went up in a ballon...

    (and thanks for your great plugins)

  • Vector (line) from object to object?

    3
    0 Votes
    3 Posts
    811 Views
    T

    An observer script could be written to "link" objects to accomplish this.

Advertisement