Added GPL Headers to some of my scipts that were missing it. also changed the header of a few others.
Only code change is cookie cut from View now only uses 3d curves to cut.
This commit is contained in:
parent
1021949c3a
commit
c7a8f6cd9d
@ -21,7 +21,10 @@ Run this script from "File->Export" menu.
|
|||||||
|
|
||||||
Note:
|
Note:
|
||||||
"""
|
"""
|
||||||
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
||||||
|
#
|
||||||
|
# Script copyright (C) Radek Barton
|
||||||
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
# as published by the Free Software Foundation; either version 2
|
# as published by the Free Software Foundation; either version 2
|
||||||
|
@ -1,22 +1,4 @@
|
|||||||
#!BPY
|
#!BPY
|
||||||
|
|
||||||
# flt_export.py is an OpenFlight exporter for blender.
|
|
||||||
# Copyright (C) 2005 Greg MacDonald
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License
|
|
||||||
# as published by the Free Software Foundation; either version 2
|
|
||||||
# of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
|
|
||||||
""" Registration info for Blender menus:
|
""" Registration info for Blender menus:
|
||||||
Name: 'OpenFlight (.flt)...'
|
Name: 'OpenFlight (.flt)...'
|
||||||
Blender: 237
|
Blender: 237
|
||||||
@ -56,6 +38,23 @@ What's Not Handled:<br>
|
|||||||
* Vetex colors.<br>
|
* Vetex colors.<br>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# flt_export.py is an OpenFlight exporter for blender.
|
||||||
|
# Copyright (C) 2005 Greg MacDonald
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU General Public License
|
||||||
|
# as published by the Free Software Foundation; either version 2
|
||||||
|
# of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
import Blender
|
import Blender
|
||||||
from flt_filewalker import FltOut
|
from flt_filewalker import FltOut
|
||||||
|
|
||||||
|
@ -1,22 +1,4 @@
|
|||||||
#!BPY
|
#!BPY
|
||||||
|
|
||||||
# flt_import.py is an OpenFlight importer for blender.
|
|
||||||
# Copyright (C) 2005 Greg MacDonald
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License
|
|
||||||
# as published by the Free Software Foundation; either version 2
|
|
||||||
# of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
|
|
||||||
""" Registration info for Blender menus:
|
""" Registration info for Blender menus:
|
||||||
Name: 'OpenFlight (.flt)...'
|
Name: 'OpenFlight (.flt)...'
|
||||||
Blender: 238
|
Blender: 238
|
||||||
@ -83,6 +65,23 @@ What's Not Handled:<br>
|
|||||||
* Vetex colors.<br>
|
* Vetex colors.<br>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# flt_import.py is an OpenFlight importer for blender.
|
||||||
|
# Copyright (C) 2005 Greg MacDonald
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU General Public License
|
||||||
|
# as published by the Free Software Foundation; either version 2
|
||||||
|
# of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
import Blender
|
import Blender
|
||||||
import os
|
import os
|
||||||
import BPyMesh
|
import BPyMesh
|
||||||
|
@ -35,7 +35,7 @@ This is usefull for game models where 1 image is faster then many, and saves the
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software Foundation,
|
# along with this program; if not, write to the Free Software Foundation,
|
||||||
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
# f
|
#
|
||||||
# ***** END GPL LICENCE BLOCK *****
|
# ***** END GPL LICENCE BLOCK *****
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -25,7 +25,26 @@ Usage
|
|||||||
* Once the script has finished running return to the 3d view by pressing Shift+F5
|
* Once the script has finished running return to the 3d view by pressing Shift+F5
|
||||||
* To see the newly applied textures change the drawtype to 'Textured Solid'
|
* To see the newly applied textures change the drawtype to 'Textured Solid'
|
||||||
"""
|
"""
|
||||||
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
||||||
|
#
|
||||||
|
# Script copyright (C) Campbell J Barton 2006
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU General Public License
|
||||||
|
# as published by the Free Software Foundation; either version 2
|
||||||
|
# of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software Foundation,
|
||||||
|
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
# ***** END GPL LICENCE BLOCK *****
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
import Blender as B
|
import Blender as B
|
||||||
import BPyMathutils
|
import BPyMathutils
|
||||||
|
@ -29,6 +29,8 @@ This will use the system default assosiated application.
|
|||||||
|
|
||||||
# ***** BEGIN GPL LICENSE BLOCK *****
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
||||||
#
|
#
|
||||||
|
# Script copyright (C) Campbell J Barton 2006
|
||||||
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
# as published by the Free Software Foundation; either version 2
|
# as published by the Free Software Foundation; either version 2
|
||||||
|
@ -19,6 +19,27 @@ Run this script from "File->Import" menu and then load the desired OBJ file.
|
|||||||
Note, This loads mesh objects and materials only, nurbs and curves are not supported.
|
Note, This loads mesh objects and materials only, nurbs and curves are not supported.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
||||||
|
#
|
||||||
|
# Script copyright (C) Campbell J Barton 2007
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU General Public License
|
||||||
|
# as published by the Free Software Foundation; either version 2
|
||||||
|
# of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software Foundation,
|
||||||
|
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
# ***** END GPL LICENCE BLOCK *****
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
from Blender import *
|
from Blender import *
|
||||||
import BPyMesh
|
import BPyMesh
|
||||||
import BPyImage
|
import BPyImage
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Name: 'Cookie Cut from View'
|
Name: 'Cookie Cut from View'
|
||||||
Blender: 234
|
Blender: 234
|
||||||
Group: 'Object'
|
Group: 'Object'
|
||||||
Tooltip: 'Cut from the view axis, (Sel Meshes (only edges) into other meshes with faces)'
|
Tooltip: 'Cut from the view axis, (Sel 3d Curves and Meshes (only edges) into other meshes with faces)'
|
||||||
"""
|
"""
|
||||||
__author__= "Campbell Barton"
|
__author__= "Campbell Barton"
|
||||||
__url__= ["blender", "blenderartist"]
|
__url__= ["blender", "blenderartist"]
|
||||||
@ -27,6 +27,26 @@ You can choose to make the cut verts lie on the face that they were cut from or
|
|||||||
This script supports UV coordinates and images.
|
This script supports UV coordinates and images.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
||||||
|
#
|
||||||
|
# Script copyright (C) Campbell Barton
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU General Public License
|
||||||
|
# as published by the Free Software Foundation; either version 2
|
||||||
|
# of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software Foundation,
|
||||||
|
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
# ***** END GPL LICENCE BLOCK *****
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
|
||||||
import Blender
|
import Blender
|
||||||
from math import sqrt
|
from math import sqrt
|
||||||
@ -563,9 +583,11 @@ def main():
|
|||||||
for ob in obs:
|
for ob in obs:
|
||||||
if ob.type == 'Mesh':
|
if ob.type == 'Mesh':
|
||||||
me= ob.getData(mesh=1)
|
me= ob.getData(mesh=1)
|
||||||
|
elif ob.data.flag & 1: # Is the curve 3D? else dont use.
|
||||||
|
me= BPyMesh.getMeshFromObject(ob) # get the curve
|
||||||
else:
|
else:
|
||||||
me= BPyMesh.getMeshFromObject(ob)
|
continue
|
||||||
|
|
||||||
# a new terrain instance
|
# a new terrain instance
|
||||||
if me.multires:
|
if me.multires:
|
||||||
MULTIRES_ERROR = True
|
MULTIRES_ERROR = True
|
||||||
|
Loading…
Reference in New Issue
Block a user