added ipo script template from blenderartists forTe, made scripts refresh on load factory settings and replaced elysiun with blenderartist.org in headers

This commit is contained in:
Campbell Barton 2008-04-23 14:04:05 +00:00
parent 3552afeef2
commit 4f49a3b906
74 changed files with 212 additions and 112 deletions

@ -7,7 +7,7 @@
# Tooltip: 'Export to DirectX text file format format for XNA Animation Component Library.'
"""
__author__ = "minahito (original:Arben (Ben) Omari)"
__url__ = ("blender", "elysiun", "Adjuster's site http://sunday-lab.blogspot.com/, Author's site http://www.omariben.too.it")
__url__ = ("blender", "blenderartists.org", "Adjuster's site http://sunday-lab.blogspot.com/, Author's site http://www.omariben.too.it")
__version__ = "3.0"
__bpydoc__ = """\

@ -8,7 +8,7 @@ Tip: 'Export selected meshes to AC3D (.ac) format'
"""
__author__ = "Willian P. Germano"
__url__ = ("blender", "elysiun", "AC3D's homepage, http://www.ac3d.org",
__url__ = ("blender", "blenderartists.org", "AC3D's homepage, http://www.ac3d.org",
"PLib 3d gaming lib, http://plib.sf.net")
__version__ = "2.44 2007-05-05"

@ -8,7 +8,7 @@ Tip: 'Import an AC3D (.ac) file.'
"""
__author__ = "Willian P. Germano"
__url__ = ("blender", "elysiun", "AC3D's homepage, http://www.ac3d.org",
__url__ = ("blender", "blenderartists.org", "AC3D's homepage, http://www.ac3d.org",
"PLib 3d gaming lib, http://plib.sf.net")
__version__ = "2.43.1 2007-02-21"

@ -8,7 +8,7 @@ Tip: 'Bevel selected faces, edges, and vertices'
"""
__author__ = "Loic BERTHE"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "2.0"
__bpydoc__ = """\

@ -10,7 +10,7 @@ Tooltip: 'View and edit available scripts configuration data'
__author__ = "Willian P. Germano"
__version__ = "0.1 2005/04/14"
__email__ = ('scripts', 'Author, wgermano:ig*com*br')
__url__ = ('blender', 'elysiun')
__url__ = ('blender', 'blenderartists.org')
__bpydoc__ ="""\
This script can be used to view and edit configuration data stored

@ -1,14 +1,14 @@
#!BPY
"""
Name: 'Interactive Console'
Blender: 237
Name: 'Interactive Python Console'
Blender: 245
Group: 'System'
Tooltip: 'Interactive Python Console'
"""
__author__ = "Campbell Barton AKA Ideasman"
__url__ = ["Author's homepage, http://members.iinet.net.au/~cpbarton/ideasman/", "blender", "elysiun", "Official Python site, http://www.python.org"]
__author__ = "Campbell Barton aka ideasman42"
__url__ = ["www.blender.org", "blenderartists.org", "www.python.org"]
__bpydoc__ = """\
This is an interactive console, similar to Python's own command line interpreter. Since it is embedded in Blender, it has access to all Blender Python modules.
@ -26,8 +26,6 @@ Usage:<br>
- Ctrl + Enter: auto compleate based on variable names and modules loaded -- multiple choices popup a menu;<br>
- Shift + Enter: multiline functions -- delays executing code until only Enter is pressed.
"""
__author__ = "Campbell Barton AKA Ideasman"
__url__ = ["http://members.iinet.net.au/~cpbarton/ideasman/", "blender", "elysiun"]
# --------------------------------------------------------------------------
# ***** BEGIN GPL LICENSE BLOCK *****

@ -8,7 +8,7 @@ Tooltip: 'Make envelope symetrical'
"""
__author__ = "Jonas Petersen"
__url__ = ("blender", "elysiun", "Script's homepage, http://www.mindfloaters.de/blender/", "thread at blender.org, http://www.blender.org/modules.php?op=modload&name=phpBB2&file=viewtopic&t=4858 ")
__url__ = ("blender", "blenderartists.org", "Script's homepage, http://www.mindfloaters.de/blender/", "thread at blender.org, http://www.blender.org/modules.php?op=modload&name=phpBB2&file=viewtopic&t=4858 ")
__version__ = "0.9 2004-11-10"
__doc__ = """\
This script creates perfectly symmetrical envelope sets. It is part of the

@ -8,7 +8,7 @@ Tip: 'Export Loc Rot Size chanels to a Lightwave .mot file'
"""
__author__ = "Daniel Salazar (ZanQdo)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"e-mail: zanqdo@gmail.com")
__version__ = "16/04/08"

@ -1,13 +1,13 @@
#!BPY
"""
Name: 'Same Weights...'
Blender: 241
Blender: 245
Group: 'FaceSelect'
Tooltip: 'Select same faces with teh same weight for the active group.'
"""
__author__ = ["Campbell Barton"]
__url__ = ("blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/")
__author__ = ["Campbell Barton aka ideasman42"]
__url__ = ["www.blender.org", "blenderartists.org", "www.python.org"]
__version__ = "0.1"
__bpydoc__ = """\

@ -8,7 +8,7 @@ Tip: 'Export to OpenFlight v16.0 (.flt)'
__author__ = "Greg MacDonald, Geoffrey Bantle"
__version__ = "2.0 11/21/07"
__url__ = ("blender", "elysiun", "Author's homepage, http://sourceforge.net/projects/blight/")
__url__ = ("blender", "blenderartists.org", "Author's homepage, http://sourceforge.net/projects/blight/")
__bpydoc__ = """\
This script exports v16.0 OpenFlight files. OpenFlight is a
registered trademark of MultiGen-Paradigm, Inc.

@ -10,7 +10,7 @@ Tip: 'Import OpenFlight (.flt)'
__author__ = "Greg MacDonald, Campbell Barton, Geoffrey Bantle"
__version__ = "2.0 11/21/07"
__url__ = ("blender", "elysiun", "Author's homepage, http://sourceforge.net/projects/blight/")
__url__ = ("blender", "blenderartists.org", "Author's homepage, http://sourceforge.net/projects/blight/")
__bpydoc__ = """\
This script imports OpenFlight files into Blender. OpenFlight is a
registered trademark of MultiGen-Paradigm, Inc.

@ -10,7 +10,7 @@ Tooltip: 'Manage FLT colors'
__author__ = "Geoffrey Bantle"
__version__ = "1.0 11/21/2007"
__email__ = ('scripts', 'Author, ')
__url__ = ('blender', 'elysiun')
__url__ = ('blender', 'blenderartists.org')
__bpydoc__ ="""\

@ -10,7 +10,7 @@ Tooltip: 'Tools for working with FLT databases'
__author__ = "Geoffrey Bantle"
__version__ = "1.0 11/21/07"
__email__ = ('scripts', 'Author, ')
__url__ = ('blender', 'elysiun')
__url__ = ('blender', 'blenderartists.org')
__bpydoc__ ="""\
This script provides tools for working with OpenFlight databases in Blender. OpenFlight is a

@ -10,7 +10,7 @@ Tooltip: 'Show help information about a chosen installed script.'
__author__ = "Willian P. Germano"
__version__ = "0.1 11/02/04"
__email__ = ('scripts', 'Author, wgermano:ig*com*br')
__url__ = ('blender', 'elysiun')
__url__ = ('blender', 'blenderartists.org')
__bpydoc__ ="""\
This script shows help information for scripts registered in the menus.
@ -84,8 +84,7 @@ DEFAULT_EMAILS = {
}
DEFAULT_LINKS = {
'blender': ["blender.org\'s Python forum", "http://www.blender.org/modules.php?op=modload&name=phpBB2&file=viewforum&f=9"],
'elysiun': ["elYsiun\'s Python and Plugins forum", "http://www.elysiun.com/forum/viewforum.php?f=5"]
'blender': ["blender.org\'s Python forum", "http://www.blender.org/modules.php?op=modload&name=phpBB2&file=viewforum&f=9"]
}
PADDING = 15

@ -7,7 +7,7 @@ Tooltip: 'Help for new users'
"""
__author__ = "Matt Ebb"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0"
__bpydoc__ = """\
This script opens the user's default web browser at www.blender3d.org's

@ -7,7 +7,7 @@ Tooltip: 'The Blender reference manual'
"""
__author__ = "Matt Ebb"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0"
__bpydoc__ = """\
This script opens the user's default web browser at www.blender3d.org's

@ -7,7 +7,7 @@ Tooltip: 'Information about the changes in this version of Blender'
"""
__author__ = "Matt Ebb"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0"
__bpydoc__ = """\
This script opens the user's default web browser at www.blender3d.org's

@ -8,7 +8,7 @@ Tooltip: 'Tutorials for learning to use Blender'
"""
__author__ = "Matt Ebb"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0"
__bpydoc__ = """\
This script opens the user's default web browser at www.blender3d.org's

@ -8,7 +8,7 @@ Tooltip: 'The official Blender website'
"""
__author__ = "Matt Ebb"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0"
__bpydoc__ = """\
This script opens the user's default web browser at Blender's main site,

@ -8,7 +8,7 @@ Tooltip: 'Get involved with Blender development'
"""
__author__ = "Matt Ebb"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0"
__bpydoc__ = """\
This script opens the user's default web browser at www.blender.org, the

@ -8,7 +8,7 @@ Tooltip: 'Buy official Blender resources and merchandise online'
"""
__author__ = "Matt Ebb"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0"
__bpydoc__ = """\
This script opens the user's default web browser at www.blender3d.org's

@ -8,7 +8,7 @@ Tooltip: 'Get involved with other Blender users'
"""
__author__ = "Matt Ebb"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0"
__bpydoc__ = """\
This script opens the user's default web browser at www.blender3d.org's

@ -7,7 +7,7 @@ Tooltip: 'Open in an application for editing. (hold Shift to configure)'
"""
__author__ = "Campbell Barton"
__url__ = ["blender", "elysiun"]
__url__ = ["blender", "blenderartists.org"]
__version__ = "1.0"
__bpydoc__ = """\

@ -8,7 +8,7 @@ Tip: 'Import Loc Rot Size chanels from a Lightwave .mot file'
"""
__author__ = "Daniel Salazar (ZanQdo)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"e-mail: zanqdo@gmail.com")
__version__ = "16/04/08"

@ -8,7 +8,7 @@ Tooltip: 'Export selected meshes to LightWave File Format (.lwo)'
"""
__author__ = "Anthony D'Agostino (Scorpius)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"Author's homepage, http://www.redrival.com/scorpius")
__version__ = "Part of IOSuite 0.5"

@ -10,7 +10,7 @@ Tooltip: 'Export to Quake file format (.md2).'
__author__ = 'Bob Holcomb'
__version__ = '0.18.1 patch 1'
__url__ = ["Bob's site, http://bane.servebeer.com",
"Support forum, http://bane.servebeer.com", "blender", "elysiun"]
"Support forum, http://bane.servebeer.com", "blender", "blenderartists.org"]
__email__ = ["Bob Holcomb, bob_holcomb:hotmail*com", "scripts"]
__bpydoc__ = """\
This script Exports a Quake 2 file (MD2).

@ -10,7 +10,7 @@ Tooltip: 'Import from Quake file format (.md2).'
__author__ = 'Bob Holcomb'
__version__ = '0.16'
__url__ = ["Bob's site, http://bane.servebeer.com",
"Support forum, http://scourage.servebeer.com/phpbb/", "blender", "elysiun"]
"Support forum, http://scourage.servebeer.com/phpbb/", "blender", "blenderartists.org"]
__email__ = ["Bob Holcomb, bob_holcomb:hotmail*com", "scripts"]
__bpydoc__ = """\
This script imports a Quake 2 file (MD2), textures,

