sketchucation logo sketchucation
    • Login
    1. Home
    2. jumpjack
    3. Posts
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 10
    • Posts 89
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: [Plugin] SliceModeler v1.3 released!

      Sorry, my fault: after first slicing, when I saw the new dialog I thought it was the same of the first one shown again, so I canceled it.....
      I didn't understand it was a multiple-stages input!
      Maybe all inputs should be inserted by user into a single dialog at the beginning? (but this would require checkboxes into dialog, and I don't know if they are supported).

      Thanks.

      posted in Plugins
      J
      jumpjack
    • RE: [Plugin] SliceModeler v1.3 released!

      @asteronimo said:

      jumpjack,

      Please check my first post in this thread.
      I uploaded SliceModeler v1.3.
      Hopefully that version works for you.

      Thanks, I tested it.
      Apart for a little bug due to missing default value for slices axis, it works fine, but I can just see all slice "piled up", so I must move thm by hand to place them on the same plan, which is quite uncomfortable.

      I mean, from drawing 1 I get drawing 2, but I'd need drawing 3. Is this possible? It's very tricky to place various slices on the same plan by hand...

      http://img84.imageshack.us/img84/3107/slicesgi7.th.jpg

      posted in Plugins
      J
      jumpjack
    • RE: [Plugin] SliceModeler v1.3 released!

      @asteronimo said:

      jumpjack,

      From the menu: File -> Export -> 3D model -> type: Autocad 14 DXF
      But maybe this menu option is only available in the SU Pro version?

      The flattened slices ARE placed side by side.

      yes, DXF export is only available in pro version.

      But I can't see side-by-side slices! Do they appear only in exported model? I can only see a sliced model, but slices are still together.
      Exporting to raster format would be the same for me...

      posted in Plugins
      J
      jumpjack
    • RE: [Plugin] SliceModeler v1.3 released!

      @asteronimo said:

      I export the flattened
      slices as a DXF file and use that file in a program for my laser cutter to cut 3mm sheet
      material like MDF or plexiglas.

      How do you export them? One by one? Is it possible to place them side by side?

      posted in Plugins
      J
      jumpjack
    • RE: Holding variables

      @azuby said:

      Use an instance variable. At the moment, your code should be in a class. Initialize your instance variable (i. e. @clicks - the @ is neeeded) in the initialize method of your class and use the variable in the code which is executed by clicking on your button.

      azuby

      Thanks, but this is too complex for me, I started studying Ruby yesterday, I'm still at "copy&modify&paste" level... πŸ˜’

      This is my source:

      
      def MoveLeft
        model = Sketchup.active_model
        entities=model.active_entities
        sp=entities[1]
        plane=sp.get_plane
        pos += 1
        plane=[Geom;;Point3d.new(pos,0,0),Geom;;Vector3d.new(1,0,0)]
        sp.set_plane plane
      end
      
      def MoveRight
        model = Sketchup.active_model
        entities=model.active_entities
        sp=entities[1]
        plane=sp.get_plane
        pos -= 1
        plane=[Geom;;Point3d.new(pos,0,0),Geom;;Vector3d.new(1,0,0)]
        sp.set_plane plane
      end
      
      pos=0
      toolbar = UI;;Toolbar.new "Sections"
      cmdSectionLeft = UI;;Command.new($tStrings.GetString("Test")) { MoveLeft }
      cmdSectionLeft.tooltip = $tStrings.GetString("Move section to left")
      cmdSectionLeft.status_bar_text = $tStrings.GetString("Move section to left")
      cmdSectionLeft.menu_text = $tStrings.GetString("Move left")
      toolbar = toolbar.add_item cmdSectionLeft
      
      cmdSectionRight = UI;;Command.new($tStrings.GetString("Test")) { MoveRight }
      cmdSectionRight.tooltip = $tStrings.GetString("Move section to Right")
      cmdSectionRight.status_bar_text = $tStrings.GetString("Move section to Right")
      cmdSectionRight.menu_text = $tStrings.GetString("Move Right")
      toolbar = toolbar.add_item cmdSectionRight
      
      toolbar.show
      

      How do I hold value for I among various button presses?

      posted in Developers' Forum
      J
      jumpjack
    • RE: How do I save a screenshot?

      thanks a lot, I'll try it.

      posted in Developers' Forum
      J
      jumpjack
    • Holding variables

      Newbie question:
      how do I hold the value into a variable among different execution of same script? I need to increase the value of a variable every time a button on my custom toolbar is pressed.

      posted in Developers' Forum
      J
      jumpjack
    • How do I save a screenshot?

      Is it possibile to save/export current view to image file?
      I can't find a suitable class or method.
      Maybe I should directly access EXPORT function? But how?

      posted in Developers' Forum
      J
      jumpjack
    • RE: [Plugin] SliceModeler v1.3 released!

      that's exactly the plugin I was trying to write! But I don't know anything about Ruby, I just started studying it this morning, so you can imagine results...

      I was only able to get a section-plan moving across a model; I wanted to "extract" resulting section, and spread them around the model, but don't know where to start from; so I decided to just save a sequence of screenshots of the view at each step of section-plan moving, but I encountered another problem: can't figure out how to save the current view to image file!

      Any idea about how to improve my script or yours to get this result? (a separate image per each slice)

      posted in Plugins
      J
      jumpjack
    • 1
    • 2
    • 3
    • 4
    • 5
    • 5 / 5