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

    mattscar

    @mattscar

    10
    Reputation
    1
    Profile views
    12
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    mattscar Unfollow Follow
    registered-users

    Latest posts made by mattscar

    • RE: Automatic Sketchup book can now be freely downloaded

      Hello all,

      Sorry for the confusion. I'm surprised the Google Docs link wasn't reliable.

      I've updated the HTML at [link removed] so that "Access PDF version" links directly to the PDF instead of Google.

      In fact, the direct link is [link removed].

      If there are any further problems, please let me know. And if SCF (or anyone else) would be willing to host the file, that would be fine by me.

      Best,
      Matt Scarpino

      posted in Plugins
      M
      mattscar
    • RE: HELP setting up a SU code editor

      I could have sworn SketchUp had a socket interface somewhere. If we could send commands reliably over a socket, then the Java interface becomes trivial. And you can use the IDE to access SketchUp on a remote computer.

      posted in Developers' Forum
      M
      mattscar
    • RE: HELP setting up a SU code editor

      I agree that a SketchUp IDE would be helpful, even for newcomers, so long as it provides an intuitive UI. I usually use Notepad++, but I wrote an article that presents a simplistic Eclipse plugin that accesses SketchUp.

      The plugin provides syntax coloring and single-click script execution through the SketchUp bridge, but that's about it. If this interests you guys, I'd be happy to add features. The debugger is tough, but it's not impossible.

      Matt

      posted in Developers' Forum
      M
      mattscar
    • RE: Module for Skeletal Animation

      Thanks Chris,

      I've created a repository at http://code.google.com/p/sketchup-skel, and you can download the module, doc, and example scripts at http://code.google.com/p/sketchup-skel/downloads/list. I'm not the best Ruby programmer and I've never done anything like this before, so all comments are welcome.

      Here are some frames (t = 0, 4, 8, 12 sec) of the dancing robot in SketchUp:
      dancing robot
      Thanks,
      Matt

      posted in Developers' Forum
      M
      mattscar
    • Module for Skeletal Animation

      Hi guys,

      I've written a Ruby module that creates and animate bones (essentially ComponentDefinitions) within a skeleton hierarchy. I have a dancing robot example and a PDF for documentation.

      I'd be happy to release this as open-source, but I have two questions:

      1. Where should I upload the module/example/PDF?
      2. Has anyone else tried this? I saw SketchUp animation code a ways back, but skeletal animation is a bit more involved.

      Thanks,
      Matt

      posted in Developers' Forum
      M
      mattscar
    • Problem with Tool.getInstructorContentDirectory

      Hi,

      I'm trying to add help for a tool, and my getInstructorContentDirectory method returns the full path to a directory containing index.html. But SketchUp isn't finding the HTML file--the Instructor window comes up blank when the tool is active.

      The only example I've seen of getInstructorContentDirectory is in the Plugins/Utilities/utilitiestools.rb script, but the instructor for the Query tool also comes up blank. Is there another example available? Should the instructor content folder be placed in a specific location?

      Thanks,

      Matt

      posted in Developers' Forum
      M
      mattscar
    • RE: HELP WITH THIS CODE, please?

      In the first case, you should should create a curve instead of an array of Edges. Replace

      edges = entities.add_edges([0, 560.mm, 0],[600.mm,560.mm,0],[600.mm,560.mm,720.mm],[0, 560.mm, 720.mm],[0, 560.mm, 0])
      

      with

      edges = entities.add_curve([0, 560.mm, 0],[600.mm,560.mm,0],[600.mm,560.mm,720.mm],[0, 560.mm, 720.mm],[0, 560.mm, 0])
      

      In the second case, it looks like you want the base to be a semi-circle instead of a circle. You should replace

      circle = entities.add_circle([0,ancho/2,0], X_AXIS, r, n)
      base = entities.add_face(circle)
      

      with

      
      arc = entities.add_arc([0,ancho/2,0], [0, 0, 1], X_AXIS, r, 0.degrees, 180.degrees, n)
      arc << entities.add_line(arc[arc.length-1].end, arc[0].start)
      base = entities.add_face(arc)
      

      Hope this at least gets you closer to solving your problems.

      Matt

      posted in Developers' Forum
      M
      mattscar
    • RE: OnActiveToolChanged - What RubyTool is it?

      I was mistaken. Custom tools are always "RubyTool", no matter what you do. Yes, that's very strange.

      posted in Developers' Forum
      M
      mattscar
    • RE: OnActiveToolChanged - What RubyTool is it?

      Whenever I want the name of the active tool, I use:

      Sketchup.active_model.tools.active_tool_name
      

      I've never had "RubyTool" returned as a tool name. Does that work for you?

      posted in Developers' Forum
      M
      mattscar
    • Adding new options or OptionsProviders?

      Hi,

      By default, the OptionsProvider called NamedOptions is empty, and I'd like to add two options. Is there a way to do this? What is the NamedOptions provider for, anyway?

      Also, is there a way to add a new OptionsProvider to an OptionsManager? I haven't found any 'add' method or anything similar.

      Thanks,

      Matt

      posted in Developers' Forum
      M
      mattscar