@ -1,13 +1,13 @@
#!BPY
"""
Name: 'Bone Weight Copy'
Blender: 243
Blender: 245
Group: 'Object'
Tooltip: 'Copy Bone Weights from 1 mesh, to all other selected meshes.'
"""
__author__ = ["Campbell Barton"]
__url__ = ("blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/")
__author__ = "Campbell Barton aka ideasman42"
__url__ = ["www.blender.org", "blenderartists.org", "www.python.org"]
__version__ = "0.1"
__bpydoc__ = """\

@ -1,13 +1,13 @@
#!BPY
"""
Name: 'Clean Meshes'
Blender: 242
Blender: 245
Group: 'Mesh'
Tooltip: 'Clean unused data from all selected mesh objects.'
"""
__author__ = ["Campbell Barton"]
__url__ = ("blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/")
__author__ = "Campbell Barton aka ideasman42"
__url__ = ["www.blender.org", "blenderartists.org", "www.python.org"]
__version__ = "0.1"
__bpydoc__ = """\
Clean Meshes

@ -6,7 +6,7 @@ Group: 'Mesh'
Tip: 'Edges not used by a face are converted into polyline(s)'
"""
__author__ = ("Campbell Barton")
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0 2006/02/08"
__bpydoc__ = """\

@ -6,8 +6,8 @@ Group: 'Mesh'
Tooltip: 'Snap Verticies to X mirrord locations and weights.'
"""
__author__= ['Campbell Barton']
__url__= ["blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/"]
__author__ = "Campbell Barton aka ideasman42"
__url__ = ["www.blender.org", "blenderartists.org", "www.python.org"]
__version__= '1.0'
__bpydoc__= '''\
This script is used to mirror vertex locations and weights

@ -7,7 +7,7 @@ Tooltip: 'Removed polygons from a mesh while maintaining the shape, textures and
"""
__author__ = "Campbell Barton"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0 2006/02/07"
__bpydoc__ = """\

@ -8,7 +8,7 @@ Tip: 'Copy data from active object to other selected ones.'
"""
__author__ = "Jean-Michel Soler (jms), Campbell Barton (Ideasman42)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"Script's homepage, http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_lampdatacopier.htm",
"Communicate problems and errors, http://www.zoo-logique.org/3D.Blender/newsportal/thread.php?group=3D.Blender")
__version__ = "0.1.2"

