sketchucation logo sketchucation
    • Login
    1. Home
    2. tomot
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 116
    • Posts 703
    • Groups 1

    Topics

    • T

      New translate request?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      111 Views
      fredo6F
      Then use p3 = p2.offset p2.vector_to(p1), d This gives the point p3, which at distance d of P2 in the direction of p1 Fredo
    • T

      Finding new rotated 3d coordinate points?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      140 Views
      TIGT
      Using group.move!(t) will miss the 'undo stack' [typically used in animations], whereas using group.transform!(t) won't. You can apply a transformation to a 3d point [and vector] too, to make a new reference use pt1new=pt1.transform(t) or pt1.transform!(t) to 'reuse' pt1 which is '!' changed to its matching vertex's current value https://developers.google.com/sketchup/docs/ourdoc/point3d#transform
    • T

      Was Yukihiro Matsumoto interested in Math?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      1k Views
      T
      Thank you gentlemen: much appreciated, and I promise not to do math past my bedtime again. (Unless I forget!)
    • T

      Ruby transformation issue?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      96 Views
      TIGT
      So as I thought I had explained... make a transformation [tb] for 'base' and use it just on that entity group.entities.transform_entities(tb, **base**) THEN make and use another transformation [t] on the whole 'group'... Also note that your approximations of PI etc could be replaced by 60.degrees or other values in degrees, to give consistently accurate angles...
    • T

      How to make a Solid Component from a Solid Group?

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      20
      0 Votes
      20 Posts
      1k Views
      T
      Actually your roof.rb is a good starting point for an editable rafter tails addition, where the editable rafter tail components only extend from the exterior building envelope to the width of the roof overhang. Is spring in the air yet?
    • T

      Lightmaps in Vray for SU?

      Watching Ignoring Scheduled Pinned Locked Moved V-Ray render plugins extensions
      6
      0 Votes
      6 Posts
      2k Views
      V
      You can export geometry from SketchUp. OBJ and 3DS formats seem to be the preferred. I am sure there are plenty of programs that can do baking. V-Ray in SketchUp is not one of them though.
    • T

      Icon to layer connection?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      110 Views
      Dan RathbunD
      I know what AutoCAD can do (I've been using it for over 25 years.) Suddenly your talking menus (which I have no problem creating in Sketchup. I can even using system calls create a toplevel menu, if I wish to. But Google does not seem to want us to do this in a general sense. They want everyone's main menubar to look the same, for tutorial purposes, I suppose.) Back, on saubject. Commands. The API allows us to create commands. I even told you how I would do the specific one you ask about. I am in the process of creating my own Cline tool, so perhaps I'll expand it a bit to Text, Dimension, and 3Dtext; .. since I was gonna have a default Cline Layer. It would be just adding in some more elsif clauses, and so forth.
    • T

      Storing attributes?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      291 Views
      T
      thanks Dan and Tig I will have a look at that!
    • T

      Follow me code issue?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      12
      0 Votes
      12 Posts
      873 Views
      Dan RathbunD
      Good "Occamish" advice TIG.
    • T

      UI openpanel - path issue?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      564 Views
      Dan RathbunD
      If you are asking, "Can UI.openpanel return a path?" yes... by hotwiring it... baseDir = Sketchup.find_support_file('Plugins') relDir = "examples" title = "Choose a Dir..." openpath = File.join(baseDir,relDir) my_path = UI.openpanel( title, openpath, "*." ) if my_path.nil? # the user cancelled the dialog else my_path = File.expand_path( File.dirname(my_path) ) end (Edited for clarity, added openpath local.) The filetype filter does not work on PC. (Windows itself is overriding the parameters, using MRU settings in the Registry for the File Open dialog.) Now if you are wondering if you can first set the working dir, and will the UI.openpanel go there? Not really,.. you must make the call with the wd: Dir.chdir('C;/') my_path = UI.openpanel( "Choose Dir...", Dir.getwd, "*." ) if my_path.nil? # the user cancelled the dialog else my_path = File.expand_path( File.dirname(my_path) ) end
    • T

      Erasing entites problem?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      379 Views
      TIGT
      face = entities.add_face($pt6, $pt8, $pt7, $pt5) is logical as you are adding a face from a set of points. I fail to see the full logic behind your suggested new API method face = entities.erase_face($pt6, $pt8, $pt7, $pt5) - but you could of course mimic it within your own method quite simply, using other existing API methods [which is what your suggested new API method would in effect have to do if it were implemented] - like this... def erase_face(entities, points_array, all_edges=false) face=entities.add_face(points_array) return false if not face or not face.valid? edges=face.edges face.erase! edges.each{|e| if e.faces.length==2 && e.faces[0].normal.dot(e.faces[1].normal) > 0.99999999 && e.faces[0].material==e.faces[1].material && e.faces[0].back_material==e.faces[1].back_material e.erase! elsif not e.faces e.erase! end } if all_edges return true end which you'd use like this... erase_face(entities, [$pt6, $pt8, $pt7, $pt5]) to erase the face if it can exist from the given points. OR like this... erase_face(entities, [$pt6, $pt8, $pt7, $pt5], true) to erase the face if it can exist from the given points, AND the 'true' argument to erase all of its edges too - but of course because other faces might also rely on some of these edges and unexpectedly vanish with them too there is a trap test not to remove those unless they are 'coplanar'... It returns 'false' if no face and 'true' if it is erased. PS: Please avoid using global variables like $pt6, when @pt6 would work within a module/class instance methods and @@pt6 across class use. You will rarely need to create $vars in your own code...
    • T

      Unexpolding a curve

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      3
      0 Votes
      3 Posts
      177 Views
      T
      thanks, I have that tool! it got buried in one of my replacement plugin menus
    • T

      Will vray rendered images ever replace the digital Camera?

      Watching Ignoring Scheduled Pinned Locked Moved V-Ray render plugins extensions
      5
      0 Votes
      5 Posts
      960 Views
      V
      I agree. Thea or Maxwell for renderings that need to look 'real'. That and you really need to master the program and material settings. You can get very realistic results from Vray, but you need correct materials and lighting as well as high render settings. I just think that a rendering that is setup and rendered HQ would cost about the same as a photog taking a picture in a studio. Maybe we dont charge enough!
    • T

      2 rendering issues?

      Watching Ignoring Scheduled Pinned Locked Moved V-Ray render plugins extensions
      22
      0 Votes
      22 Posts
      2k Views
      T
      I don't think anyone here is trying to discredit Vray, although I have always felt a disconnect between the easy use of Sketchup versus the professional nature of Vray. Watching a superb 10 minute Video of how to create lighting for one living room lamp in Vray, does not inspire me to attempt to do the same to illuminate 20 other lights in a scene, including the time it takes to render unfavorable outcomes.
    • T

      Manufacturer cabinet orientation problems

      Watching Ignoring Scheduled Pinned Locked Moved Dynamic Components sketchup
      9
      0 Votes
      9 Posts
      1k Views
      TIGT
      DCs should always be properly inserted from the Components Browser to keep all of their correct properties. However, Copy+Paste between open SKPs should keep a normal component's gluing and cutting behaviors etc, but obviously it can mess with a DCs inner workings. So... if you have downloaded a DC from the 3dW you should do a 'save_as' from within the SKP into which it arrived - so that it is then saved as an external DC-SKP in a sub-folder inside the Components folder set [i.e. it's still a DC with all of attributes and behaviors retained]. Then later on when you are in another SKP you should insert it from the Component Browser [via navigating to that folder, or subsequently from the Model's pane itself if already loaded] it should then insert and behave as originally intended... keeping its attributes and gluing behaviors ???
    • T

      Copy & paste code?

      Watching Ignoring Scheduled Pinned Locked Moved Dynamic Components sketchup
      3
      0 Votes
      3 Posts
      492 Views
      T
      It works! by using the old ctrl-c/ctrl-v operation. highlight the code ctrl-c to copy the code ctrl-v to paste the code.
    • T

      Resaving old files to new version SU8 issue

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      2
      0 Votes
      2 Posts
      117 Views
      TIGT
      Once you have opened the files in a newer version run Model Info > Fix Problems... and Purge Unused if appropriate... Then save as the new version... There's no simple way of automating this...
    • T

      Another grouping a group issue?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      191 Views
      Dan RathbunD
      @tomot said: Interesting! I have 2 scripts, on replicates joists the other studs both use count. One script constantly gives me an '<' error in the console the other does not. ....very aggravating! Yep.. and same with: entities.add_instance(count, t) The word 'entities' is a method name. It often works OK, but is poor form. Using something like: grp_ents.add_instance(joist, tx_vec) is much better, and more understandable.
    • T

      2 issues; inheritance &amp; require ?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      185 Views
      T
      @dan rathbun said: @tomot said: Unfortunately some addons today wont run anywhere else than from c:\Program Files That's not your fault.. it's the fault of the plugin author. If they are not scrambled, you can tweak them... if they are, you can try to ask the author to fix the plugin. A friend of mine recently said " if I want an appliance I'll buy a MAC if I want a computer I'll buy a PC. I think Microsoft is heading down the same road as Apple. A pay for everything, the user wants, freeway! So I saved $350.00 by NOT having Apple install a new HDD, on my wife's iMac, I did it my way! [image: YNLo_imac.jpg]
    • T

      Understanding module wrapping?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      238 Views
      Dan RathbunD
      Programming a Tool class is another topic. It's best to read the examples supplied by Google, in the "Plugins/Examples/linetool.rb" the instance var @state is used to store what 'step' the tool is at.
    • 1 / 1