| #!BPY """
Name: 'Vertical Camera'
 Blender: 232
 Group: 'Object'
 Tooltip: 'Vertical axe of the camera fixed on the vertical axe of the
blender \'s 3D world'
 """
 __author__ = "Jean-Michel Soler (jms)"
 __url__ = ("Script's homepage, http://jmsoler.free.fr/util/blenderfile/py/fixcamera.py",
 "Communicate problems and errors, http://www.zoo-logique.org/3D.Blender/newsportal/thread.php?group=3D.Blender")
 __version__ = "10/2004"
 __bpydoc__ = """\
This script fixes all the cameras' vertical axe on the vertical axe
of the blender world .
 Usage:
   1/copy these lines in your .Blender/scripts folder  as a 
text file named 'fixcamera.py'
2/ add 'fix' to all the camera you want to fx .
 3/ run the script from the Object Scripts Menu.
 All camera in the scene will be fixed if  you have pressed the
[Enable script links]   buttoncin the Script window.
 """
import Blender
 SC=Blender.Scene.GetCurrent()
 if SC.getScriptLinks('Redraw')== None :
 SC.addScriptLink('fixcamera.py','Redraw')
 elif 'fixcamera.py' not in SC.getScriptLinks('Redraw'):
 SC.addScriptLink('fixcamera.py','Redraw')
 ALL_CAMERA=[c for c in Blender.Object.Get() if c.getType()=='Camera'
\
 and c.getName().find('fix')!=-1]
 for CAM in ALL_CAMERA:
 CAM.RotX=1.57
 CAM.RotY=0.0
 
 |