ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Save skp file errors

    4
    0 Votes
    4 Posts
    944 Views
    Al HartA
    Bill, Were you ever able to save the .SKP where you wanted them? I tried saving it with the base name (xxx.skp) and no path. I don't think it resaved it, althoug it returned true. sname = File.basename(sfile) model.save(sname) I then saved it with new names using: component_name = File.basename(sfile,".*") sname = component_name + "_new.skp" model.save(sname) This seems to have worked (saving a new SKP in the original folder)
  • Purge

    13
    0 Votes
    13 Posts
    2k Views
    TIGT
    @unknownuser said: TIG, that is great. Works like a charm. Just run it, then run purgeall and poof. Thanks. At least that works ! Now for Roof.rb glitches. Perhaps you should all go to church and retry it ?
  • Copying Files

    3
    0 Votes
    3 Posts
    560 Views
    J
    I see, the methods listed in the File class are actually defined in the ftools.rb file. Also, the docs recommend using FileUtils.rb over ftools.rb. Thanks. I was toying with the idea of cleaning up .skb and AutoSave files from the the user's model folder.
  • Selecting Entities inside composite Entities

    8
    0 Votes
    8 Posts
    2k Views
    K
    That's not a bad idea as an alternative, TIG. I've thought of something similar myself, though mine was admittedly less sophisticated. (I was just going to change the edge colours and throw away the original value.) I'll certainly add that to my growing list of fall-back plans. Thanks again for all the input, Kevin
  • Hatch script?

    4
    0 Votes
    4 Posts
    821 Views
    B
    Thanks guys, I'll give it a whirl. By the way, do you have any recommendations? Mike
  • Is there an "Undo" script?

    3
    0 Votes
    3 Posts
    738 Views
    B
    Your right, I dont think thats what I had in mind. There are times that I draw something only to find that the geometry is wrong when I change the view. So rather than scrap the piece all together, I start "undoing" what I did and backing out of the errors till I get back to where I can start again. There are only so many times that Undo will work, and yes, you think I would catch it before it gets that far, lol. Thats why I was thinking I saw an Undo script that would back up many times. Thanks for the response Mike
  • SU6 SKM processing

    3
    0 Votes
    3 Posts
    798 Views
    tbdT
    that means that the user must export as OBJ first - not acceptable so I think I will use TextureWriter as there is no Ruby method that points to the .skm file to do a .zip parsing of .xml files. urgh thanks anyway
  • Look around tool in ruby?

    8
    0 Votes
    8 Posts
    1k Views
    J
    You need to use camera.set. The vector from the target to the eye is the direction. m=Sketchup.active_model view=m.active_view camera=view.camera v1 = (camera.target - camera.eye).normalize v2 = camera.direction.normalize p v1 == v2
  • 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 [image: 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.

Advertisement