sketchucation logo sketchucation
    • Login
    1. Home
    2. jessejames
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 166
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: CALLING ALL MATRIX GURUS, HELP! , please :)

      OK, i tried the suggestion...

      
      target => 3Dpoint of [0.999938,0.001129,-0.011103]
      eye => 3Dpoint of [1.054297,1.571880,-8.966838]
      up => 3Dvector of [-0.011108,0.005189,-0.999925]
      
      

      but it is not correct, i will continue to play around with the values to see if i can fiqure this out. If you have any more thoughts feel free to post them.
      Thanks

      posted in Developers' Forum
      J
      jessejames
    • RE: CALLING ALL MATRIX GURUS, HELP! , please :)

      Many thanks my friend, I had almost given up hope.

      I am 99% sure this is referring to world coordinates.I will try your suggestions and post back if this does not work. Stay tuned πŸ˜„

      posted in Developers' Forum
      J
      jessejames
    • CALLING ALL MATRIX GURUS, HELP! , please :)

      Hello,
      I am trying to apply some raw matrix(4x4) data to a camera object in SU. I am parsing an output file from another program and my data looks like this...

      
      [
      [0.999938,0.001129,-0.011103,0.000000], 
      [0.001072,-0.999986,-0.005202,0.000000], 
      [-0.011108,0.005189,-0.999925,0.000000], 
      [1.054297,1.571880,-8.966838,1.000000]
      ]
      
      

      How can i apply this 4x4 matrix to the camera since it has no transformation method? I know how to use the transformation class but not how to apply this to a camera.

      OK, i found out that M[-1] represents the camera loc and (M[0],M[1],M[2]) affect rot and scale. But i still cannot translate this to a SU camera. Here is what i got so far...

      
      eye = M[-1]
      target = ?
      up = ?
      cam = Sketchup;;Camera.new(eye, target, up)
      
      

      Any help whatsoever is greatly welcomed, math, programming, 2 cents, whatever!?
      Thanks in Advance!

      posted in Developers' Forum
      J
      jessejames
    • RE: Create and move between muti cameras

      Thanks Phil Rader,
      I will check out that script

      Thanks Jim,
      from the code i should be able to put things together now.

      Thanks again guys β˜€

      posted in Developers' Forum
      J
      jessejames
    • RE: Create and move between muti cameras

      Thanks Jim,
      Actually i was referring to Ruby, and how this would be done in Ruby. I would like to create a bunch of cameras and move between them(sort of a moving camera animation).

      I know how to create cameras by...

      camera = Sketchup.camera.new
      

      but not sure the SURuby way of moving between them. I have consulted the docs, but not able to put this action together. Thanks in advance for your kind help

      posted in Developers' Forum
      J
      jessejames
    • Create and move between muti cameras

      Can anybody point me to a script or tut that would show me the best way to create an array of cameras and move between them. I have consulted the API but can't seem to put it together yet.

      Another area of frustration is quick and dirty animations, say sliding a group across the red axis or whatever.
      thanks

      posted in Developers' Forum
      J
      jessejames
    • 1 / 1