Changeset 173

Show
Ignore:
Timestamp:
10/16/06 15:43:10 (2 years ago)
Author:
conrad
Message:

add a script to move the logo, and scriptlink it to framechange

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • blender-scripts/logogen.py

    r172 r173  
    1717scene.link(cam_obj) 
    1818# position object 
    19 cam_obj.loc = (0, 0, 5
     19cam_obj.loc = (0, 0, 3
    2020# rotate camera to look towards origin 
    2121r = math.radians(90) 
     
    3333# Now, make some texty logo thing 
    3434 
    35 txt = B.Text3d.New('Logo') 
     35txt = B.Text3d.New('Logo3d') 
    3636txt.setExtrudeDepth(0.1) 
    3737txt.setExtrudeBevelDepth(0.03) 
     
    4141txt.setText("Back") 
    4242 
    43 txt_obj = B.Object.New('Text'
     43txt_obj = B.Object.New('Text', 'Logo'
    4444txt_obj.link(txt) 
    4545scene.link(txt_obj) 
    4646txt.loc = (0, 0, 0) 
     47 
     48############################################################ 
     49# Set up a script and scriptlink it to frame change 
     50 
     51t = B.Text.Load('step.py') 
     52t.setName('StepScript') 
     53txt_obj.addScriptLink('StepScript', 'FrameChanged') 
    4754 
    4855############################################################