@ -12,7 +12,7 @@ __author__ = "Martin Poirier (theeth), Jean-Michel Soler (jms), Campbell Barton
# Martin Poirier's Apply_Def.py and
# Jean-Michel Soler's Fix From Everything
__url__ = ("http://www.blender.org", "http://blenderartists.org", "http://members.iinet.net.au/~cpbarton/ideasman/", "http://jmsoler.free.fr")
__url__ = ("http://www.blender.org", "http://blenderartists.org", "http://jmsoler.free.fr")
__version__ = "1.6 07/07/2006"
__bpydoc__ = """\

@ -6,7 +6,7 @@ Group: 'Object'
Tooltip: 'Apply the chosen rule to rename all selected objects at once.'
"""
__author__ = "Campbell Barton"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0"
__bpydoc__ = """\

@ -8,7 +8,7 @@ Tooltip: 'Export selected mesh to DEC Object File Format (*.off)'
"""
__author__ = "Anthony D'Agostino (Scorpius)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"Author's homepage, http://www.redrival.com/scorpius")
__version__ = "Part of IOSuite 0.5"

@ -8,7 +8,7 @@ Tooltip: 'Import DEC Object File Format (*.off)'
"""
__author__ = "Anthony D'Agostino (Scorpius), Campbell Barton (Ideasman)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"Author's homepage, http://www.redrival.com/scorpius")
__version__ = "Part of IOSuite 0.5"

@ -13,7 +13,7 @@ Tip: 'Import a path from any of a set of formats (still experimental)'
"""
__author__ = "Jean-Michel Soler (jms)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"AI importer's homepage, http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_import_ai.htm",
"Communicate problems and errors, http://www.zoo-logique.org/3D.Blender/newsportal/thread.php?group=3D.Blender")
__version__ = "0.1.1"

