I'm new to python so I suspect I'm indenting wrong or some such thing. Please set me straight.
Here's my code:
#!/usr/bin/env python
import math
from gimpfu import *
def create_spherical_animation(img, drw):
img.disable_undo()
layer_ovoid = drw.copy(True)
layer_ovoid.mode = NORMAL_MODE
layer_ovoid.name = "Ovoid"
img.add_layer(layer_ovoid, -1)
pdb.plug_in_map_object(img, layer_ovoid, 1,
#viewpoint x, y, z
1, 1, 2,
#position x, y, z
1, 1, 1,
#first-axis x, y, z
1, 0, 0,
#second-axis x, y, z
0, 1, 0,
#rotation-angle x, y, z
0, 0, 5,
#light type = directional
1,
#light color (r,g,b)
(255,255,255),
#light position
-5,-5,2,
#light direction
-1,-1,1,
#intensity levels
1,1,
#reflectivity
1,0,27,
#general options
1,0,0,1,
#sphere radius
1,
#scale
0,0,0,
#cylinder
0,
-1,-1,-1,-1,-1,-1,-1,-1)
img.enable_undo()
gimp.displays_flush
register(
"create_spherical_animation",
"Create a series of frames from a rotating sphere",
"HOW TO",
"Author",
"cc sa by",
"2008",
"
"RGB*, GRAY*",
[],
[],
create_spherical_animation)
main()

Help










