Blender MouseScript Tutorial

5 Stars2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...
Category : Blender
Date Add :

Blender MouseScript Tutorial

Hi Heres the Script: import Rasterizer as r g = GameLogic c = g.getCurrentController() o = c.getOwner() mMove = c.getSensor(”Move”) width = float(r.getWindowWidth()) height = float(r.getWindowHeight()) aspecty = height/12.0 aspectx = width/16.0 o.MouseX = (mMove.getXPosition()-width/2)/aspectx o.MouseY = -(mMove.getYPosition()-height/2)/aspecty o.setPosition([o.MouseX + 0.2,o.Mouse…
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • blinkbits
  • BlinkList
  • Furl
  • Live
  • Smarking
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb
  • blogmarks
  • Ma.gnolia
  • Reddit
  • Scoopeo
  • Slashdot
  • SphereIt
Store : Graphic Software and Book Store