@ -8,7 +8,7 @@ Tooltip: 'Export selected mesh to Raw Triangle Format (.raw)'
"""
__author__ = "Anthony D'Agostino (Scorpius)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"Author's homepage, http://www.redrival.com/scorpius")
__version__ = "Part of IOSuite 0.5"

@ -8,7 +8,7 @@ Tooltip: 'Import Raw Triangle File Format (.raw)'
"""
__author__ = "Anthony D'Agostino (Scorpius)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"Author's homepage, http://www.redrival.com/scorpius")
__version__ = "Part of IOSuite 0.5"

@ -8,7 +8,7 @@ Tip: 'GUI to select and rename objects.'
"""
__author__ = "Jean-Michel Soler (jms)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"Script's homepage, http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_renameobjectgui.htm",
"Communicate problems and errors, http://www.zoo-logique.org/3D.Blender/newsportal/thread.php?group=3D.Blender")
__version__ = "233"

@ -8,7 +8,7 @@ Tooltip: 'Save current renderlayers as a BPython script'
"""
__author__ = "Campbell Barton"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0"
__bpydoc__ = """\

@ -8,7 +8,7 @@ Tip: 'Copy deform data (not surf. subdiv) of active obj to rvk of the 2nd select
"""
__author__ = "Jean-Michel Soler (jms)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"Script's homepage, http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_rvk1versrvk2.htm",
"Communicate problems and errors, http://www.zoo-logique.org/3D.Blender/newsportal/thread.php?group=3D.Blender")
__version__ = "2007/04/27"

