Page Menu
Home
Search
Configure Global Search
Log In
Files
F1499
api2_2x.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Johnny Matthews (guitargeek)
Nov 13 2013, 12:58 PM
Size
19 KB
Subscribers
None
api2_2x.patch
View Options
Index: source/blender/python/api2_2x/Curve.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Curve.c,v
retrieving revision 1.24
diff -u -r1.24 Curve.c
--- source/blender/python/api2_2x/Curve.c 6 Mar 2005 14:55:00 -0000 1.24
+++ source/blender/python/api2_2x/Curve.c 15 Mar 2005 19:43:02 -0000
@@ -82,20 +82,20 @@
static PyObject *Curve_setPathLen( BPy_Curve * self, PyObject * args );
static PyObject *Curve_getTotcol( BPy_Curve * self );
static PyObject *Curve_setTotcol( BPy_Curve * self, PyObject * args );
-static PyObject *Curve_getMode( BPy_Curve * self );
-static PyObject *Curve_setMode( BPy_Curve * self, PyObject * args );
-static PyObject *Curve_getBevresol( BPy_Curve * self );
-static PyObject *Curve_setBevresol( BPy_Curve * self, PyObject * args );
-static PyObject *Curve_getResolu( BPy_Curve * self );
-static PyObject *Curve_setResolu( BPy_Curve * self, PyObject * args );
-static PyObject *Curve_getResolv( BPy_Curve * self );
-static PyObject *Curve_setResolv( BPy_Curve * self, PyObject * args );
-static PyObject *Curve_getWidth( BPy_Curve * self );
-static PyObject *Curve_setWidth( BPy_Curve * self, PyObject * args );
-static PyObject *Curve_getExt1( BPy_Curve * self );
-static PyObject *Curve_setExt1( BPy_Curve * self, PyObject * args );
-static PyObject *Curve_getExt2( BPy_Curve * self );
-static PyObject *Curve_setExt2( BPy_Curve * self, PyObject * args );
+PyObject *Curve_getMode( BPy_Curve * self );
+PyObject *Curve_setMode( BPy_Curve * self, PyObject * args );
+PyObject *Curve_getBevresol( BPy_Curve * self );
+PyObject *Curve_setBevresol( BPy_Curve * self, PyObject * args );
+PyObject *Curve_getResolu( BPy_Curve * self );
+PyObject *Curve_setResolu( BPy_Curve * self, PyObject * args );
+PyObject *Curve_getResolv( BPy_Curve * self );
+PyObject *Curve_setResolv( BPy_Curve * self, PyObject * args );
+PyObject *Curve_getWidth( BPy_Curve * self );
+PyObject *Curve_setWidth( BPy_Curve * self, PyObject * args );
+PyObject *Curve_getExt1( BPy_Curve * self );
+PyObject *Curve_setExt1( BPy_Curve * self, PyObject * args );
+PyObject *Curve_getExt2( BPy_Curve * self );
+PyObject *Curve_setExt2( BPy_Curve * self, PyObject * args );
static PyObject *Curve_getControlPoint( BPy_Curve * self, PyObject * args );
static PyObject *Curve_setControlPoint( BPy_Curve * self, PyObject * args );
static PyObject *Curve_getLoc( BPy_Curve * self );
@@ -520,7 +520,7 @@
}
-static PyObject *Curve_getMode( BPy_Curve * self )
+PyObject *Curve_getMode( BPy_Curve * self )
{
PyObject *attr = PyInt_FromLong( ( long ) self->curve->flag );
@@ -532,7 +532,7 @@
}
-static PyObject *Curve_setMode( BPy_Curve * self, PyObject * args )
+PyObject *Curve_setMode( BPy_Curve * self, PyObject * args )
{
if( !PyArg_ParseTuple( args, "i", &( self->curve->flag ) ) )
@@ -544,7 +544,7 @@
}
-static PyObject *Curve_getBevresol( BPy_Curve * self )
+PyObject *Curve_getBevresol( BPy_Curve * self )
{
PyObject *attr = PyInt_FromLong( ( long ) self->curve->bevresol );
@@ -556,7 +556,7 @@
}
-static PyObject *Curve_setBevresol( BPy_Curve * self, PyObject * args )
+PyObject *Curve_setBevresol( BPy_Curve * self, PyObject * args )
{
if( !PyArg_ParseTuple( args, "i", &( self->curve->bevresol ) ) )
@@ -568,7 +568,7 @@
}
-static PyObject *Curve_getResolu( BPy_Curve * self )
+PyObject *Curve_getResolu( BPy_Curve * self )
{
PyObject *attr = PyInt_FromLong( ( long ) self->curve->resolu );
@@ -580,7 +580,7 @@
}
-static PyObject *Curve_setResolu( BPy_Curve * self, PyObject * args )
+PyObject *Curve_setResolu( BPy_Curve * self, PyObject * args )
{
if( !PyArg_ParseTuple( args, "i", &( self->curve->resolu ) ) )
@@ -593,7 +593,7 @@
-static PyObject *Curve_getResolv( BPy_Curve * self )
+PyObject *Curve_getResolv( BPy_Curve * self )
{
PyObject *attr = PyInt_FromLong( ( long ) self->curve->resolv );
@@ -605,7 +605,7 @@
}
-static PyObject *Curve_setResolv( BPy_Curve * self, PyObject * args )
+PyObject *Curve_setResolv( BPy_Curve * self, PyObject * args )
{
if( !PyArg_ParseTuple( args, "i", &( self->curve->resolv ) ) )
@@ -618,7 +618,7 @@
-static PyObject *Curve_getWidth( BPy_Curve * self )
+PyObject *Curve_getWidth( BPy_Curve * self )
{
PyObject *attr = PyFloat_FromDouble( ( double ) self->curve->width );
@@ -630,7 +630,7 @@
}
-static PyObject *Curve_setWidth( BPy_Curve * self, PyObject * args )
+PyObject *Curve_setWidth( BPy_Curve * self, PyObject * args )
{
if( !PyArg_ParseTuple( args, "f", &( self->curve->width ) ) )
@@ -642,7 +642,7 @@
}
-static PyObject *Curve_getExt1( BPy_Curve * self )
+PyObject *Curve_getExt1( BPy_Curve * self )
{
PyObject *attr = PyFloat_FromDouble( ( double ) self->curve->ext1 );
@@ -654,7 +654,7 @@
}
-static PyObject *Curve_setExt1( BPy_Curve * self, PyObject * args )
+PyObject *Curve_setExt1( BPy_Curve * self, PyObject * args )
{
if( !PyArg_ParseTuple( args, "f", &( self->curve->ext1 ) ) )
@@ -667,7 +667,7 @@
-static PyObject *Curve_getExt2( BPy_Curve * self )
+PyObject *Curve_getExt2( BPy_Curve * self )
{
PyObject *attr = PyFloat_FromDouble( ( double ) self->curve->ext2 );
@@ -679,7 +679,7 @@
}
-static PyObject *Curve_setExt2( BPy_Curve * self, PyObject * args )
+PyObject *Curve_setExt2( BPy_Curve * self, PyObject * args )
{
if( !PyArg_ParseTuple( args, "f", &( self->curve->ext2 ) ) )
Index: source/blender/python/api2_2x/Text3d.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Text3d.c,v
retrieving revision 1.3
diff -u -r1.3 Text3d.c
--- source/blender/python/api2_2x/Text3d.c 9 Mar 2005 19:45:55 -0000 1.3
+++ source/blender/python/api2_2x/Text3d.c 15 Mar 2005 19:44:07 -0000
@@ -26,6 +26,7 @@
* This is a new part of Blender.
*
* Contributor(s): Joilnen Leite
+ * Johnny Matthews
*
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
@@ -55,6 +56,20 @@
extern PyObject *Curve_getName( BPy_Text3d * self );
extern PyObject *Curve_setName( BPy_Text3d * self, PyObject * args );
+extern PyObject *Curve_getMode( BPy_Text3d * self );
+extern PyObject *Curve_setMode( BPy_Text3d * self, PyObject * args );
+extern PyObject *Curve_getBevresol( BPy_Text3d * self );
+extern PyObject *Curve_setBevresol( BPy_Text3d * self, PyObject * args );
+extern PyObject *Curve_getResolu( BPy_Text3d * self );
+extern PyObject *Curve_setResolu( BPy_Text3d * self, PyObject * args );
+extern PyObject *Curve_getResolv( BPy_Text3d * self );
+extern PyObject *Curve_setResolv( BPy_Text3d * self, PyObject * args );
+extern PyObject *Curve_getExt1( BPy_Text3d * self );
+extern PyObject *Curve_setExt1( BPy_Text3d * self, PyObject * args );
+extern PyObject *Curve_getExt2( BPy_Text3d * self );
+extern PyObject *Curve_setExt2( BPy_Text3d * self, PyObject * args );
+extern PyObject *Curve_getWidth( BPy_Text3d * self );
+extern PyObject *Curve_setWidth( BPy_Text3d * self, PyObject * args );
/*****************************************************************************/
/* Python API function prototypes for the Effect module. */
@@ -85,6 +100,35 @@
static PyObject *Text3d_setName( BPy_Text3d * self, PyObject * args );
static PyObject *Text3d_setText( BPy_Text3d * self, PyObject * args );
static PyObject *Text3d_getText( BPy_Text3d * self );
+static PyObject *Text3d_getMode( BPy_Text3d * self );
+static PyObject *Text3d_setMode( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getBevresol( BPy_Text3d * self );
+static PyObject *Text3d_setBevresol( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getResolu( BPy_Text3d * self );
+static PyObject *Text3d_setResolu( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getResolv( BPy_Text3d * self );
+static PyObject *Text3d_setResolv( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getWidth( BPy_Text3d * self );
+static PyObject *Text3d_setWidth( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getExt1( BPy_Text3d * self );
+static PyObject *Text3d_setExt1( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getExt2( BPy_Text3d * self );
+static PyObject *Text3d_setExt2( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getShear( BPy_Text3d * self );
+static PyObject *Text3d_setShear( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getFsize( BPy_Text3d * self );
+static PyObject *Text3d_setFsize( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getLinedist( BPy_Text3d * self );
+static PyObject *Text3d_setLinedist( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getSpacing( BPy_Text3d * self );
+static PyObject *Text3d_setSpacing( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getXof( BPy_Text3d * self );
+static PyObject *Text3d_setXof( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getYof( BPy_Text3d * self );
+static PyObject *Text3d_setYof( BPy_Text3d * self, PyObject * args );
+static PyObject *Text3d_getSpacemode( BPy_Text3d * self );
+static PyObject *Text3d_setSpacemode( BPy_Text3d * self, PyObject * args );
+
/*****************************************************************************/
/* Python BPy_Text3d methods table: */
@@ -99,7 +143,64 @@
{"setText", ( PyCFunction ) Text3d_setText,
METH_VARARGS, "() - Sets Text3d Data"},
{"getText", ( PyCFunction ) Text3d_getText,
- METH_NOARGS, "() - Gets Text3d Data"},
+ METH_NOARGS, "() - Gets Text3d Data"},
+ {"getFlag", ( PyCFunction ) Text3d_getMode,
+ METH_NOARGS, "() - Return flag (see the doc for semantic)"},
+ {"setFlag", ( PyCFunction ) Text3d_setMode,
+ METH_VARARGS, "(int) - Sets flag (see the doc for semantic)"},
+ {"getBevresol", ( PyCFunction ) Text3d_getBevresol,
+ METH_NOARGS, "() - Return bevel resolution"},
+ {"setBevresol", ( PyCFunction ) Text3d_setBevresol,
+ METH_VARARGS, "(int) - Sets bevel resolution"},
+ {"getResolu", ( PyCFunction ) Text3d_getResolu,
+ METH_NOARGS, "() - Return U resolution"},
+ {"setResolu", ( PyCFunction ) Text3d_setResolu,
+ METH_VARARGS, "(int) - Sets U resolution"},
+ {"getResolv", ( PyCFunction ) Text3d_getResolv,
+ METH_NOARGS, "() - Return V resolution"},
+ {"setResolv", ( PyCFunction ) Text3d_setResolv,
+ METH_VARARGS, "(int) - Sets V resolution"},
+ {"getWidth", ( PyCFunction ) Text3d_getWidth,
+ METH_NOARGS, "() - Return curve width"},
+ {"setWidth", ( PyCFunction ) Text3d_setWidth,
+ METH_VARARGS, "(int) - Sets curve width"},
+ {"getExt1", ( PyCFunction ) Text3d_getExt1,
+ METH_NOARGS, "() - Gets Text3d Ext1 Data"},
+ {"setExt1", ( PyCFunction ) Text3d_setExt1,
+ METH_VARARGS, "() - Sets Text3d Ext1 Data"},
+ {"getExt2", ( PyCFunction ) Text3d_getExt2,
+ METH_NOARGS, "() - Gets Text3d Ext2 Data"},
+ {"setExt2", ( PyCFunction ) Text3d_setExt2,
+ METH_VARARGS, "() - Sets Text3d Ext2 Data"},
+ {"getShear", ( PyCFunction ) Text3d_getShear,
+ METH_NOARGS, "() - Gets Text3d Shear Data"},
+ {"setShear", ( PyCFunction ) Text3d_setShear,
+ METH_VARARGS, "() - Sets Text3d Shear Data"},
+ {"getFsize", ( PyCFunction ) Text3d_getFsize,
+ METH_NOARGS, "() - Gets Text3d Fsize Data"},
+ {"setFsize", ( PyCFunction ) Text3d_setFsize,
+ METH_VARARGS, "() - Sets Text3d Fsize Data"},
+ {"getLinedist", ( PyCFunction ) Text3d_getLinedist,
+ METH_NOARGS, "() - Gets Text3d Linedist Data"},
+ {"setLinedist", ( PyCFunction ) Text3d_setLinedist,
+ METH_VARARGS, "() - Sets Text3d Linedist Data"},
+ {"getSpacing", ( PyCFunction ) Text3d_getSpacing,
+ METH_NOARGS, "() - Gets Text3d Spacing Data"},
+ {"setSpacing", ( PyCFunction ) Text3d_setSpacing,
+ METH_VARARGS, "() - Sets Text3d Spacing Data"},
+ {"getXof", ( PyCFunction ) Text3d_getXof,
+ METH_NOARGS, "() - Gets Text3d Xof Data"},
+ {"setXof", ( PyCFunction ) Text3d_setXof,
+ METH_VARARGS, "() - Sets Text3d Xof Data"},
+ {"getYof", ( PyCFunction ) Text3d_getYof,
+ METH_NOARGS, "() - Gets Text3d Yof Data"},
+ {"setYof", ( PyCFunction ) Text3d_setYof,
+ METH_VARARGS, "() - Sets Text3d Yof Data"},
+ {"getSpacemode", ( PyCFunction ) Text3d_getSpacemode,
+ METH_NOARGS, "() - Gets Text3d Spacemode Data"},
+ {"setSpacemode", ( PyCFunction ) Text3d_setSpacemode,
+ METH_VARARGS, "() - Sets Text3d Spacemode Data"},
+
{NULL, NULL, 0, NULL}
};
@@ -370,3 +471,226 @@
return Py_None;
}
+
+
+static PyObject *Text3d_getMode( BPy_Text3d * self )
+{
+ return Curve_getMode( self );
+}
+
+static PyObject *Text3d_setMode( BPy_Text3d * self, PyObject * args )
+{
+ return Curve_setMode( self,args );
+}
+
+static PyObject *Text3d_getBevresol( BPy_Text3d * self )
+{
+ return Curve_getBevresol( self );
+}
+
+static PyObject *Text3d_setBevresol( BPy_Text3d * self, PyObject * args )
+{
+ return Curve_setBevresol( self,args );
+}
+
+static PyObject *Text3d_getResolu( BPy_Text3d * self )
+{
+ return Curve_getResolu( self );
+}
+
+static PyObject *Text3d_setResolu( BPy_Text3d * self, PyObject * args )
+{
+ return Curve_setResolu( self,args );
+}
+
+static PyObject *Text3d_getResolv( BPy_Text3d * self )
+{
+ return Curve_getResolv( self );
+}
+
+static PyObject *Text3d_setResolv( BPy_Text3d * self, PyObject * args )
+{
+ return Curve_setResolv( self,args );
+}
+
+static PyObject *Text3d_getWidth( BPy_Text3d * self )
+{
+ return Curve_getWidth( self );
+}
+
+static PyObject *Text3d_setWidth( BPy_Text3d * self, PyObject * args )
+{
+ return Curve_setWidth( self,args );
+}
+
+static PyObject *Text3d_getExt1( BPy_Text3d * self )
+{
+ return Curve_getExt1( self );
+}
+
+static PyObject *Text3d_setExt1( BPy_Text3d * self, PyObject * args )
+{
+ return Curve_setExt1( self,args );
+}
+
+static PyObject *Text3d_getExt2( BPy_Text3d * self )
+{
+ return Curve_getExt2( self );
+}
+
+static PyObject *Text3d_setExt2( BPy_Text3d * self, PyObject * args )
+{
+ return Curve_setExt2( self,args );
+}
+
+static PyObject *Text3d_getShear( BPy_Text3d * self )
+{
+ PyObject *attr = PyFloat_FromDouble( ( double ) self->curve->shear );
+
+ if( attr )
+ return attr;
+
+ return ( EXPP_ReturnPyObjError( PyExc_RuntimeError,
+ "couldn't get Curve.shear attribute" ) );
+}
+
+static PyObject *Text3d_setShear( BPy_Text3d * self, PyObject * args )
+{
+
+ if( !PyArg_ParseTuple( args, "f", &( self->curve->shear ) ) )
+ return ( EXPP_ReturnPyObjError( PyExc_AttributeError,
+ "expected float argument" ) );
+
+ Py_INCREF( Py_None );
+ return Py_None;
+}
+
+static PyObject *Text3d_getFsize( BPy_Text3d * self )
+{
+ PyObject *attr = PyFloat_FromDouble( ( double ) self->curve->fsize );
+
+ if( attr )
+ return attr;
+
+ return ( EXPP_ReturnPyObjError( PyExc_RuntimeError,
+ "couldn't get Curve.fsize attribute" ) );
+}
+
+static PyObject *Text3d_setFsize( BPy_Text3d * self, PyObject * args )
+{
+
+ if( !PyArg_ParseTuple( args, "f", &( self->curve->fsize ) ) )
+ return ( EXPP_ReturnPyObjError( PyExc_AttributeError,
+ "expected float argument" ) );
+
+ Py_INCREF( Py_None );
+ return Py_None;
+}
+
+static PyObject *Text3d_getLinedist( BPy_Text3d * self )
+{
+ PyObject *attr = PyFloat_FromDouble( ( double ) self->curve->linedist );
+
+ if( attr )
+ return attr;
+
+ return ( EXPP_ReturnPyObjError( PyExc_RuntimeError,
+ "couldn't get Curve.linedist attribute" ) );
+}
+
+static PyObject *Text3d_setLinedist( BPy_Text3d * self, PyObject * args )
+{
+
+ if( !PyArg_ParseTuple( args, "f", &( self->curve->linedist ) ) )
+ return ( EXPP_ReturnPyObjError( PyExc_AttributeError,
+ "expected float argument" ) );
+
+ Py_INCREF( Py_None );
+ return Py_None;
+}
+
+static PyObject *Text3d_getSpacing( BPy_Text3d * self )
+{
+ PyObject *attr = PyFloat_FromDouble( ( double ) self->curve->spacing );
+
+ if( attr )
+ return attr;
+
+ return ( EXPP_ReturnPyObjError( PyExc_RuntimeError,
+ "couldn't get Curve.spacing attribute" ) );
+}
+
+static PyObject *Text3d_setSpacing( BPy_Text3d * self, PyObject * args )
+{
+
+ if( !PyArg_ParseTuple( args, "f", &( self->curve->spacing ) ) )
+ return ( EXPP_ReturnPyObjError( PyExc_AttributeError,
+ "expected float argument" ) );
+
+ Py_INCREF( Py_None );
+ return Py_None;
+}
+static PyObject *Text3d_getXof( BPy_Text3d * self )
+{
+ PyObject *attr = PyFloat_FromDouble( ( double ) self->curve->xof );
+
+ if( attr )
+ return attr;
+
+ return ( EXPP_ReturnPyObjError( PyExc_RuntimeError,
+ "couldn't get Curve.xof attribute" ) );
+}
+
+static PyObject *Text3d_setXof( BPy_Text3d * self, PyObject * args )
+{
+
+ if( !PyArg_ParseTuple( args, "f", &( self->curve->xof ) ) )
+ return ( EXPP_ReturnPyObjError( PyExc_AttributeError,
+ "expected float argument" ) );
+
+ Py_INCREF( Py_None );
+ return Py_None;
+}
+
+static PyObject *Text3d_getYof( BPy_Text3d * self )
+{
+ PyObject *attr = PyFloat_FromDouble( ( double ) self->curve->yof );
+
+ if( attr )
+ return attr;
+
+ return ( EXPP_ReturnPyObjError( PyExc_RuntimeError,
+ "couldn't get Curve.yof attribute" ) );
+}
+
+static PyObject *Text3d_setYof( BPy_Text3d * self, PyObject * args )
+{
+
+ if( !PyArg_ParseTuple( args, "f", &( self->curve->yof ) ) )
+ return ( EXPP_ReturnPyObjError( PyExc_AttributeError,
+ "expected float argument" ) );
+
+ Py_INCREF( Py_None );
+ return Py_None;
+}
+static PyObject *Text3d_getSpacemode( BPy_Text3d * self )
+{
+ PyObject *attr = PyInt_FromLong( ( long ) self->curve->spacemode );
+
+ if( attr )
+ return attr;
+
+ return ( EXPP_ReturnPyObjError( PyExc_RuntimeError,
+ "couldn't get Curve.yof attribute" ) );
+}
+
+static PyObject *Text3d_setSpacemode( BPy_Text3d * self, PyObject * args )
+{
+
+ if( !PyArg_ParseTuple( args, "i", &( self->curve->spacemode ) ) )
+ return ( EXPP_ReturnPyObjError( PyExc_AttributeError,
+ "expected float argument" ) );
+
+ Py_INCREF( Py_None );
+ return Py_None;
+}
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
78/cd/a26b4ff8e5bad16f2a158a6d2899
Event Timeline
Log In to Comment