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

    sirnoname

    @sirnoname

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

    sirnoname Unfollow Follow
    registered-users

    Latest posts made by sirnoname

    • Urgent question to the ruby API gurus

      Hello dear sketchup experts,

      I like to bring a software with game information together with sketchup.
      The game informations are the view vector and the map positions of the
      camera in the game (ready working).
      For now I like to load a car model in sketchup and rotate this model
      with the ingame view vector for a direction display as a first step.

      Now my problem: I do not see a method to change the cam or the model
      orientation or one of the model details in realtime. There is a
      cinematic option in sketchup which allows some parameter change like I
      need but I get not the trick how you could do that over the ruby API. It
      looks like the ruby API is only written for some menu extension and
      smart tools.

      The question to the experts: Is sketchup able to be controlled from the
      outer ruby API to control some model details like orientation and
      length/size.

      regards
      SirNoName

      posted in Developers' Forum
      S
      sirnoname
    • Control animation from own software?

      Hello,

      I would like to use the animation ruby sample of sketchup ("animationtests.rb") and control the variables of the camera position from another, self written C++ program. To do so, I would like to implement the ruby gem library "mmap" which is a memory mapped file (IPC=Inter process communication).
      This IPC is a very easy solution to change a variable from any other software.
      Is it possible to use this library with sketchup or is the ruby interface of sketchup limited??

      Best regards
      SirNoName

      posted in Developers' Forum
      S
      sirnoname
    • Need helpfull informations for a project

      Hello,

      I will try to make a bridge which will control a object and it's placement / orientation from a external program. So I need some advice if this is possible and some hints where to begin.

      What I have:

      • Scetchup
      • Ruby (standard installation + C++ libraries)
      • a simple object drawn with scetchup

      What I want:
      I have a external software written in C++ which has a degree slider 0-90°.
      The object in scetchup should turn if I move the slider.

      The goal:

      • Make a drawing of a mechanical object and find out how it will work with real parameters

      How to realise??
      Here is my attempt:
      Ruby owns mmap library which can access memory mapped files and therefore the C++ application can create such a interprocess communication and ruby will read that value and set the object in the new position.

      This are the open questions:

      • Which mode of scetchup can work with such a ruby loop?
      • will the mmap ruby library available within scetchup?
      • what are the other options to move/rotate a object in ruby?

      Would be nice to get some ideas ...

      Best regards
      SirNoName

      posted in Developers' Forum
      S
      sirnoname