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

    Topics

    • J

      Perlin noise installation

      Watching Ignoring Scheduled Pinned Locked Moved Extensions & Applications Discussions
      1
      0 Votes
      1 Posts
      2 Views
      No one has replied
    • J

      Rotating faces to create a u-shape

      Watching Ignoring Scheduled Pinned Locked Moved Extensions & Applications Discussions
      2
      0 Votes
      2 Posts
      1 Views
      J
      After some struggles, I came up with this script which "solves" it, however I the ruby console plus crashes about 20 seconds after running this script, I have yet to figure out how to trap that error, whatever it is link to animated gif demonstration: https://drive.google.com/file/d/16QQNpN4UhxjZRFghHKzPZY_zYuAYbiHz/view?usp=drive_link Here is the revised script that at least does what I was trying to do. The difference is that I used transform_entities instead of transform! that seemed to have the desired effect on the resulting face so that I could extract it's vertices after the xform. An idea I got from here: https://forums.sketchup.com/t/move-a-group-api-ruby/130338/5 module RotateFaces def self.get_face_from_entities(things) face = nil things.each do |thing| if thing.is_a?(Sketchup;;Face) face = thing break end end return face end def self.rotate_face(entz, face, axis_pt1, axis_pt2, angle) axis = axis_pt1.vector_to(axis_pt2) xform = Geom;;Transformation.rotation(axis_pt1, axis, angle) entz.transform_entities(xform, face) return face end def self.get_face_vertices(face) verts = [] face.outer_loop.vertices.each{|v| verts << v.position} return verts end def self.create_rotated_face(entz, pts, axis_pt1, axis_pt2, angle) model = Sketchup.active_model active_entities = model.active_entities model.start_operation("create rotated face",true,false,true) face = self.get_face_from_entities(entz) face_xformed = self.rotate_face(entz, face, axis_pt1, axis_pt2, angle) verts = self.get_face_vertices(face_xformed) model.commit_operation return [verts, face_xformed] end end model = Sketchup.active_model active_entities = model.active_entities begin things1 = [] group1 = active_entities.add_group pts1 = [[10,10,0], [20,10,0], [20,10,10], [10,10,10]] pt0, pt1, pt2, pt3 = pts1 g1_entities = group1.entities face1 = g1_entities.add_face(pts1) puts "face1; ", face1 puts "group1;", group1 group2 = group1.copy() things2 = RotateFaces.create_rotated_face(group2.entities, pts1, pts1[0], pts1[3], -90.degrees) puts "create_rotated_face returned; ", things2 pts2 = things2[0] face2 = things2[1] puts "group2;", group2 # (10", 10", 0") # (10", 0", 0") # (10", 0", 10") # (10", 10", 10") group3 = group2.copy() things3 = RotateFaces.create_rotated_face(group3.entities, pts2, pts2[1], pts2[2], -90.degrees) puts "create_rotated_face returned; ", things3 pts3 = things3[0] fac3 = things3[1] # (20", -0", 0") # (10", 0", 0") # (10", 0", 10") # (20", -0", 10") puts "group3;", group3 group4 = group3.copy() things4 = RotateFaces.create_rotated_face(group4.entities, pts3, pts3[0], pts3[3], -90.degrees) puts "create_rotated_face returned; ", things3 pts4 = things4[0] fac4 = things4[1] puts "group4;", group4 puts "made it this far" rescue StandardError => e puts "error last global outer try;", e end
    • J

      Rotating faces to create a u-shape

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum
      1
      0 Votes
      1 Posts
      0 Views
      No one has replied
    • J

      Thicker spirals without inner faces?

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum
      4
      0 Votes
      4 Posts
      0 Views
      fredo6F
      The offset of a set of faces is not equivalent to the individual offset of each face. You have to make the calculation for the curve. Since your spiral is in 2D, it is not too complex.You either compute the intersection of the offset of each segment, or you take the bissector at each nagle and offset the vertices by the offset value divided by the cosinus of the angle.
    • J

      Curviloft gets a bit confused by the aperiodic monotile

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum
      3
      0 Votes
      3 Posts
      1 Views
      J
      @rich o brien said: Omit these edges... [image: N747Zgx.png] OMG, thank you!!
    • J

      How to use Fredo tools offline?

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum
      19
      0 Votes
      19 Posts
      41 Views
      Rich O BrienR
      @rtrowski said: I'm having an issue releasing licenses on my 3 seats. I use a virtual desktop from VMware for work and I had assumed it was because the computer "wipes" itself every night. Is there any other way I can release these seats? I released your seats. Please make sure your devices are running Sketchucation Tools 4.3 and Libfredo 14+ Once you have those you can manage seats at https://sketchucation.com/webshop/my-licences.php
    • J

      Fredo license invalid

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum
      1
      0 Votes
      1 Posts
      2 Views
      No one has replied
    • J

      Paypal compromised?

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      7
      0 Votes
      7 Posts
      1k Views
      Gus RG
      Google "Chrome thinks I'm in a different country."
    • J

      Populate a flat surface with a mesh

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum sketchup
      3
      0 Votes
      3 Posts
      1k Views
      R
      get Artisan (start with 30 days trial) - it has all you need
    • J

      Bending a shape with a texture

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum sketchup
      5
      0 Votes
      5 Posts
      2k Views
      J
      Yay money! https://3dwarehouse.sketchup.com/model/ff312f8a-c3ee-42b3-818c-31b4e1b69356/Cashnip [image: uRLr_cashnip.jpg]
    • J

      Batch convert skp files to obj or blender compatible format?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      5k Views
      Rich O BrienR
      Blender's API via its text editor should be able to batch process the import and saving/exporting of .skp to [insert 3d file format] I've seen scripts on Blender Exchange to batch import OBJ files. But I'm not on Mac so I can't advise why it doesn't work.
    • J

      Import error with gltf importer

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum sketchup
      6
      0 Votes
      6 Posts
      3k Views
      J
      Thanks for the info, I'm not sure, but I haven't done anything special to this mac. I think it's just the default. As far as I can tell, it is case insensitive. File System Personality: APFS Type (Bundle): apfs Name (User Visible): APFS Anyway, maybe it just ran out of memory or maybe I'll try that other plugin I found. Thanks -J Jones
    • J

      Collada file import doesn't include textures

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum sketchup
      5
      0 Votes
      5 Posts
      8k Views
      HornOxxH
      @dave r said: With this one, anyway, the materials will be present in the model if you extract the folder along with the .dae file from the .zip file and put them in the same location. The model is not coming as wireframe with no faces, the materials are all set to be fully transparent. Not sure why that would be but it's easily fixed... Thanks! This is a very helpful and valuable tip because I also failed at the "wireframe trap" like j_jones and so I finally found out how to download the material package as well what I hadn´t done so far.
    • J

      Any way to repair a texture like this?

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum sketchup
      2
      0 Votes
      2 Posts
      4k Views
      Rich O BrienR
      If the tool doesn't have a preserve UVs function then your out of luck. Vertex Tools 2 would allow you to bend via its Falloff Selection and preserve the UVs
    • J

      Can't seem to use Shape Bender with this object

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum sketchup
      4
      0 Votes
      4 Posts
      4k Views
      J
      oic, I needed to utilize the arrows, d'oh. Dumb newbie question, ok thanks! And no, I don't want the kink in the curve, but I'm a newbie, as mentioned. Maybe I should figure out the Bezier plugin I think I saw so I can make a smooth curve.
    • 1 / 1