⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • Copyright icons.

    6
    0 Szavazatok
    6 Hozzászólások
    213 Megtekintések
    jolranJ
    Asking is probably wise. I'll see what I'll do later on. It's also not that hard creating new icons Thanks for the advice, both of you!
  • It's that time again - mind is goo

    5
    0 Szavazatok
    5 Hozzászólások
    304 Megtekintések
    TIGT
    (2 * 3).m
  • Webpage pin

    4
    0 Szavazatok
    4 Hozzászólások
    205 Megtekintések
    A
    1001 Thanks Chris ! it's exactly what I was looking for. You can't imagine how many time I search.
  • [plugin] Ruby Raytracer

    17
    0 Szavazatok
    17 Hozzászólások
    5k Megtekintések
    N
    @unknownuser said: Thanks for the sample code and the explanation. I wasn't aware that a Raytracer can be written in such a small piece of code!! Quite tiny indeed... there are others too, like http://tog.acm.org/resources/GraphicsGems/gemsiv/minray/
  • Download files with a SketchUp plugin

    47
    0 Szavazatok
    47 Hozzászólások
    8k Megtekintések
    R
    Is there a Windows build in sight?
  • Map texture onto non-planar "quad"

    10
    0 Szavazatok
    10 Hozzászólások
    488 Megtekintések
    Chris FullmerC
    @adamb said: Also tried Chris Fullmer's shape blender but it ignores UVs Yeah, sorry Adam. I don't actually do a lot of rendering or texturing, so I'm not really a UV person yet. In theory I'll be re-writing shapebender someday to account for UV's. I'm sure you guys are excited thinking about that headache - everyday 20 new noob questions from me about textures
  • .SKP File Structure

    3
    0 Szavazatok
    3 Hozzászólások
    766 Megtekintések
    tbdT
    which is not support that much anymore. and needs MS COM mumbo jumbo to work
  • UI.start_timer() is the new while

    3
    0 Szavazatok
    3 Hozzászólások
    313 Megtekintések
    J
    I've experimented with using start_timer, and changing the time and/or partition size on the fly. It just gets far too slow to be worthwhile. http://forums.sketchucation.com/viewtopic.php?f=180&t=27092&p=234026#p234026 Using an Animation class instead of a timer may be easier to code, but I'd guess the result would be similar.
  • Componant axes

    7
    0 Szavazatok
    7 Hozzászólások
    365 Megtekintések
    C
    Thanks a lot for your answer, Mayby i'm wrong, but i believe, you misunderstand me. so i show you what i've programmed: ` driller= Sketchup.active_model.definitions.load("\driller.skp") pos_driller = Geom::Point3d.new 47,32,25 set_driller= Geom::Transformation.new pos_driller instance1 = entities.add_instance driller, set_driller cuboid_wood = Sketchup.active_model.definitions.load("\Cuboid_wood.skp") pos_cuboid = Geom::Point3d.new 0,0,0 set_cuboid = Geom::Transformation.new pos_cuboid instance2 = entities.add_instance cuboid_wood, set_cuboid` but this is hardcoded and i want that the computer places the objects correctly together automatically,by calculating the best position, but i can't calculate the size of these objects, because i don't know how. (i would have to measure the size with the measure-tool in SU with the mouse, but it should retrieve the values with a method) I have the task to do that with many components, that's why i wouldn't say the detailed coordinates for every components, which i load. the programm should be able to load componentes, put it together correctly and dynamically, take some photos in different perspectives, save these pictures, clear it all and start at the beginning with other components ... everthing is quite clear to me, with the exception of the hardcoded coordinates of these objects P.S. i have wrote this problem in a new topic too
  • Add_faces_from_mesh returns what ?

    3
    0 Szavazatok
    3 Hozzászólások
    272 Megtekintések
    Didier BurD
    Thanks ThomThom, Here is what I planned to do: nEntsBefore=Sketchup.active_model.entities.length Sketchup.active_model.entities.add_faces_from_mesh(m) nEntsAfter=Sketchup.active_model.entities.length arrayOfNewFaces=[] nEntsBefore.upto(nEntsAfter-1) { |i| next if ent=Sketchup.active_model.entities[i]; arrayOfNewFaces.push(ent) } Your code is mush more simple than mine
  • Bad character in texture file name

    7
    0 Szavazatok
    7 Hozzászólások
    263 Megtekintések
    TIGT
    Just trap for any non-standard characters and replace them with _ It's done all of the time in things like OBJ exporters...
  • Select all in layer

    4
    0 Szavazatok
    4 Hozzászólások
    664 Megtekintések
    thomthomT
    @tig said: comparing strings is probably slower It is. Much slower! At all times avoid string comparisons if possible.
  • Merging two co-linear edges

    6
    0 Szavazatok
    6 Hozzászólások
    1k Megtekintések
    thomthomT
    Yea, erasing the zero length edge would make a gap between adjacent edges. ...I think... might need to verify that again.
  • TypeError: can't convert into Array

    15
    0 Szavazatok
    15 Hozzászólások
    562 Megtekintések
    Dan RathbunD
    @thomthom said: So it appears what happens is not that f.to_a is called, but instead Array.new( f ) - and Array.new uses .to_ary . Actually (if you use the CHM Ruby refdoc,) the source shows that the #| method explicitly calls: %(#0000BF)[arg2 = to_ary(arg2);] ie, it makes a copy of the second arg to use locally (within its body.)
  • Localhost in webdialog - bridge to everywhere?

    8
    0 Szavazatok
    8 Hozzászólások
    895 Megtekintések
    chrisglasierC
    Now I have got to the stage where I can pop my freestanding php file into a web dialog but so I can run Sketchup either via my localhost or website I need to have a ruby version of this php: class IP{ public function Iptrue() { if ($_SERVER['REMOTE_ADDR'] == "127.0.0.1"){ echo true; } } } Can this be done with Sketchup ruby API? Thanks Thanks
  • Snapto or glueto with 2 faces

    10
    0 Szavazatok
    10 Hozzászólások
    397 Megtekintések
    TIGT
    Robin Please reread my post you have to set the definition's is2d= AND its snapto=... and then the instance's glue_to= ... If you are loading a premade component ten why not give that the correct behaviors so you needed worry about reinventing them each time? and then you just need to place the component onto the face and tell it to glue_to it! You should add the instance with a transformation, OR Geom::Transformation.new() and then later transform it so that it's located on the face to which you want to glue it - it's z-axis needs to be parallel to the face.normal and it's origin somewhere on the face... It will not magically 'jump' onto the face - you need to code that. There after it will stick onto the face's plane like any other glued component, and move with the face too...
  • Ruby slowdown

    7
    0 Szavazatok
    7 Hozzászólások
    469 Megtekintések
    thomthomT
    @tig said: Printing to the console will slow things greatly... That's a good pointer - if you use the Ruby Console to debug then the more you output the more it slows down. I use a small snippet that uses the Win32 API to clear the content of the console in order to keep it responsive. I also use Win32 to output data to DebugView.
  • Adding more plugins to submenu?

    8
    0 Szavazatok
    8 Hozzászólások
    441 Megtekintések
    S
    Dan, Thanks I finally got it to work using the code you provided. Derek
  • Merge groups

    3
    0 Szavazatok
    3 Hozzászólások
    406 Megtekintések
    C
    TIG thank you very much.
  • Make Layer0 Plugin

    4
    0 Szavazatok
    4 Hozzászólások
    185 Megtekintések
    C
    This is awesome and exactly what i was looking for, thanks a lot!

Advertisement