@ -8,7 +8,7 @@ Tooltip: 'Save current theme as a BPython script'
"""
__author__ = "Willian P. Germano"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "2.43 2006/12/30"
__bpydoc__ = """\

@ -98,7 +98,7 @@ SceneCheck()
'''
new_text = bpy.data.texts.new('pyconstraint_template.py')
new_text = bpy.data.texts.new('camobject_template.py')
new_text.write(script_data)
bpy.data.texts.active = new_text
Window.RedrawAll()

@ -0,0 +1,92 @@
#!BPY
"""
Name: 'Camera/Object Example'
Blender: 245
Group: 'ScriptTemplate'
Tooltip: 'Script template for setting the camera direction'
"""
from Blender import Window
import bpy
script_data = \
'''#!BPY
"""
Name: 'My Ipo Script'
Blender: 245
Group: 'Animation'
Tooltip: 'Put some useful info here'
"""
# Add a licence here if you wish to re-distribute, we recommend the GPL
from Blender import Ipo, Mathutils, Window
import bpy, BPyMessages
def makeRandomIpo(object, firstFrame, numberOfFrames, frameStep):
# Create an new Ipo Curve of name myIpo and type Object
myIpo = bpy.data.ipos.new('myIpo', 'Object')
# Create LocX, LocY, and LocZ Ipo curves in our new Curve Object
# and store them so we can access them later
myIpo_x = myIpo.addCurve('LocX')
myIpo_y = myIpo.addCurve('LocY')
myIpo_z = myIpo.addCurve('LocZ')
# What value we want to scale our random value by
ipoScale = 4
# This Calculates the End Frame for use in an xrange() expression
endFrame = firstFrame + (numberOfFrames * frameStep) + frameStep
for frame in xrange(firstFrame, endFrame, frameStep):
# Use the Mathutils Rand() function to get random numbers
ipoValue_x = Mathutils.Rand(-1, 1) * ipoScale
ipoValue_y = Mathutils.Rand(-1, 1) * ipoScale
ipoValue_z = Mathutils.Rand(-1, 1) * ipoScale
# Append to the Ipo curve at location frame, with the value ipoValue_x
# Note that we should pass the append function a tuple or a BezTriple
myIpo_x.append((frame, ipoValue_x))
# Similar to above
myIpo_y.append((frame, ipoValue_y))
myIpo_z.append((frame, ipoValue_z))
# Link our new Ipo Curve to the passed object
object.setIpo(myIpo)
print object
def main():
# Get the active scene, since there can be multiple ones
sce = bpy.data.scenes.active
# Get the active object
object = sce.objects.active
# If there is no active object, pop up an error message
if not object:
BPyMessages.Error_NoActive()
Window.WaitCursor(1)
# Call our makeRandomIpo function
# Pass it our object, Tell it to keys from the start frame until the end frame, at a step of 10 frames
# between them
makeRandomIpo(object, sce.render.sFrame, sce.render.eFrame, 10)
Window.WaitCursor(0)
if __name__ == '__main__':
main()
'''
new_text = bpy.data.texts.new('ipo_template.py')
new_text.write(script_data)
bpy.data.texts.active = new_text
Window.RedrawAll()

@ -70,7 +70,7 @@ if __name__ == '__main__':
main()
'''
new_text = bpy.data.texts.new('pyconstraint_template.py')
new_text = bpy.data.texts.new('metaball_template.py')
new_text.write(script_data)
bpy.data.texts.active = new_text
Window.RedrawAll()

