Blender  V3.3
Functions | Variables
BPy_Freestyle.cpp File Reference
#include "BPy_Freestyle.h"
#include "BPy_BBox.h"
#include "BPy_BinaryPredicate0D.h"
#include "BPy_BinaryPredicate1D.h"
#include "BPy_ContextFunctions.h"
#include "BPy_Convert.h"
#include "BPy_FrsMaterial.h"
#include "BPy_FrsNoise.h"
#include "BPy_Id.h"
#include "BPy_IntegrationType.h"
#include "BPy_Interface0D.h"
#include "BPy_Interface1D.h"
#include "BPy_Iterator.h"
#include "BPy_MediumType.h"
#include "BPy_Nature.h"
#include "BPy_Operators.h"
#include "BPy_SShape.h"
#include "BPy_StrokeAttribute.h"
#include "BPy_StrokeShader.h"
#include "BPy_UnaryFunction0D.h"
#include "BPy_UnaryFunction1D.h"
#include "BPy_UnaryPredicate0D.h"
#include "BPy_UnaryPredicate1D.h"
#include "BPy_ViewMap.h"
#include "BPy_ViewShape.h"
#include "BKE_appdir.h"
#include "DNA_scene_types.h"
#include "FRS_freestyle.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "bpy_rna.h"
#include "DNA_material_types.h"
#include "BKE_material.h"
#include "BKE_colorband.h"
#include "BKE_colortools.h"
#include "DNA_color_types.h"

Go to the source code of this file.

Functions

static PyObject * Freestyle_getCurrentScene (PyObject *)
 
static int ramp_blend_type (const char *type)
 
static PyObject * Freestyle_blendRamp (PyObject *, PyObject *args)
 
static PyObject * Freestyle_evaluateColorRamp (PyObject *, PyObject *args)
 
static PyObject * Freestyle_evaluateCurveMappingF (PyObject *, PyObject *args)
 
PyObject * Freestyle_Init (void)
 

Variables

static char Freestyle_getCurrentScene___doc__ []
 
static char Freestyle_blendRamp___doc__ []
 
static char Freestyle_evaluateColorRamp___doc__ []
 
static char Freestyle_evaluateCurveMappingF___doc__ []
 
static char module_docstring []
 
static PyMethodDef module_functions []
 
static PyModuleDef module_definition
 

Function Documentation

◆ Freestyle_blendRamp()

static PyObject* Freestyle_blendRamp ( PyObject *  ,
PyObject *  args 
)
static

◆ Freestyle_evaluateColorRamp()

static PyObject* Freestyle_evaluateColorRamp ( PyObject *  ,
PyObject *  args 
)
static

◆ Freestyle_evaluateCurveMappingF()

static PyObject* Freestyle_evaluateCurveMappingF ( PyObject *  ,
PyObject *  args 
)
static

◆ Freestyle_getCurrentScene()

static PyObject* Freestyle_getCurrentScene ( PyObject *  )
static

◆ Freestyle_Init()

PyObject* Freestyle_Init ( void  )

◆ ramp_blend_type()

static int ramp_blend_type ( const char *  type)
static

Variable Documentation

◆ Freestyle_blendRamp___doc__

char Freestyle_blendRamp___doc__[]
static
Initial value:
=
".. function:: blendRamp(type, color1, fac, color2)\n"
"\n"
" Blend two colors according to a ramp blend type.\n"
"\n"
" :arg type: Ramp blend type.\n"
" :type type: int\n"
" :arg color1: 1st color.\n"
" :type color1: :class:`mathutils.Vector`, list or tuple of 3 real numbers\n"
" :arg fac: Blend factor.\n"
" :type fac: float\n"
" :arg color2: 1st color.\n"
" :type color2: :class:`mathutils.Vector`, list or tuple of 3 real numbers\n"
" :return: Blended color in RGB format.\n"
" :rtype: :class:`mathutils.Vector`\n"

Definition at line 132 of file BPy_Freestyle.cpp.

◆ Freestyle_evaluateColorRamp___doc__

char Freestyle_evaluateColorRamp___doc__[]
static
Initial value:
=
".. function:: evaluateColorRamp(ramp, in)\n"
"\n"
" Evaluate a color ramp at a point in the interval 0 to 1.\n"
"\n"
" :arg ramp: Color ramp object.\n"
" :type ramp: :class:`bpy.types.ColorRamp`\n"
" :arg in: Value in the interval 0 to 1.\n"
" :type in: float\n"
" :return: color in RGBA format.\n"
" :rtype: :class:`mathutils.Vector`\n"

Definition at line 185 of file BPy_Freestyle.cpp.

◆ Freestyle_evaluateCurveMappingF___doc__

char Freestyle_evaluateCurveMappingF___doc__[]
static
Initial value:
=
".. function:: evaluateCurveMappingF(cumap, cur, value)\n"
"\n"
" Evaluate a curve mapping at a point in the interval 0 to 1.\n"
"\n"
" :arg cumap: Curve mapping object.\n"
" :type cumap: :class:`bpy.types.CurveMapping`\n"
" :arg cur: Index of the curve to be used (0 <= cur <= 3).\n"
" :type cur: int\n"
" :arg value: Input value in the interval 0 to 1.\n"
" :type value: float\n"
" :return: Mapped output value.\n"
" :rtype: float\n"

Definition at line 221 of file BPy_Freestyle.cpp.

◆ Freestyle_getCurrentScene___doc__

char Freestyle_getCurrentScene___doc__[]
static
Initial value:
=
".. function:: getCurrentScene()\n"
"\n"
" Returns the current scene.\n"
"\n"
" :return: The current scene.\n"
" :rtype: :class:`bpy.types.Scene`\n"

Definition at line 49 of file BPy_Freestyle.cpp.

◆ module_definition

PyModuleDef module_definition
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"_freestyle",
-1,
}
static char module_docstring[]
static PyMethodDef module_functions[]

Definition at line 510 of file BPy_Freestyle.cpp.

Referenced by Freestyle_Init().

◆ module_docstring

char module_docstring[]
static

Definition at line 265 of file BPy_Freestyle.cpp.

◆ module_functions

PyMethodDef module_functions[]
static
Initial value:
= {
{"getCurrentScene",
METH_NOARGS,
{"blendRamp", (PyCFunction)Freestyle_blendRamp, METH_VARARGS, Freestyle_blendRamp___doc__},
{"evaluateColorRamp",
METH_VARARGS,
{"evaluateCurveMappingF",
METH_VARARGS,
{nullptr, nullptr, 0, nullptr},
}
static PyObject * Freestyle_evaluateCurveMappingF(PyObject *, PyObject *args)
static char Freestyle_evaluateCurveMappingF___doc__[]
static char Freestyle_evaluateColorRamp___doc__[]
static PyObject * Freestyle_blendRamp(PyObject *, PyObject *args)
static char Freestyle_getCurrentScene___doc__[]
static char Freestyle_blendRamp___doc__[]
static PyObject * Freestyle_getCurrentScene(PyObject *)
static PyObject * Freestyle_evaluateColorRamp(PyObject *, PyObject *args)

Definition at line 491 of file BPy_Freestyle.cpp.