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

    Posts

    Recent Best Controversial
    • RE: List of keyboard keys constants

      Thanks for your answer TIG, using non modifier keys is indeed a bad idea inside a tool, because they are already bound to lots of different tools.
      I also discovered that the int values corresponding to keystroke can be accesed like this

      valueFor_W_Key = ?W

      a bit weird, but it works.

      I ended up not using keys 😞

      posted in Developers' Forum
      K
      kioobee
    • List of keyboard keys constants

      I'm developping a tool class, and i'm in the process of handling keyboard events.
      I searched on the online doc, but i can't find a list of correspondence between a keyboard key and a value (the key is passed as an integer).
      Do such a list exist ?

      like

      Sketchup::KEY_A -> 32

      etc...

      I hope it exists !! And if not, at least that the 'A' key will always map to the same value ?

      posted in Developers' Forum
      K
      kioobee
    • RE: Control over camera lens shift ?

      Wow, i can't believe how reactive you guys are ! Thanks so much for your feedback.

      It looks like the Two Point Perspective is the tool i need, thanks for poiting it out.

      Although it could be triggered by the send_action command, to control it precisely in ruby afterwards is still problematic : how can i control the amount of shift to apply in ruby ?

      The reason i want to do it ? I'm developping a video projector simulator plugin, and i would like the user to be able to 'see' from the projector perspective.

      On the image below, i put an image of a projector with a vertical lens shift of 100%. You can see what the projection cone looks like, it is off centered, and i would need to place a camera, and apply two point perspective to match the projection of the video projector.

      http://kioobee.com/images/simproj.png

      I hope this clarifies what i want to achieve πŸ˜„

      posted in Developers' Forum
      K
      kioobee
    • Control over camera lens shift ?

      Hi

      When looking at the camera parameters exposed in ruby, i can't find anything about lens shift, is this something that is planned in the future ?
      https://developers.google.com/sketchup/docs/ourdoc/camera

      posted in Developers' Forum
      K
      kioobee
    • 1 / 1