@ -13,7 +13,7 @@ script_data = \
'''#!BPY
"""
Name: 'My Object Script'
Blender: 244
Blender: 245
Group: 'Object'
Tooltip: 'Put some useful info here'
"""
@ -78,4 +78,4 @@ if __name__ == '__main__':
new_text = bpy.data.texts.new('object_template.py')
new_text.write(script_data)
bpy.data.texts.active = new_text
Window.RedrawAll()
Window.RedrawAll()

@ -8,7 +8,7 @@ Tooltip: 'Import Pro Engineer (.slp) File Format'
"""
__author__ = "Anthony D'Agostino (Scorpius)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"Author's homepage, http://www.redrival.com/scorpius")
__version__ = "Part of IOSuite 0.5"

@ -8,7 +8,7 @@ Tooltip: 'Information about your Blender environment, useful to diagnose problem
"""
__author__ = "Willian P. Germano"
__url__ = ("blender", "elysiun")
__url__ = ("blenderartists.org", "blenderartists.org")
__version__ = "1.1"
__bpydoc__ = """\
This script creates a text in Blender's Text Editor with information

@ -7,7 +7,7 @@ Tip: 'Unweld all faces from a (or several) selected and common vertex. Made vert
"""
__author__ = "Jean-Michel Soler (jms)"
__url__ = ("blender", "elysiun",
__url__ = ("blender", "blenderartists.org",
"Script's homepage, http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_faces2vertex.htm#exemple",
"Communicate problems and errors, http://www.zoo-logique.org/3D.Blender/newsportal/thread.php?group=3D.Blender")
__version__ = "0.4.6 "

@ -6,7 +6,7 @@ Group: 'UVCalculation'
Tooltip: 'Assign UVs to selected faces from surrounding unselected faces.'
"""
__author__ = "Campbell Barton"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0 2006/02/07"
__bpydoc__ = """\

@ -6,7 +6,7 @@ Group: 'UVCalculation'
Tooltip: 'Follow from active quads.'
"""
__author__ = "Campbell Barton"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0 2006/02/07"
__bpydoc__ = """\

@ -5,8 +5,8 @@ Blender: 242
Group: 'UVCalculation'
Tooltip: 'Give each face non overlapping space on a texture.'
"""
__author__ = "Campbell Barton"
__url__ = ("blender", "elysiun")
__author__ = "Campbell Barton aka ideasman42"
__url__ = ("blender", "blenderartists.org")
__version__ = "1.0 2006/02/07"
__bpydoc__ = """\

@ -2,13 +2,13 @@
""" Registration info for Blender menus: <- these words are ignored
Name: 'Click project from face'
Blender: 242
Blender: 245
Group: 'UVCalculation'
Tooltip: '3 Clicks to project uvs onto selected faces.'
"""
__author__ = ["Campbell Barton"]
__url__ = ("blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/")
__author__ = "Campbell Barton aka ideasman42"
__url__ = ["www.blender.org", "blenderartists.org", "www.python.org"]
__version__ = "0.1"
__bpydoc__=\
'''

@ -9,7 +9,7 @@ Tooltip: 'UV Unwrap mesh faces for all select mesh objects'
__author__ = "Campbell Barton"
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.1 12/18/05"
__bpydoc__ = """\

@ -7,9 +7,7 @@ Tip: 'Copy UV coords from a mesh to another that has same vertex indices'
"""
__author__ = "Toni Alatalo, Martin Poirier et. al."
__url__ = ("blender", "elysiun",
"Script's homepage, http://www.elysiun.com/forum/viewtopic.php?t=14897",
"Communicate problems and errors, http://www.elysiun.com/forum/viewtopic.php?t=14897")
__url__ = ("blender", "blenderartists.org")
__version__ = "0.2 01/2006"
__bpydoc__ = """\

@ -1,13 +1,13 @@
#!BPY
"""
Name: 'VCol Gradient...'
Blender: 241
Blender: 245
Group: 'VertexPaint'
Tooltip: 'Click on the start and end grad points for the mesh for selected faces.'
"""
__author__ = ["Campbell Barton"]
__url__ = ("blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/")
__author__ = "Campbell Barton aka ideasman42"
__url__ = ["www.blender.org", "blenderartists.org", "www.python.org"]
__version__ = "0.1"
# ***** BEGIN GPL LICENSE BLOCK *****

@ -1,13 +1,13 @@
#!BPY
"""
Name: 'Self Shadow VCols (AO)...'
Blender: 241
Blender: 245
Group: 'VertexPaint'
Tooltip: 'Generate Fake Ambient Occlusion with vertex colors.'
"""
__author__ = ["Campbell Barton"]
__url__ = ("blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/")
__author__ = "Campbell Barton aka ideasman42"
__url__ = ["www.blender.org", "blenderartists.org", "www.python.org"]
__version__ = "0.1"
__bpydoc__ = """\

@ -10,7 +10,7 @@ Tooltip: 'Export to VRML97 file (.wrl)'
"""
__author__ = ("Rick Kimball", "Ken Miller", "Steve Matthews", "Bart")
__url__ = ["blender", "elysiun",
__url__ = ["blender", "blenderartists.org",
"Author's (Rick) homepage, http://kimballsoftware.com/blender",
"Author's (Bart) homepage, http://www.neeneenee.de/vrml"]
__email__ = ["Bart, bart:neeneenee*de"]

@ -1,13 +1,13 @@
#!BPY
"""
Name: 'Clean Weight...'
Blender: 241
Blender: 245
Group: 'WeightPaint'
Tooltip: 'Removed verts from groups below a weight limit.'
"""
__author__ = ["Campbell Barton"]
__url__ = ("blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/")
__author__ = "Campbell Barton aka ideasman42"
__url__ = ["www.blender.org", "blenderartists.org", "www.python.org"]
__version__ = "0.1"
__bpydoc__ = """\

@ -1,13 +1,13 @@
#!BPY
"""
Name: 'Weight Gradient...'
Blender: 241
Blender: 245
Group: 'WeightPaint'
Tooltip: 'Click on the start and end grad points for the mesh for selected faces.'
"""
__author__ = ["Campbell Barton"]
__url__ = ("blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/")
__author__ = "Campbell Barton aka ideasman42"
__url__ = ["www.blender.org", "blenderartists.org", "www.python.org"]
__version__ = "0.1"
__bpydoc__=\
'''

@ -1,13 +1,13 @@
#!BPY
"""
Name: 'Grow/Shrink Weight...'
Blender: 241
Blender: 245
Group: 'WeightPaint'
Tooltip: 'Grow/Shrink active vertex group.'
"""
__author__ = ["Campbell Barton"]
__url__ = ("blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/")
__author__ = "Campbell Barton aka ideasman42"
__url__ = ["www.blender.org", "blenderartists.org", "www.python.org"]
__version__ = "0.1"
__bpydoc__ = """\

@ -1,13 +1,13 @@
#!BPY
"""
Name: 'Normalize/Scale Weight...'
Blender: 241
Blender: 245
Group: 'WeightPaint'
Tooltip: 'Normalize the weight of the active weightgroup.'
"""
__author__ = ["Campbell Barton"]
__url__ = ("blender", "elysiun", "http://members.iinet.net.au/~cpbarton/ideasman/")
__author__ = "Campbell Barton aka ideasman42"
__url__ = ["www.blender.org", "blenderartists.org", "www.python.org"]
__version__ = "0.1"
__bpydoc__ = """\

@ -8,7 +8,7 @@ Tip: 'Adds Widgets for Driven Shapes'
"""
__author__ = ["Johnny Matthews (guitargeek)"]
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "0.0.9 12/15/05"
__bpydoc__ = """\

@ -7,7 +7,7 @@ Tooltip: 'Export selected mesh to xfig Format (.fig)'
"""
__author__ = 'Dino Ghilardi', 'Campbell Barton AKA Ideasman42'
__url__ = ("blender", "elysiun")
__url__ = ("blender", "blenderartists.org")
__version__ = "1.1"
__bpydoc__ = """\

@ -10,7 +10,7 @@ Tooltip: 'Export to a SoftImage XSI file'
__author__ = ("Elira")
__url__ = ["Author's site, http://www.creative-realms.net/~elira/blender.html",
"SoftImage's site, www.softimage.com", "elysiun"]
"SoftImage's site, www.softimage.com", "blenderartists.org"]
__email__ = ["scripts"]
__version__ = "2005/11/01"

@ -1372,7 +1372,7 @@ void object_make_proxy(Object *ob, Object *target, Object *gob)
ob->mat = MEM_dupallocN(target->mat);
for(i=0; i<target->totcol; i++) {
/* dont need to run test_object_materials since we know this object is new and not used elsewhere */
id_us_plus(ob->mat[i]);
id_us_plus((ID *)ob->mat[i]);
}
}

@ -84,7 +84,8 @@ extern "C" {
void init_syspath( int first_time );
void syspath_append( char *dir );
void BPY_rebuild_syspath( void );
int BPY_path_update( void );
int BPY_Err_getLinenumber( void );
const char *BPY_Err_getFilename( void );

@ -462,6 +462,16 @@ void BPY_rebuild_syspath( void )
PyGILState_Release(gilstate);
}
int BPY_path_update( void )
{
BPyMenu_RemoveAllEntries(); /* free old data */
BPY_rebuild_syspath();
if (BPyMenu_Init(1) == -1) { /* re-eval scripts registration in menus */
return 0;
}
return 1;
}
/****************************************************************************
* Description: This function finishes Python initialization in Blender.

@ -351,8 +351,8 @@ Introduction:
expected format for each url entry is e.g.
"Author's site, http://www.somewhere.com". The first part, before the
comma (','), is used as the button's tooltip. There are two preset
options: "blender" and "elysiun", which link to the Python forums at
blender.org and elysiun.com, respectively.
options: "blender" and "blenderartists.org", which link to the Python forums at
blender.org and blenderartists.org, respectively.
- __email__ (optional, type: string or list of strings):
- Equivalent to __url__, but opens the user's default email client. You
@ -369,7 +369,7 @@ Introduction:
__author__ = 'Mr. Author'
__version__ = '1.0 2005/01/01'
__url__ = ["Author's site, http://somewhere.com",
"Support forum, http://somewhere.com/forum/", "blender", "elysiun"]
"Support forum, http://somewhere.com/forum/", "blender", "blenderartists.org"]
__email__ = ["Mr. Author, mrauthor:somewhere*com", "scripts"]
__bpydoc__ = \"\"\"\\
This script does this and that.

@ -112,9 +112,9 @@ static void do_script_scriptsmenu(void *arg, int event)
/* these are no defines, easier this way, the codes are in the function below */
switch(event) {
case 0: /* update menus */
BPyMenu_RemoveAllEntries();
BPY_rebuild_syspath();
if (BPyMenu_Init(1) == -1) error("Invalid scripts dir: check console");
if (BPY_path_update()==0) {
error("Invalid scripts dir: check console");
}
break;
}

@ -545,9 +545,9 @@ static void filesel_u_pythondir(char *name)
allqueue(REDRAWALL, 0);
/* act on the change */
BPyMenu_RemoveAllEntries();
BPY_rebuild_syspath();
if (BPyMenu_Init(1) == -1) error("Invalid scripts dir: check console");
if (BPY_path_update()==0) {
error("Invalid scripts dir: check console");
}
}
static void filesel_u_sounddir(char *name)
@ -1525,9 +1525,7 @@ void do_global_buttons(unsigned short event)
case B_PYMENUEVAL: /* is button from space.c *info* */
waitcursor( 1 ); /* can take some time */
BPyMenu_RemoveAllEntries(); /* free old data */
BPY_rebuild_syspath();
if (BPyMenu_Init(1) == -1) { /* re-eval scripts registration in menus */
if (BPY_path_update() == 0) { /* re-eval scripts registration in menus */
waitcursor( 0 );
error("Invalid scripts dir: check console");
}

@ -641,6 +641,10 @@ int BIF_read_homefile(int from_memory)
BKE_reset_undo();
BKE_write_undo("original"); /* save current state */
/* if from memory, need to refresh python scripts */
if (from_memory) {
BPY_path_update();
}
return success;
}