2008-10-31 23:50:02 +00:00
|
|
|
/**
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
*
|
|
|
|
* 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,
|
2010-02-12 13:34:04 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2008-10-31 23:50:02 +00:00
|
|
|
*
|
|
|
|
* Contributor(s): Blender Foundation (2008).
|
|
|
|
*
|
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
|
|
*/
|
|
|
|
|
2011-01-15 16:14:57 +00:00
|
|
|
#ifndef RNA_ACCESS_H
|
|
|
|
#define RNA_ACCESS_H
|
2008-10-31 23:50:02 +00:00
|
|
|
|
2009-04-07 00:49:39 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2009-03-19 19:03:38 +00:00
|
|
|
#include "DNA_listBase.h"
|
2008-11-14 14:34:19 +00:00
|
|
|
#include "RNA_types.h"
|
|
|
|
|
2009-03-14 23:17:55 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2008-10-31 23:50:02 +00:00
|
|
|
struct bContext;
|
2008-11-24 15:51:55 +00:00
|
|
|
struct ID;
|
2008-11-07 02:58:25 +00:00
|
|
|
struct Main;
|
2009-06-18 19:48:55 +00:00
|
|
|
struct ReportList;
|
2009-12-08 17:23:48 +00:00
|
|
|
struct Scene;
|
2008-11-07 02:58:25 +00:00
|
|
|
|
2008-11-24 15:51:55 +00:00
|
|
|
/* Types */
|
|
|
|
|
RNA
* More ID property support. What was already possible was showing
ID properties as RNA properties. Now it is possible to define
RNA properties and have an ID property automatically created the
first time it is set (if not set it retuns the default).
* Added support for defining RNA structs and properties at runtime.
This is useful for python and plugins, and could also be used
for operators, not sure yet what is best there, they could be done
in preprocess for speed, but not sure how to do that while keeping
operator registration a single function.
* Added quick functions to get/set properties based on names, to be
used for operators.
* Added some simple support for inheritance, was already doing this
but having it as a feature simplifies things. Two things were added
for this: when defining a struct you can give a 'from' struct whose
properties will be copied, and structs like ID, operator, modifier,
can define a refine callback that will return the more specific type
of the struct like ID -> Object, Mesh, .. .
* Added simple windowmanager wrap with only the registered operators
list, used for testing RNA for operators.
2008-11-21 02:23:46 +00:00
|
|
|
extern BlenderRNA BLENDER_RNA;
|
2009-01-05 16:31:00 +00:00
|
|
|
extern StructRNA RNA_Action;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ActionConstraint;
|
2009-01-07 21:05:51 +00:00
|
|
|
extern StructRNA RNA_ActionGroup;
|
2008-11-30 19:52:21 +00:00
|
|
|
extern StructRNA RNA_Actuator;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_ActuatorSensor;
|
2010-02-26 14:28:29 +00:00
|
|
|
extern StructRNA RNA_Addon;
|
2008-12-02 23:45:11 +00:00
|
|
|
extern StructRNA RNA_AlwaysSensor;
|
|
|
|
extern StructRNA RNA_AndController;
|
2009-02-02 11:51:10 +00:00
|
|
|
extern StructRNA RNA_AnimData;
|
2010-01-07 22:54:05 +00:00
|
|
|
extern StructRNA RNA_AnimViz;
|
|
|
|
extern StructRNA RNA_AnimVizMotionPaths;
|
2010-02-10 08:53:08 +00:00
|
|
|
extern StructRNA RNA_AnimVizOnionSkinning;
|
2009-04-07 00:49:39 +00:00
|
|
|
extern StructRNA RNA_AnyType;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_Area;
|
|
|
|
extern StructRNA RNA_AreaLamp;
|
2008-12-09 11:29:40 +00:00
|
|
|
extern StructRNA RNA_Armature;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_ArmatureModifier;
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
extern StructRNA RNA_ArmatureSensor;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_ArrayModifier;
|
2009-05-31 01:22:34 +00:00
|
|
|
extern StructRNA RNA_BackgroundImage;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_BevelModifier;
|
2009-11-29 16:42:51 +00:00
|
|
|
extern StructRNA RNA_BezierSplinePoint;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_BlendData;
|
2009-11-29 16:42:51 +00:00
|
|
|
extern StructRNA RNA_BlendTexture;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_BlenderRNA;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_BoidRule;
|
|
|
|
extern StructRNA RNA_BoidRuleAverageSpeed;
|
|
|
|
extern StructRNA RNA_BoidRuleAvoid;
|
|
|
|
extern StructRNA RNA_BoidRuleAvoidCollision;
|
|
|
|
extern StructRNA RNA_BoidRuleFight;
|
|
|
|
extern StructRNA RNA_BoidRuleFollowLeader;
|
|
|
|
extern StructRNA RNA_BoidRuleGoal;
|
|
|
|
extern StructRNA RNA_BoidSettings;
|
|
|
|
extern StructRNA RNA_BoidState;
|
2008-12-09 11:29:40 +00:00
|
|
|
extern StructRNA RNA_Bone;
|
2009-07-21 10:18:08 +00:00
|
|
|
extern StructRNA RNA_BoneGroup;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_BooleanModifier;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_BooleanProperty;
|
2008-12-01 06:52:18 +00:00
|
|
|
extern StructRNA RNA_Brush;
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
extern StructRNA RNA_BrushTextureSlot;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_BuildModifier;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_Camera;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_CastModifier;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ChildOfConstraint;
|
|
|
|
extern StructRNA RNA_ChildParticle;
|
|
|
|
extern StructRNA RNA_ClampToConstraint;
|
2009-01-04 19:25:24 +00:00
|
|
|
extern StructRNA RNA_ClothCollisionSettings;
|
2009-01-07 21:05:51 +00:00
|
|
|
extern StructRNA RNA_ClothModifier;
|
2009-01-04 19:25:24 +00:00
|
|
|
extern StructRNA RNA_ClothSettings;
|
2009-04-09 20:33:39 +00:00
|
|
|
extern StructRNA RNA_CloudsTexture;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_CollectionProperty;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_CollisionModifier;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_CollisionSensor;
|
2009-01-02 13:47:33 +00:00
|
|
|
extern StructRNA RNA_CollisionSettings;
|
2009-01-06 00:56:20 +00:00
|
|
|
extern StructRNA RNA_ColorRamp;
|
|
|
|
extern StructRNA RNA_ColorRampElement;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_ColorSequence;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_CompositorNode;
|
|
|
|
extern StructRNA RNA_CompositorNodeAlphaOver;
|
|
|
|
extern StructRNA RNA_CompositorNodeBilateralblur;
|
|
|
|
extern StructRNA RNA_CompositorNodeBlur;
|
|
|
|
extern StructRNA RNA_CompositorNodeBrightContrast;
|
|
|
|
extern StructRNA RNA_CompositorNodeChannelMatte;
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
extern StructRNA RNA_CompositorNodeChromaMatte;
|
|
|
|
extern StructRNA RNA_CompositorNodeColorMatte;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_CompositorNodeColorSpill;
|
|
|
|
extern StructRNA RNA_CompositorNodeCombHSVA;
|
|
|
|
extern StructRNA RNA_CompositorNodeCombRGBA;
|
|
|
|
extern StructRNA RNA_CompositorNodeCombYCCA;
|
|
|
|
extern StructRNA RNA_CompositorNodeCombYUVA;
|
|
|
|
extern StructRNA RNA_CompositorNodeComposite;
|
|
|
|
extern StructRNA RNA_CompositorNodeCrop;
|
|
|
|
extern StructRNA RNA_CompositorNodeCurveRGB;
|
|
|
|
extern StructRNA RNA_CompositorNodeCurveVec;
|
|
|
|
extern StructRNA RNA_CompositorNodeDBlur;
|
|
|
|
extern StructRNA RNA_CompositorNodeDefocus;
|
|
|
|
extern StructRNA RNA_CompositorNodeDiffMatte;
|
|
|
|
extern StructRNA RNA_CompositorNodeDilateErode;
|
|
|
|
extern StructRNA RNA_CompositorNodeDisplace;
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
extern StructRNA RNA_CompositorNodeDistanceMatte;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_CompositorNodeFilter;
|
|
|
|
extern StructRNA RNA_CompositorNodeFlip;
|
|
|
|
extern StructRNA RNA_CompositorNodeGamma;
|
|
|
|
extern StructRNA RNA_CompositorNodeGlare;
|
|
|
|
extern StructRNA RNA_CompositorNodeHueSat;
|
|
|
|
extern StructRNA RNA_CompositorNodeIDMask;
|
|
|
|
extern StructRNA RNA_CompositorNodeImage;
|
|
|
|
extern StructRNA RNA_CompositorNodeInvert;
|
|
|
|
extern StructRNA RNA_CompositorNodeLensdist;
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
extern StructRNA RNA_CompositorNodeLevels;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_CompositorNodeLumaMatte;
|
|
|
|
extern StructRNA RNA_CompositorNodeMapUV;
|
|
|
|
extern StructRNA RNA_CompositorNodeMapValue;
|
|
|
|
extern StructRNA RNA_CompositorNodeMath;
|
|
|
|
extern StructRNA RNA_CompositorNodeMixRGB;
|
|
|
|
extern StructRNA RNA_CompositorNodeNormal;
|
|
|
|
extern StructRNA RNA_CompositorNodeNormalize;
|
|
|
|
extern StructRNA RNA_CompositorNodeOutputFile;
|
|
|
|
extern StructRNA RNA_CompositorNodePremulKey;
|
|
|
|
extern StructRNA RNA_CompositorNodeRGB;
|
|
|
|
extern StructRNA RNA_CompositorNodeRGBToBW;
|
|
|
|
extern StructRNA RNA_CompositorNodeRLayers;
|
|
|
|
extern StructRNA RNA_CompositorNodeRotate;
|
|
|
|
extern StructRNA RNA_CompositorNodeScale;
|
|
|
|
extern StructRNA RNA_CompositorNodeSepHSVA;
|
|
|
|
extern StructRNA RNA_CompositorNodeSepRGBA;
|
|
|
|
extern StructRNA RNA_CompositorNodeSepYCCA;
|
|
|
|
extern StructRNA RNA_CompositorNodeSepYUVA;
|
|
|
|
extern StructRNA RNA_CompositorNodeSetAlpha;
|
|
|
|
extern StructRNA RNA_CompositorNodeSplitViewer;
|
|
|
|
extern StructRNA RNA_CompositorNodeTexture;
|
|
|
|
extern StructRNA RNA_CompositorNodeTime;
|
|
|
|
extern StructRNA RNA_CompositorNodeTonemap;
|
|
|
|
extern StructRNA RNA_CompositorNodeTranslate;
|
2010-12-02 01:18:59 +00:00
|
|
|
extern StructRNA RNA_CompositorNodeTree;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_CompositorNodeValToRGB;
|
|
|
|
extern StructRNA RNA_CompositorNodeValue;
|
|
|
|
extern StructRNA RNA_CompositorNodeVecBlur;
|
|
|
|
extern StructRNA RNA_CompositorNodeViewer;
|
|
|
|
extern StructRNA RNA_CompositorNodeZcombine;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_ConsoleLine;
|
2008-12-12 23:30:23 +00:00
|
|
|
extern StructRNA RNA_Constraint;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ConstraintTarget;
|
2009-03-19 19:03:38 +00:00
|
|
|
extern StructRNA RNA_Context;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_ControlFluidSettings;
|
2008-12-02 23:45:11 +00:00
|
|
|
extern StructRNA RNA_Controller;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_CopyLocationConstraint;
|
|
|
|
extern StructRNA RNA_CopyRotationConstraint;
|
|
|
|
extern StructRNA RNA_CopyScaleConstraint;
|
2010-01-02 04:14:17 +00:00
|
|
|
extern StructRNA RNA_CopyTransformsConstraint;
|
2008-12-01 19:02:27 +00:00
|
|
|
extern StructRNA RNA_Curve;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_CurveMap;
|
2009-11-29 16:42:51 +00:00
|
|
|
extern StructRNA RNA_CurveMapPoint;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_CurveMapping;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_CurveModifier;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_CurvePoint;
|
2009-10-30 06:33:40 +00:00
|
|
|
extern StructRNA RNA_DampedTrackConstraint;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_DecimateModifier;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_DelaySensor;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_DisplaceModifier;
|
2009-04-09 20:33:39 +00:00
|
|
|
extern StructRNA RNA_DistortedNoiseTexture;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_DomainFluidSettings;
|
2009-02-02 11:51:10 +00:00
|
|
|
extern StructRNA RNA_Driver;
|
Animato - Drivers with Multiple Targets:
Drivers now support multiple targets which act as 'variables'. The targets have a short 'name' (see later), and reference some property (in much the same way as F-Curves do, using RNA-Paths) which acts as the 'value'.
These named variables can then be used in a Python Expression which relates them to each other for more fine-grained control over the result of the driver. By using only the names of these variables in the expressions, we are able to define expressions/relationships in a much more readable way, as data access is separated from data use. This makes the underlying relationships easier to understand.
By default, if no Python Expression is given, the variables are simply averaged together, so old files won't break. :)
For example, check the following diagram (thanks Cessen/Nathan V from Peach team):
http://download.blender.org/ftp/incoming/250_drivers_mockup_cessen.png
TODO List:
* Depsgraph building for new driver relationships doesn't work yet. This needs to be recoded again, but this new system makes this much easier, since the targets are clearly defined (i.e. no need to parse py expressions to get list of objects)
* Graph Editor interface for editing these needs to be rewritten
* Python function for evaluating these expressions is needed (Campbell?)
2009-04-16 07:37:06 +00:00
|
|
|
extern StructRNA RNA_DriverTarget;
|
Durian Request: Drivers Recode
Highlights:
* Support for Multi-Target Variables
This was the main reason for this recode. Previously, variables could only be used to give some RNA property used as an input source to the driver a name. However, this meant that effects such as Rotational Difference couldn't be used in conjunction with other effects and/or settings to achieve the powerful results. Now, a variable can take several input targets, perform some interesting operations on them, and spit out a representative value based on that.
* New Variable Types
With the introduction of multi-target variables, there are now 3 types of variable that can be used: single property (i.e. the only type previously), Rotational Difference (angle between two bones), and Distance (distance between two objects or bones).
* New Driver Types
In addition to the existing 'Average', 'Sum', and 'Expression' types, there is now the additional options of 'Minimum' and 'Maximum'. These take the smallest/largest value that one of the variables evaluates to.
* Fix for Driver F-Curve colouring bug
Newly added drivers did not get automatically coloured in the Graph Editor properly. Was caused by inappropriate notifiers being used.
Notes:
* This commit breaks existing 2.5 files with drivers (in other words, they are lost forever).
* Rigify has been corrected to work with the new system. The PyAPI for accessing targets used for the variables could still be made nicer (using subclassing to directly access?), but that is left for later.
* Version patching for 2.49 files still needs to be put back in place.
2010-01-04 21:15:45 +00:00
|
|
|
extern StructRNA RNA_DriverVariable;
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
extern StructRNA RNA_DupliObject;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_EdgeSplitModifier;
|
2009-06-19 14:56:49 +00:00
|
|
|
extern StructRNA RNA_EditBone;
|
2009-11-29 16:42:51 +00:00
|
|
|
extern StructRNA RNA_EffectSequence;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_EffectorWeights;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_EnumProperty;
|
|
|
|
extern StructRNA RNA_EnumPropertyItem;
|
2009-01-03 07:20:11 +00:00
|
|
|
extern StructRNA RNA_EnvironmentMap;
|
2009-04-09 20:33:39 +00:00
|
|
|
extern StructRNA RNA_EnvironmentMapTexture;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_Event;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_ExplodeModifier;
|
2008-12-02 23:45:11 +00:00
|
|
|
extern StructRNA RNA_ExpressionController;
|
2009-02-02 11:51:10 +00:00
|
|
|
extern StructRNA RNA_FCurve;
|
2009-07-02 04:47:36 +00:00
|
|
|
extern StructRNA RNA_FCurveSample;
|
2009-04-19 10:44:07 +00:00
|
|
|
extern StructRNA RNA_FModifier;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_FModifierCycles;
|
|
|
|
extern StructRNA RNA_FModifierEnvelope;
|
2009-07-02 12:41:03 +00:00
|
|
|
extern StructRNA RNA_FModifierEnvelopeControlPoint;
|
2009-07-02 02:12:37 +00:00
|
|
|
extern StructRNA RNA_FModifierFunctionGenerator;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_FModifierGenerator;
|
|
|
|
extern StructRNA RNA_FModifierLimits;
|
|
|
|
extern StructRNA RNA_FModifierNoise;
|
|
|
|
extern StructRNA RNA_FModifierPython;
|
2010-03-18 13:04:46 +00:00
|
|
|
extern StructRNA RNA_FModifierStepped;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_FieldSettings;
|
|
|
|
extern StructRNA RNA_FileSelectParams;
|
|
|
|
extern StructRNA RNA_FloatProperty;
|
|
|
|
extern StructRNA RNA_FloorConstraint;
|
|
|
|
extern StructRNA RNA_FluidFluidSettings;
|
|
|
|
extern StructRNA RNA_FluidSettings;
|
|
|
|
extern StructRNA RNA_FluidSimulationModifier;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_FollowPathConstraint;
|
2009-04-07 00:49:39 +00:00
|
|
|
extern StructRNA RNA_Function;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_GPencilFrame;
|
|
|
|
extern StructRNA RNA_GPencilLayer;
|
|
|
|
extern StructRNA RNA_GPencilStroke;
|
|
|
|
extern StructRNA RNA_GPencilStrokePoint;
|
2008-12-02 01:05:23 +00:00
|
|
|
extern StructRNA RNA_GameBooleanProperty;
|
|
|
|
extern StructRNA RNA_GameFloatProperty;
|
|
|
|
extern StructRNA RNA_GameIntProperty;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_GameObjectSettings;
|
2008-12-02 23:45:11 +00:00
|
|
|
extern StructRNA RNA_GameProperty;
|
2009-01-02 13:47:33 +00:00
|
|
|
extern StructRNA RNA_GameSoftBodySettings;
|
2008-12-02 01:05:23 +00:00
|
|
|
extern StructRNA RNA_GameStringProperty;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_GameTimerProperty;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_GlowSequence;
|
2009-08-27 06:03:41 +00:00
|
|
|
extern StructRNA RNA_GreasePencil;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_Group;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_Header;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_HemiLamp;
|
2010-01-19 01:32:06 +00:00
|
|
|
extern StructRNA RNA_Histogram;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_HookModifier;
|
2008-11-24 15:51:55 +00:00
|
|
|
extern StructRNA RNA_ID;
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
extern StructRNA RNA_IKParam;
|
2008-11-30 18:39:49 +00:00
|
|
|
extern StructRNA RNA_Image;
|
2009-07-25 22:31:02 +00:00
|
|
|
extern StructRNA RNA_ImagePaint;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_ImageSequence;
|
2009-04-09 20:33:39 +00:00
|
|
|
extern StructRNA RNA_ImageTexture;
|
2008-11-30 18:39:49 +00:00
|
|
|
extern StructRNA RNA_ImageUser;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_InflowFluidSettings;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_IntProperty;
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
extern StructRNA RNA_Itasc;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_JoystickSensor;
|
2008-12-03 21:18:10 +00:00
|
|
|
extern StructRNA RNA_Key;
|
2009-11-29 16:42:51 +00:00
|
|
|
extern StructRNA RNA_KeyConfig;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_KeyMap;
|
|
|
|
extern StructRNA RNA_KeyMapItem;
|
|
|
|
extern StructRNA RNA_KeyboardSensor;
|
2010-02-10 08:53:08 +00:00
|
|
|
extern StructRNA RNA_Keyframe;
|
2009-02-13 01:51:33 +00:00
|
|
|
extern StructRNA RNA_KeyingSet;
|
== Massive Keying Sets Recode ==
After a few days of wrong turns and learning the finer points of RNA-type-subclassing the hard way, this commit finally presents a refactored version of the Keying Sets system (now version 2) based on some requirements from Cessen.
For a more thorough discussion of this commit, see
http://sites.google.com/site/aligorith/keyingsets_2.pdf?attredirects=0&d=1
------
The main highlight of this refactor is that relative Keying Sets have now been recoded so that Python callbacks are run to generate the Keying Set's list of paths everytime the Keying Set is used (to insert or delete keyframes), allowing complex heuristics to be used to determine whether a property gets keyframed based on the current context. These checks may include checking on selection status of related entities, or transform locks.
Built-In KeyingSets have also been recoded, and moved from C and out into Python. These are now coded as Relative Keying Sets, and can to some extent serve as basis for adding new relative Keying Sets. However, these have mostly been coded in a slightly 'modular' way which may be confusing for those not so familiar with Python in general. A usable template will be added soon for more general usage.
Keyframing settings (i.e. 'visual', 'needed') can now be specified on a per-path basis now, which is especially useful for Absolute Keying Sets, where control over this is often beneficial.
Most of the places where Auto-Keyframing is performed have been tidied up for consistency. I'm sure quite a few issues still exist there, but these I'll clean up over the next few days.
2010-03-16 06:18:49 +00:00
|
|
|
extern StructRNA RNA_KeyingSetInfo;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_KeyingSetPath;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_KinematicConstraint;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_Lamp;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_LampSkySettings;
|
|
|
|
extern StructRNA RNA_LampTextureSlot;
|
2008-11-30 18:39:49 +00:00
|
|
|
extern StructRNA RNA_Lattice;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_LatticeModifier;
|
2009-01-02 14:48:03 +00:00
|
|
|
extern StructRNA RNA_LatticePoint;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_Library;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_LimitDistanceConstraint;
|
|
|
|
extern StructRNA RNA_LimitLocationConstraint;
|
|
|
|
extern StructRNA RNA_LimitRotationConstraint;
|
|
|
|
extern StructRNA RNA_LimitScaleConstraint;
|
|
|
|
extern StructRNA RNA_LockedTrackConstraint;
|
2010-02-10 08:53:08 +00:00
|
|
|
extern StructRNA RNA_Macro;
|
2009-04-09 20:33:39 +00:00
|
|
|
extern StructRNA RNA_MagicTexture;
|
|
|
|
extern StructRNA RNA_MarbleTexture;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_MaskModifier;
|
2008-11-27 13:36:28 +00:00
|
|
|
extern StructRNA RNA_Material;
|
2009-01-03 20:20:09 +00:00
|
|
|
extern StructRNA RNA_MaterialHalo;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_MaterialPhysics;
|
2009-01-03 20:20:09 +00:00
|
|
|
extern StructRNA RNA_MaterialRaytraceMirror;
|
|
|
|
extern StructRNA RNA_MaterialRaytraceTransparency;
|
2009-06-03 23:22:43 +00:00
|
|
|
extern StructRNA RNA_MaterialSlot;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_MaterialStrand;
|
2009-01-05 05:09:20 +00:00
|
|
|
extern StructRNA RNA_MaterialSubsurfaceScattering;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_MaterialTextureSlot;
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
extern StructRNA RNA_MaterialVolume;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_Menu;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_Mesh;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_MeshColor;
|
|
|
|
extern StructRNA RNA_MeshColorLayer;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_MeshDeformModifier;
|
2009-01-02 14:48:03 +00:00
|
|
|
extern StructRNA RNA_MeshEdge;
|
|
|
|
extern StructRNA RNA_MeshFace;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_MeshFloatProperty;
|
|
|
|
extern StructRNA RNA_MeshFloatPropertyLayer;
|
|
|
|
extern StructRNA RNA_MeshIntProperty;
|
|
|
|
extern StructRNA RNA_MeshIntPropertyLayer;
|
|
|
|
extern StructRNA RNA_MeshSticky;
|
|
|
|
extern StructRNA RNA_MeshStringProperty;
|
|
|
|
extern StructRNA RNA_MeshStringPropertyLayer;
|
2009-01-02 14:48:03 +00:00
|
|
|
extern StructRNA RNA_MeshTextureFace;
|
|
|
|
extern StructRNA RNA_MeshTextureFaceLayer;
|
|
|
|
extern StructRNA RNA_MeshVertex;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_MessageSensor;
|
2008-11-30 20:18:55 +00:00
|
|
|
extern StructRNA RNA_MetaBall;
|
2008-12-02 23:45:11 +00:00
|
|
|
extern StructRNA RNA_MetaElement;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_MetaSequence;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_MirrorModifier;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_Modifier;
|
2010-01-07 22:54:05 +00:00
|
|
|
extern StructRNA RNA_MotionPath;
|
|
|
|
extern StructRNA RNA_MotionPathVert;
|
2010-02-10 08:53:08 +00:00
|
|
|
extern StructRNA RNA_MouseSensor;
|
|
|
|
extern StructRNA RNA_MovieSequence;
|
== Sequencer ==
This adds MULTICAM-editing support for blender. (Well, the beginning of.)
There is now a new effect track, named MULTICAM, which just selects
one of the lower tracks.
Doesn't sound that exciting, but if you combine this with A/B-Trim (moving
split points of two directly connected tracks around, while magically
resizing both strips, something to be added), you just do:
* add several tracks for your camera angles
* (optionally) sync those tracks
* add one multicam track on top
Use that multicam-track to edit your movie. (Either using fcurves on the
multicam source selector or using knife-tool and A/B-Trim.)
Compare that to:
* add several tracks
* add cross fades between them
* do some python scripting to add several fcurves to make that beast
somewhat work.
* cry out loud, using it, if you have to move cut points around
Alternatively, even harder:
* just edit the old way and put strip after strip
You might think, that this isn't really helpfull for animators, but
consider using scene-strips (in OpenGL-mode) for input, that are set for
different camera angles and can now be intercut a lot more easily...
Also: small fix on the way: the speed effect can now be used in cascade.
(Don't know, if anyone used it that way, but now it works.)
2010-04-25 12:53:39 +00:00
|
|
|
extern StructRNA RNA_MulticamSequence;
|
2009-01-06 20:15:23 +00:00
|
|
|
extern StructRNA RNA_MultiresModifier;
|
2009-04-09 20:33:39 +00:00
|
|
|
extern StructRNA RNA_MusgraveTexture;
|
2008-12-02 23:45:11 +00:00
|
|
|
extern StructRNA RNA_NandController;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_NearSensor;
|
2009-06-07 06:49:04 +00:00
|
|
|
extern StructRNA RNA_NlaStrip;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_NlaTrack;
|
2008-11-29 01:04:15 +00:00
|
|
|
extern StructRNA RNA_Node;
|
2010-01-13 06:35:12 +00:00
|
|
|
extern StructRNA RNA_NodeGroup;
|
2010-11-14 08:11:58 +00:00
|
|
|
extern StructRNA RNA_NodeLink;
|
2009-11-11 02:15:09 +00:00
|
|
|
extern StructRNA RNA_NodeSocket;
|
2009-11-29 16:42:51 +00:00
|
|
|
extern StructRNA RNA_NodeTree;
|
2009-04-09 20:33:39 +00:00
|
|
|
extern StructRNA RNA_NoiseTexture;
|
2008-12-02 23:45:11 +00:00
|
|
|
extern StructRNA RNA_NorController;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_Object;
|
2009-11-11 09:16:53 +00:00
|
|
|
extern StructRNA RNA_ObjectBase;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_ObstacleFluidSettings;
|
2008-11-24 15:51:55 +00:00
|
|
|
extern StructRNA RNA_Operator;
|
2009-06-05 16:11:35 +00:00
|
|
|
extern StructRNA RNA_OperatorFileListElement;
|
RNA:
* Added support for using pointers + collections as operator properties,
but with the restriction that they must point to other type derived from
ID property groups. The "add" function for these properties will allocate
a new ID property group and point to that.
* Added support for arrays with type IDP_GROUP in ID properties.
* Fix bug getting/setting float array values.
Example code for collections, note the "OperatorMousePath" type is defined
in rna_wm.c and has a float[2] property named "loc".
Defining the operator property:
prop= RNA_def_property(ot->srna, "path", PROP_COLLECTION, PROP_NONE);
RNA_def_property_struct_runtime(prop, &RNA_OperatorMousePath);
Adding values:
PointerRNA itemptr;
float loc[2] = {1, 1},
RNA_collection_add(op->ptr, "path", &itemptr);
RNA_float_set_array(&itemptr, "loc", loc);
Iterating:
RNA_BEGIN(op->ptr, itemptr, "path") {
float loc[2];
RNA_float_get_array(&itemptr, "loc", loc);
printf("Location: %f %f\n", loc[0], loc[1]);
}
RNA_END;
2008-12-26 20:38:52 +00:00
|
|
|
extern StructRNA RNA_OperatorMousePath;
|
2008-12-16 20:03:28 +00:00
|
|
|
extern StructRNA RNA_OperatorProperties;
|
2009-01-13 20:50:07 +00:00
|
|
|
extern StructRNA RNA_OperatorStrokeElement;
|
2009-12-05 19:27:26 +00:00
|
|
|
extern StructRNA RNA_OperatorTypeMacro;
|
2008-12-02 23:45:11 +00:00
|
|
|
extern StructRNA RNA_OrController;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_OutflowFluidSettings;
|
2008-12-01 21:23:58 +00:00
|
|
|
extern StructRNA RNA_PackedFile;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_Paint;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_Panel;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_Particle;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_ParticleBrush;
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
extern StructRNA RNA_ParticleDupliWeight;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_ParticleEdit;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_ParticleFluidSettings;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ParticleHairKey;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_ParticleInstanceModifier;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ParticleKey;
|
2009-01-02 13:47:33 +00:00
|
|
|
extern StructRNA RNA_ParticleSettings;
|
2011-02-12 14:38:34 +00:00
|
|
|
extern StructRNA RNA_ParticleSettingsTextureSlot;
|
2009-01-02 13:47:33 +00:00
|
|
|
extern StructRNA RNA_ParticleSystem;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_ParticleSystemModifier;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_ParticleTarget;
|
== Pivot Constraint ==
This constraint allows an object or bone to have their rotations applied as if their origin/pivot-point was located elsewhere. The most obvious uses include foot-roll, see-saws, but could also include more complicated rolling-box examples.
== Usage Examples ==
=== Foot Roll ===
1. Add 'Pivot' Constraint to the bone without any target.
2. Set the 'Y' value of the offset to the length of the bone. Usually this should be negative (if you rig with feet facing 'forwards' along -Y axis). This gives you a pivot point relative to the bone's (preconstraint) location, which should be at the tip of the bone here. Disabling the 'Use Relative Offset' would make this offset be relative to 0,0,0 instead of to the owner/bone-head.
3. Ensure that the 'Pivot When' setting is set to '-X Rot', (default) which means that the pivot will only used when the rotation on the X-Axis is negative to get tip-toe 'roll'.
=== See Saw ===
1. Add a 'Pivot' constraint too see-saw plank object, this time with a target that you wish to have as the pivot-point. It's possible to do this without too (as before), but is less intuitive.
2. Optionally, if you want the plank slightly raised, set the z-offset value, which should make the pivot-point used to be relative to the target with the z-offset applied.
3. Ensure that 'Pivot When' is set to 'Always', which means that the pivot will always be used, irrespective of the rotation.
== Notes ==
* The 'Pivot When' setting has been integrated in the constraint, since this is something that will often be required for these setups. Having to set up additional drivers to drive the constraint to do this kindof beats the purpose of providing this.
* The 'Offset' functionality is probably not presented as clearly as it could be. We may need to go over this again.
* For foot-roll - if any scaling of the foot is required, simply set up a driver on the y-offset to make this dynamically respond to the "scale" RNA property of the bones (don't use the "Transform Channel" vartype since that won't work correct here). However, this shouldn't be common enough to warrant special treatment.
2010-05-27 10:50:06 +00:00
|
|
|
extern StructRNA RNA_PivotConstraint;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_PluginSequence;
|
2009-04-09 20:33:39 +00:00
|
|
|
extern StructRNA RNA_PluginTexture;
|
2009-01-02 13:47:33 +00:00
|
|
|
extern StructRNA RNA_PointCache;
|
2009-08-13 05:21:25 +00:00
|
|
|
extern StructRNA RNA_PointDensity;
|
|
|
|
extern StructRNA RNA_PointDensityTexture;
|
2009-11-29 16:42:51 +00:00
|
|
|
extern StructRNA RNA_PointLamp;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_PointerProperty;
|
2009-01-07 04:06:52 +00:00
|
|
|
extern StructRNA RNA_Pose;
|
2009-11-18 11:40:55 +00:00
|
|
|
extern StructRNA RNA_PoseBone;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_Property;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_PropertyGroup;
|
|
|
|
extern StructRNA RNA_PropertyGroupItem;
|
2008-11-29 22:16:23 +00:00
|
|
|
extern StructRNA RNA_PropertySensor;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_PythonConstraint;
|
2008-12-02 23:45:11 +00:00
|
|
|
extern StructRNA RNA_PythonController;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_RGBANodeSocket;
|
2008-11-29 22:16:23 +00:00
|
|
|
extern StructRNA RNA_RadarSensor;
|
|
|
|
extern StructRNA RNA_RandomSensor;
|
|
|
|
extern StructRNA RNA_RaySensor;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_Region;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_RenderEngine;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_RenderLayer;
|
|
|
|
extern StructRNA RNA_RenderPass;
|
|
|
|
extern StructRNA RNA_RenderResult;
|
2010-02-23 12:48:35 +00:00
|
|
|
extern StructRNA RNA_RenderSettings;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_RigidBodyJointConstraint;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_SPHFluidSettings;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_Scene;
|
2009-07-20 20:28:29 +00:00
|
|
|
extern StructRNA RNA_SceneGameData;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_SceneRenderLayer;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_SceneSequence;
|
2010-04-06 02:05:54 +00:00
|
|
|
extern StructRNA RNA_Scopes;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_Screen;
|
2010-03-22 00:22:52 +00:00
|
|
|
extern StructRNA RNA_ScrewModifier;
|
2009-01-17 16:58:05 +00:00
|
|
|
extern StructRNA RNA_Sculpt;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_Sensor;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_Sequence;
|
|
|
|
extern StructRNA RNA_SequenceColorBalance;
|
|
|
|
extern StructRNA RNA_SequenceCrop;
|
|
|
|
extern StructRNA RNA_SequenceEditor;
|
|
|
|
extern StructRNA RNA_SequenceElement;
|
|
|
|
extern StructRNA RNA_SequenceProxy;
|
|
|
|
extern StructRNA RNA_SequenceTransform;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ShaderNode;
|
|
|
|
extern StructRNA RNA_ShaderNodeCameraData;
|
|
|
|
extern StructRNA RNA_ShaderNodeCombineRGB;
|
|
|
|
extern StructRNA RNA_ShaderNodeExtendedMaterial;
|
|
|
|
extern StructRNA RNA_ShaderNodeGeometry;
|
|
|
|
extern StructRNA RNA_ShaderNodeHueSaturation;
|
|
|
|
extern StructRNA RNA_ShaderNodeInvert;
|
|
|
|
extern StructRNA RNA_ShaderNodeMapping;
|
|
|
|
extern StructRNA RNA_ShaderNodeMaterial;
|
|
|
|
extern StructRNA RNA_ShaderNodeMath;
|
|
|
|
extern StructRNA RNA_ShaderNodeMixRGB;
|
|
|
|
extern StructRNA RNA_ShaderNodeNormal;
|
|
|
|
extern StructRNA RNA_ShaderNodeOutput;
|
|
|
|
extern StructRNA RNA_ShaderNodeRGB;
|
|
|
|
extern StructRNA RNA_ShaderNodeRGBCurve;
|
|
|
|
extern StructRNA RNA_ShaderNodeRGBToBW;
|
|
|
|
extern StructRNA RNA_ShaderNodeSeparateRGB;
|
|
|
|
extern StructRNA RNA_ShaderNodeSqueeze;
|
|
|
|
extern StructRNA RNA_ShaderNodeTexture;
|
2010-12-02 01:18:59 +00:00
|
|
|
extern StructRNA RNA_ShaderNodeTree;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ShaderNodeValToRGB;
|
|
|
|
extern StructRNA RNA_ShaderNodeValue;
|
|
|
|
extern StructRNA RNA_ShaderNodeVectorCurve;
|
|
|
|
extern StructRNA RNA_ShaderNodeVectorMath;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_ShapeKey;
|
|
|
|
extern StructRNA RNA_ShapeKeyBezierPoint;
|
|
|
|
extern StructRNA RNA_ShapeKeyCurvePoint;
|
|
|
|
extern StructRNA RNA_ShapeKeyPoint;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ShrinkwrapConstraint;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_ShrinkwrapModifier;
|
|
|
|
extern StructRNA RNA_SimpleDeformModifier;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_SmokeCollSettings;
|
|
|
|
extern StructRNA RNA_SmokeDomainSettings;
|
|
|
|
extern StructRNA RNA_SmokeFlowSettings;
|
2009-07-30 15:00:26 +00:00
|
|
|
extern StructRNA RNA_SmokeModifier;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_SmoothModifier;
|
2009-07-02 19:41:31 +00:00
|
|
|
extern StructRNA RNA_SoftBodyModifier;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_SoftBodySettings;
|
2009-12-21 01:02:08 +00:00
|
|
|
extern StructRNA RNA_SolidifyModifier;
|
2008-12-26 16:50:05 +00:00
|
|
|
extern StructRNA RNA_Sound;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_SoundSequence;
|
2009-01-15 04:22:23 +00:00
|
|
|
extern StructRNA RNA_Space;
|
2009-07-16 00:50:27 +00:00
|
|
|
extern StructRNA RNA_SpaceConsole;
|
2009-06-22 03:26:36 +00:00
|
|
|
extern StructRNA RNA_SpaceDopeSheetEditor;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_SpaceFileBrowser;
|
2009-06-22 03:26:36 +00:00
|
|
|
extern StructRNA RNA_SpaceGraphEditor;
|
2009-01-15 04:22:23 +00:00
|
|
|
extern StructRNA RNA_SpaceImageEditor;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_SpaceInfo;
|
|
|
|
extern StructRNA RNA_SpaceLogicEditor;
|
2009-06-12 06:44:49 +00:00
|
|
|
extern StructRNA RNA_SpaceNLA;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_SpaceNodeEditor;
|
2009-05-28 05:09:25 +00:00
|
|
|
extern StructRNA RNA_SpaceOutliner;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_SpaceProperties;
|
2009-06-09 05:39:01 +00:00
|
|
|
extern StructRNA RNA_SpaceSequenceEditor;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_SpaceTextEditor;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_SpaceTimeline;
|
2009-11-29 16:42:51 +00:00
|
|
|
extern StructRNA RNA_SpaceUVEditor;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_SpaceUserPreferences;
|
|
|
|
extern StructRNA RNA_SpaceView3D;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_SpeedControlSequence;
|
2010-02-10 08:53:08 +00:00
|
|
|
extern StructRNA RNA_Spline;
|
2009-11-29 16:42:51 +00:00
|
|
|
extern StructRNA RNA_SplineIKConstraint;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_SpotLamp;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_StretchToConstraint;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_StringProperty;
|
|
|
|
extern StructRNA RNA_Struct;
|
2009-04-09 20:33:39 +00:00
|
|
|
extern StructRNA RNA_StucciTexture;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_SubsurfModifier;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_SunLamp;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_SurfaceCurve;
|
2009-07-02 19:41:31 +00:00
|
|
|
extern StructRNA RNA_SurfaceModifier;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_TexMapping;
|
2008-12-31 15:02:40 +00:00
|
|
|
extern StructRNA RNA_Text;
|
2008-12-01 19:02:27 +00:00
|
|
|
extern StructRNA RNA_TextBox;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_TextCharacterFormat;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_TextCurve;
|
2009-01-02 13:47:33 +00:00
|
|
|
extern StructRNA RNA_TextLine;
|
|
|
|
extern StructRNA RNA_TextMarker;
|
2009-01-02 23:05:28 +00:00
|
|
|
extern StructRNA RNA_Texture;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_TextureNode;
|
|
|
|
extern StructRNA RNA_TextureNodeBricks;
|
|
|
|
extern StructRNA RNA_TextureNodeChecker;
|
|
|
|
extern StructRNA RNA_TextureNodeCompose;
|
|
|
|
extern StructRNA RNA_TextureNodeCoordinates;
|
|
|
|
extern StructRNA RNA_TextureNodeCurveRGB;
|
|
|
|
extern StructRNA RNA_TextureNodeCurveTime;
|
|
|
|
extern StructRNA RNA_TextureNodeDecompose;
|
|
|
|
extern StructRNA RNA_TextureNodeDistance;
|
|
|
|
extern StructRNA RNA_TextureNodeHueSaturation;
|
|
|
|
extern StructRNA RNA_TextureNodeImage;
|
|
|
|
extern StructRNA RNA_TextureNodeInvert;
|
|
|
|
extern StructRNA RNA_TextureNodeMath;
|
|
|
|
extern StructRNA RNA_TextureNodeMixRGB;
|
|
|
|
extern StructRNA RNA_TextureNodeOutput;
|
|
|
|
extern StructRNA RNA_TextureNodeRGBToBW;
|
|
|
|
extern StructRNA RNA_TextureNodeRotate;
|
|
|
|
extern StructRNA RNA_TextureNodeScale;
|
|
|
|
extern StructRNA RNA_TextureNodeTexture;
|
|
|
|
extern StructRNA RNA_TextureNodeTranslate;
|
2010-12-02 01:18:59 +00:00
|
|
|
extern StructRNA RNA_TextureNodeTree;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_TextureNodeValToNor;
|
|
|
|
extern StructRNA RNA_TextureNodeValToRGB;
|
|
|
|
extern StructRNA RNA_TextureNodeViewer;
|
2009-01-07 21:05:51 +00:00
|
|
|
extern StructRNA RNA_TextureSlot;
|
|
|
|
extern StructRNA RNA_Theme;
|
|
|
|
extern StructRNA RNA_ThemeAudioWindow;
|
|
|
|
extern StructRNA RNA_ThemeBoneColorSet;
|
2010-01-15 17:00:37 +00:00
|
|
|
extern StructRNA RNA_ThemeConsole;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ThemeDopeSheet;
|
2009-01-07 21:05:51 +00:00
|
|
|
extern StructRNA RNA_ThemeFileBrowser;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ThemeFontStyle;
|
2009-02-02 11:51:10 +00:00
|
|
|
extern StructRNA RNA_ThemeGraphEditor;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ThemeImageEditor;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_ThemeInfo;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_ThemeLogicEditor;
|
2009-01-07 21:05:51 +00:00
|
|
|
extern StructRNA RNA_ThemeNLAEditor;
|
|
|
|
extern StructRNA RNA_ThemeNodeEditor;
|
|
|
|
extern StructRNA RNA_ThemeOutliner;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_ThemeProperties;
|
2009-01-07 21:05:51 +00:00
|
|
|
extern StructRNA RNA_ThemeSequenceEditor;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ThemeStyle;
|
2009-01-07 21:05:51 +00:00
|
|
|
extern StructRNA RNA_ThemeTextEditor;
|
|
|
|
extern StructRNA RNA_ThemeTimeline;
|
|
|
|
extern StructRNA RNA_ThemeUserInterface;
|
|
|
|
extern StructRNA RNA_ThemeUserPreferences;
|
|
|
|
extern StructRNA RNA_ThemeView3D;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_ThemeWidgetColors;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_ThemeWidgetStateColors;
|
2009-02-24 03:06:23 +00:00
|
|
|
extern StructRNA RNA_TimelineMarker;
|
2009-01-17 16:58:05 +00:00
|
|
|
extern StructRNA RNA_ToolSettings;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_TouchSensor;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_TrackToConstraint;
|
|
|
|
extern StructRNA RNA_TransformConstraint;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_TransformSequence;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_UILayout;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_UIListItem;
|
2011-02-16 02:51:56 +00:00
|
|
|
extern StructRNA RNA_UVProjectModifier;
|
|
|
|
extern StructRNA RNA_UVProjector;
|
2009-08-13 07:37:41 +00:00
|
|
|
extern StructRNA RNA_UnitSettings;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_UnknownType;
|
2009-01-02 13:47:33 +00:00
|
|
|
extern StructRNA RNA_UserPreferences;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_UserPreferencesEdit;
|
|
|
|
extern StructRNA RNA_UserPreferencesFilePaths;
|
|
|
|
extern StructRNA RNA_UserPreferencesSystem;
|
|
|
|
extern StructRNA RNA_UserPreferencesView;
|
2009-01-07 21:05:51 +00:00
|
|
|
extern StructRNA RNA_UserSolidLight;
|
2009-11-11 02:15:09 +00:00
|
|
|
extern StructRNA RNA_ValueNodeSocket;
|
2008-12-02 23:45:11 +00:00
|
|
|
extern StructRNA RNA_VectorFont;
|
2009-11-11 02:15:09 +00:00
|
|
|
extern StructRNA RNA_VectorNodeSocket;
|
2009-01-02 13:47:33 +00:00
|
|
|
extern StructRNA RNA_VertexGroup;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_VertexGroupElement;
|
2009-08-18 12:58:51 +00:00
|
|
|
extern StructRNA RNA_VertexPaint;
|
2009-06-07 13:09:18 +00:00
|
|
|
extern StructRNA RNA_VoronoiTexture;
|
2009-08-13 05:21:25 +00:00
|
|
|
extern StructRNA RNA_VoxelData;
|
|
|
|
extern StructRNA RNA_VoxelDataTexture;
|
2008-12-29 17:36:06 +00:00
|
|
|
extern StructRNA RNA_WaveModifier;
|
2009-07-21 14:11:51 +00:00
|
|
|
extern StructRNA RNA_Window;
|
2008-11-30 15:55:14 +00:00
|
|
|
extern StructRNA RNA_WindowManager;
|
2008-12-15 13:46:50 +00:00
|
|
|
extern StructRNA RNA_WipeSequence;
|
2009-04-09 20:33:39 +00:00
|
|
|
extern StructRNA RNA_WoodTexture;
|
2008-11-30 22:48:43 +00:00
|
|
|
extern StructRNA RNA_World;
|
2009-01-05 03:44:19 +00:00
|
|
|
extern StructRNA RNA_WorldAmbientOcclusion;
|
2009-01-10 22:57:33 +00:00
|
|
|
extern StructRNA RNA_WorldMistSettings;
|
|
|
|
extern StructRNA RNA_WorldStarsSettings;
|
|
|
|
extern StructRNA RNA_WorldTextureSlot;
|
2008-12-02 23:45:11 +00:00
|
|
|
extern StructRNA RNA_XnorController;
|
|
|
|
extern StructRNA RNA_XorController;
|
2008-11-30 15:55:14 +00:00
|
|
|
|
2010-02-10 08:53:08 +00:00
|
|
|
|
2008-11-07 02:58:25 +00:00
|
|
|
/* Pointer
|
|
|
|
*
|
2008-11-24 15:51:55 +00:00
|
|
|
* These functions will fill in RNA pointers, this can be done in three ways:
|
|
|
|
* - a pointer Main is created by just passing the data pointer
|
|
|
|
* - a pointer to a datablock can be created with the type and id data pointer
|
|
|
|
* - a pointer to data contained in a datablock can be created with the id type
|
|
|
|
* and id data pointer, and the data type and pointer to the struct itself.
|
2008-12-15 13:46:50 +00:00
|
|
|
*
|
|
|
|
* There is also a way to get a pointer with the information about all structs.
|
2008-11-24 15:51:55 +00:00
|
|
|
*/
|
2008-10-31 23:50:02 +00:00
|
|
|
|
2008-11-24 15:51:55 +00:00
|
|
|
void RNA_main_pointer_create(struct Main *main, PointerRNA *r_ptr);
|
2009-01-08 15:33:34 +00:00
|
|
|
void RNA_id_pointer_create(struct ID *id, PointerRNA *r_ptr);
|
|
|
|
void RNA_pointer_create(struct ID *id, StructRNA *type, void *data, PointerRNA *r_ptr);
|
2008-11-14 14:34:19 +00:00
|
|
|
|
2008-12-15 13:46:50 +00:00
|
|
|
void RNA_blender_rna_pointer_create(PointerRNA *r_ptr);
|
2010-01-17 20:06:34 +00:00
|
|
|
void RNA_pointer_recast(PointerRNA *ptr, PointerRNA *r_ptr);
|
2008-12-15 13:46:50 +00:00
|
|
|
|
2010-11-23 14:38:02 +00:00
|
|
|
extern const PointerRNA PointerRNA_NULL;
|
2009-06-16 00:52:21 +00:00
|
|
|
|
2008-11-14 14:34:19 +00:00
|
|
|
/* Structs */
|
|
|
|
|
2009-04-19 13:37:59 +00:00
|
|
|
const char *RNA_struct_identifier(StructRNA *type);
|
|
|
|
const char *RNA_struct_ui_name(StructRNA *type);
|
|
|
|
const char *RNA_struct_ui_description(StructRNA *type);
|
2009-06-03 23:16:51 +00:00
|
|
|
int RNA_struct_ui_icon(StructRNA *type);
|
2008-11-14 14:34:19 +00:00
|
|
|
|
2009-04-19 13:37:59 +00:00
|
|
|
PropertyRNA *RNA_struct_name_property(StructRNA *type);
|
|
|
|
PropertyRNA *RNA_struct_iterator_property(StructRNA *type);
|
2009-07-10 04:25:49 +00:00
|
|
|
StructRNA *RNA_struct_base(StructRNA *type);
|
2008-10-31 23:50:02 +00:00
|
|
|
|
2009-04-19 13:37:59 +00:00
|
|
|
int RNA_struct_is_ID(StructRNA *type);
|
|
|
|
int RNA_struct_is_a(StructRNA *type, StructRNA *srna);
|
|
|
|
|
|
|
|
StructRegisterFunc RNA_struct_register(StructRNA *type);
|
|
|
|
StructUnregisterFunc RNA_struct_unregister(StructRNA *type);
|
2008-11-29 15:43:53 +00:00
|
|
|
|
2009-04-07 00:49:39 +00:00
|
|
|
void *RNA_struct_py_type_get(StructRNA *srna);
|
|
|
|
void RNA_struct_py_type_set(StructRNA *srna, void *py_type);
|
|
|
|
|
2009-04-19 13:37:59 +00:00
|
|
|
void *RNA_struct_blender_type_get(StructRNA *srna);
|
|
|
|
void RNA_struct_blender_type_set(StructRNA *srna, void *blender_type);
|
|
|
|
|
2010-08-19 10:16:30 +00:00
|
|
|
struct IDProperty *RNA_struct_idprops(PointerRNA *ptr, int create);
|
|
|
|
int RNA_struct_idprops_check(StructRNA *srna);
|
|
|
|
int RNA_struct_idprops_register_check(StructRNA *type);
|
2009-11-16 19:03:40 +00:00
|
|
|
|
2009-05-20 09:52:02 +00:00
|
|
|
|
RNA
* More ID property support. What was already possible was showing
ID properties as RNA properties. Now it is possible to define
RNA properties and have an ID property automatically created the
first time it is set (if not set it retuns the default).
* Added support for defining RNA structs and properties at runtime.
This is useful for python and plugins, and could also be used
for operators, not sure yet what is best there, they could be done
in preprocess for speed, but not sure how to do that while keeping
operator registration a single function.
* Added quick functions to get/set properties based on names, to be
used for operators.
* Added some simple support for inheritance, was already doing this
but having it as a feature simplifies things. Two things were added
for this: when defining a struct you can give a 'from' struct whose
properties will be copied, and structs like ID, operator, modifier,
can define a refine callback that will return the more specific type
of the struct like ID -> Object, Mesh, .. .
* Added simple windowmanager wrap with only the registered operators
list, used for testing RNA for operators.
2008-11-21 02:23:46 +00:00
|
|
|
PropertyRNA *RNA_struct_find_property(PointerRNA *ptr, const char *identifier);
|
2011-01-25 06:54:57 +00:00
|
|
|
|
|
|
|
/* lower level functions for access to type properties */
|
|
|
|
const struct ListBase *RNA_struct_type_properties(StructRNA *srna);
|
|
|
|
PropertyRNA *RNA_struct_type_find_property(StructRNA *srna, const char *identifier);
|
RNA
* More ID property support. What was already possible was showing
ID properties as RNA properties. Now it is possible to define
RNA properties and have an ID property automatically created the
first time it is set (if not set it retuns the default).
* Added support for defining RNA structs and properties at runtime.
This is useful for python and plugins, and could also be used
for operators, not sure yet what is best there, they could be done
in preprocess for speed, but not sure how to do that while keeping
operator registration a single function.
* Added quick functions to get/set properties based on names, to be
used for operators.
* Added some simple support for inheritance, was already doing this
but having it as a feature simplifies things. Two things were added
for this: when defining a struct you can give a 'from' struct whose
properties will be copied, and structs like ID, operator, modifier,
can define a refine callback that will return the more specific type
of the struct like ID -> Object, Mesh, .. .
* Added simple windowmanager wrap with only the registered operators
list, used for testing RNA for operators.
2008-11-21 02:23:46 +00:00
|
|
|
|
2009-04-07 00:49:39 +00:00
|
|
|
FunctionRNA *RNA_struct_find_function(PointerRNA *ptr, const char *identifier);
|
2011-01-25 07:31:11 +00:00
|
|
|
const struct ListBase *RNA_struct_type_functions(StructRNA *srna);
|
2009-04-07 00:49:39 +00:00
|
|
|
|
2009-06-24 14:03:55 +00:00
|
|
|
char *RNA_struct_name_get_alloc(PointerRNA *ptr, char *fixedbuf, int fixedlen);
|
|
|
|
|
2008-11-14 14:34:19 +00:00
|
|
|
/* Properties
|
2008-11-07 02:58:25 +00:00
|
|
|
*
|
|
|
|
* Access to struct properties. All this works with RNA pointers rather than
|
|
|
|
* direct pointers to the data. */
|
|
|
|
|
2008-11-14 14:34:19 +00:00
|
|
|
/* Property Information */
|
|
|
|
|
2009-04-19 13:37:59 +00:00
|
|
|
const char *RNA_property_identifier(PropertyRNA *prop);
|
2009-10-27 02:54:25 +00:00
|
|
|
const char *RNA_property_description(PropertyRNA *prop);
|
|
|
|
|
2009-04-19 13:37:59 +00:00
|
|
|
PropertyType RNA_property_type(PropertyRNA *prop);
|
|
|
|
PropertySubType RNA_property_subtype(PropertyRNA *prop);
|
RNA: subtypes and units
* Reviewed subtypes, making them more specific and adding new ones.
* Subtypes now have an associated type of units (length, area, volume,
mass, rotation, time, velocity, acceleration). These are not used
yet anywhere.
* Centralized code that decides the name of array items based on
subtype (XYZ, RGB), was copied in 3 places.
* RNA_def_float etc functions still need to be update, will do this
later together with another change.
2009-08-10 21:31:05 +00:00
|
|
|
PropertyUnit RNA_property_unit(PropertyRNA *prop);
|
2009-04-19 13:37:59 +00:00
|
|
|
int RNA_property_flag(PropertyRNA *prop);
|
|
|
|
|
Implemented dynamic and multidimensional array support in RNA.
Example code: http://www.pasteall.org/7332/c.
New API functions: http://www.pasteall.org/7330/c.
Maximum number of dimensions is currently limited to 3, but can be increased arbitrarily if needed.
What this means for ID property access:
* MeshFace.verts - dynamic array, size 3 or 4 depending on MFace.v4
* MeshTextureFace.uv - dynamic, 2-dimensional array, size depends on MFace.v4
* Object.matrix - 2-dimensional array
What this means for functions:
* more intuitive API possibility, for example:
Mesh.add_vertices([(x, y, z), (x, y, z), ...])
Mesh.add_faces([(1, 2, 3), (4, 5, 6), ...])
Python part is not complete yet, e.g. it is possible to:
MeshFace.verts = (1, 2, 3) # even if Mesh.verts is (1, 2, 3, 4) and vice-versa
MeshTextureFace.uv = [(0.0, 0.0)] * 4 # only if a corresponding MFace is a quad
but the following won't work:
MeshTextureFace.uv[3] = (0.0, 0.0) # setting uv[3] modifies MTFace.uv[1][0] instead of MTFace.uv[3]
2009-08-25 17:06:36 +00:00
|
|
|
int RNA_property_array_length(PointerRNA *ptr, PropertyRNA *prop);
|
2009-09-15 10:01:20 +00:00
|
|
|
int RNA_property_array_check(PointerRNA *ptr, PropertyRNA *prop);
|
2009-09-09 19:40:46 +00:00
|
|
|
int RNA_property_multi_array_length(PointerRNA *ptr, PropertyRNA *prop, int dimension);
|
|
|
|
int RNA_property_array_dimension(PointerRNA *ptr, PropertyRNA *prop, int length[]);
|
RNA: subtypes and units
* Reviewed subtypes, making them more specific and adding new ones.
* Subtypes now have an associated type of units (length, area, volume,
mass, rotation, time, velocity, acceleration). These are not used
yet anywhere.
* Centralized code that decides the name of array items based on
subtype (XYZ, RGB), was copied in 3 places.
* RNA_def_float etc functions still need to be update, will do this
later together with another change.
2009-08-10 21:31:05 +00:00
|
|
|
char RNA_property_array_item_char(PropertyRNA *prop, int index);
|
2009-11-26 11:13:10 +00:00
|
|
|
int RNA_property_array_item_index(PropertyRNA *prop, char name);
|
2009-04-19 13:37:59 +00:00
|
|
|
|
|
|
|
int RNA_property_string_maxlength(PropertyRNA *prop);
|
2008-11-14 14:34:19 +00:00
|
|
|
|
2009-04-19 13:37:59 +00:00
|
|
|
const char *RNA_property_ui_name(PropertyRNA *prop);
|
|
|
|
const char *RNA_property_ui_description(PropertyRNA *prop);
|
2009-06-16 00:52:21 +00:00
|
|
|
int RNA_property_ui_icon(PropertyRNA *prop);
|
2009-04-19 13:37:59 +00:00
|
|
|
|
|
|
|
/* Dynamic Property Information */
|
2008-11-14 14:34:19 +00:00
|
|
|
|
2008-11-24 15:51:55 +00:00
|
|
|
void RNA_property_int_range(PointerRNA *ptr, PropertyRNA *prop, int *hardmin, int *hardmax);
|
|
|
|
void RNA_property_int_ui_range(PointerRNA *ptr, PropertyRNA *prop, int *softmin, int *softmax, int *step);
|
2008-11-14 14:34:19 +00:00
|
|
|
|
2008-11-24 15:51:55 +00:00
|
|
|
void RNA_property_float_range(PointerRNA *ptr, PropertyRNA *prop, float *hardmin, float *hardmax);
|
|
|
|
void RNA_property_float_ui_range(PointerRNA *ptr, PropertyRNA *prop, float *softmin, float *softmax, float *step, float *precision);
|
2008-11-14 14:34:19 +00:00
|
|
|
|
2010-02-21 14:48:28 +00:00
|
|
|
int RNA_property_float_clamp(PointerRNA *ptr, PropertyRNA *prop, float *value);
|
|
|
|
int RNA_property_int_clamp(PointerRNA *ptr, PropertyRNA *prop, int *value);
|
|
|
|
|
RNA
* Enums can now be dynamically created in the _itemf callback,
using RNA_enum_item(s)_add, RNA_enum_item_end. All places asking
for enum items now need to potentially free the items.
* This callback now also gets context, this was added specifically
for operators. This doesn't fit design well at all, needed to do
some ugly hacks, but can't find a good solution at the moment.
* All enums must have a default list of items too, even with an
_itemf callback, for docs and fallback in case there is no context.
* Used by MESH_OT_merge, MESH_OT_select_similar, TFM_OT_select_orientation.
* Also changes some operator properties that were enums to booleas
(unselected, deselect), to make them consistent with other ops.
2009-07-10 19:56:13 +00:00
|
|
|
int RNA_enum_identifier(EnumPropertyItem *item, const int value, const char **identifier);
|
2010-01-26 17:09:32 +00:00
|
|
|
int RNA_enum_bitflag_identifiers(EnumPropertyItem *item, const int value, const char **identifier);
|
RNA
* Enums can now be dynamically created in the _itemf callback,
using RNA_enum_item(s)_add, RNA_enum_item_end. All places asking
for enum items now need to potentially free the items.
* This callback now also gets context, this was added specifically
for operators. This doesn't fit design well at all, needed to do
some ugly hacks, but can't find a good solution at the moment.
* All enums must have a default list of items too, even with an
_itemf callback, for docs and fallback in case there is no context.
* Used by MESH_OT_merge, MESH_OT_select_similar, TFM_OT_select_orientation.
* Also changes some operator properties that were enums to booleas
(unselected, deselect), to make them consistent with other ops.
2009-07-10 19:56:13 +00:00
|
|
|
int RNA_enum_name(EnumPropertyItem *item, const int value, const char **name);
|
2010-06-14 10:33:26 +00:00
|
|
|
int RNA_enum_description(EnumPropertyItem *item, const int value, const char **description);
|
2009-06-21 14:30:59 +00:00
|
|
|
|
RNA
* Enums can now be dynamically created in the _itemf callback,
using RNA_enum_item(s)_add, RNA_enum_item_end. All places asking
for enum items now need to potentially free the items.
* This callback now also gets context, this was added specifically
for operators. This doesn't fit design well at all, needed to do
some ugly hacks, but can't find a good solution at the moment.
* All enums must have a default list of items too, even with an
_itemf callback, for docs and fallback in case there is no context.
* Used by MESH_OT_merge, MESH_OT_select_similar, TFM_OT_select_orientation.
* Also changes some operator properties that were enums to booleas
(unselected, deselect), to make them consistent with other ops.
2009-07-10 19:56:13 +00:00
|
|
|
void RNA_property_enum_items(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, EnumPropertyItem **item, int *totitem, int *free);
|
|
|
|
int RNA_property_enum_value(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, const char *identifier, int *value);
|
|
|
|
int RNA_property_enum_identifier(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **identifier);
|
2010-05-10 05:46:01 +00:00
|
|
|
int RNA_property_enum_name(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **name);
|
2009-12-07 00:16:57 +00:00
|
|
|
int RNA_property_enum_bitflag_identifiers(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **identifier);
|
2008-12-02 14:36:35 +00:00
|
|
|
|
2009-06-07 13:09:18 +00:00
|
|
|
StructRNA *RNA_property_pointer_type(PointerRNA *ptr, PropertyRNA *prop);
|
2010-08-03 06:51:36 +00:00
|
|
|
int RNA_property_pointer_poll(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *value);
|
2009-06-07 13:09:18 +00:00
|
|
|
|
2008-11-24 15:51:55 +00:00
|
|
|
int RNA_property_editable(PointerRNA *ptr, PropertyRNA *prop);
|
2009-11-25 12:00:31 +00:00
|
|
|
int RNA_property_editable_index(PointerRNA *ptr, PropertyRNA *prop, int index);
|
2010-02-23 11:19:55 +00:00
|
|
|
int RNA_property_editable_flag(PointerRNA *ptr, PropertyRNA *prop); /* without lib check, only checks the flag */
|
2009-01-17 13:54:56 +00:00
|
|
|
int RNA_property_animateable(PointerRNA *ptr, PropertyRNA *prop);
|
|
|
|
int RNA_property_animated(PointerRNA *ptr, PropertyRNA *prop);
|
2010-12-13 11:39:11 +00:00
|
|
|
int RNA_property_path_from_ID_check(PointerRNA *ptr, PropertyRNA *prop); /* slow, use with care */
|
2008-11-14 14:34:19 +00:00
|
|
|
|
2009-01-01 15:52:51 +00:00
|
|
|
void RNA_property_update(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop);
|
2009-12-08 17:23:48 +00:00
|
|
|
void RNA_property_update_main(struct Main *bmain, struct Scene *scene, PointerRNA *ptr, PropertyRNA *prop);
|
2010-10-25 21:57:45 +00:00
|
|
|
int RNA_property_update_check(struct PropertyRNA *prop);
|
2008-10-31 23:50:02 +00:00
|
|
|
|
2008-11-14 14:34:19 +00:00
|
|
|
/* Property Data */
|
2008-10-31 23:50:02 +00:00
|
|
|
|
2008-11-24 15:51:55 +00:00
|
|
|
int RNA_property_boolean_get(PointerRNA *ptr, PropertyRNA *prop);
|
|
|
|
void RNA_property_boolean_set(PointerRNA *ptr, PropertyRNA *prop, int value);
|
2009-02-02 19:57:57 +00:00
|
|
|
void RNA_property_boolean_get_array(PointerRNA *ptr, PropertyRNA *prop, int *values);
|
|
|
|
int RNA_property_boolean_get_index(PointerRNA *ptr, PropertyRNA *prop, int index);
|
|
|
|
void RNA_property_boolean_set_array(PointerRNA *ptr, PropertyRNA *prop, const int *values);
|
|
|
|
void RNA_property_boolean_set_index(PointerRNA *ptr, PropertyRNA *prop, int index, int value);
|
2009-12-17 10:47:55 +00:00
|
|
|
int RNA_property_boolean_get_default(PointerRNA *ptr, PropertyRNA *prop);
|
|
|
|
void RNA_property_boolean_get_default_array(PointerRNA *ptr, PropertyRNA *prop, int *values);
|
|
|
|
int RNA_property_boolean_get_default_index(PointerRNA *ptr, PropertyRNA *prop, int index);
|
2008-10-31 23:50:02 +00:00
|
|
|
|
2008-11-24 15:51:55 +00:00
|
|
|
int RNA_property_int_get(PointerRNA *ptr, PropertyRNA *prop);
|
|
|
|
void RNA_property_int_set(PointerRNA *ptr, PropertyRNA *prop, int value);
|
2009-02-02 19:57:57 +00:00
|
|
|
void RNA_property_int_get_array(PointerRNA *ptr, PropertyRNA *prop, int *values);
|
|
|
|
int RNA_property_int_get_index(PointerRNA *ptr, PropertyRNA *prop, int index);
|
|
|
|
void RNA_property_int_set_array(PointerRNA *ptr, PropertyRNA *prop, const int *values);
|
|
|
|
void RNA_property_int_set_index(PointerRNA *ptr, PropertyRNA *prop, int index, int value);
|
2009-12-17 10:47:55 +00:00
|
|
|
int RNA_property_int_get_default(PointerRNA *ptr, PropertyRNA *prop);
|
|
|
|
void RNA_property_int_get_default_array(PointerRNA *ptr, PropertyRNA *prop, int *values);
|
|
|
|
int RNA_property_int_get_default_index(PointerRNA *ptr, PropertyRNA *prop, int index);
|
2008-10-31 23:50:02 +00:00
|
|
|
|
2008-11-24 15:51:55 +00:00
|
|
|
float RNA_property_float_get(PointerRNA *ptr, PropertyRNA *prop);
|
|
|
|
void RNA_property_float_set(PointerRNA *ptr, PropertyRNA *prop, float value);
|
2009-02-02 19:57:57 +00:00
|
|
|
void RNA_property_float_get_array(PointerRNA *ptr, PropertyRNA *prop, float *values);
|
|
|
|
float RNA_property_float_get_index(PointerRNA *ptr, PropertyRNA *prop, int index);
|
|
|
|
void RNA_property_float_set_array(PointerRNA *ptr, PropertyRNA *prop, const float *values);
|
|
|
|
void RNA_property_float_set_index(PointerRNA *ptr, PropertyRNA *prop, int index, float value);
|
2009-12-17 10:47:55 +00:00
|
|
|
float RNA_property_float_get_default(PointerRNA *ptr, PropertyRNA *prop);
|
|
|
|
void RNA_property_float_get_default_array(PointerRNA *ptr, PropertyRNA *prop, float *values);
|
|
|
|
float RNA_property_float_get_default_index(PointerRNA *ptr, PropertyRNA *prop, int index);
|
2008-10-31 23:50:02 +00:00
|
|
|
|
2008-11-24 15:51:55 +00:00
|
|
|
void RNA_property_string_get(PointerRNA *ptr, PropertyRNA *prop, char *value);
|
|
|
|
char *RNA_property_string_get_alloc(PointerRNA *ptr, PropertyRNA *prop, char *fixedbuf, int fixedlen);
|
2009-12-17 11:16:28 +00:00
|
|
|
void RNA_property_string_set(PointerRNA *ptr, PropertyRNA *prop, const char *value);
|
2008-11-24 15:51:55 +00:00
|
|
|
int RNA_property_string_length(PointerRNA *ptr, PropertyRNA *prop);
|
2010-02-08 09:22:17 +00:00
|
|
|
void RNA_property_string_get_default(PointerRNA *ptr, PropertyRNA *prop, char *value);
|
|
|
|
char *RNA_property_string_get_default_alloc(PointerRNA *ptr, PropertyRNA *prop, char *fixedbuf, int fixedlen);
|
|
|
|
int RNA_property_string_default_length(PointerRNA *ptr, PropertyRNA *prop);
|
2008-10-31 23:50:02 +00:00
|
|
|
|
2008-11-24 15:51:55 +00:00
|
|
|
int RNA_property_enum_get(PointerRNA *ptr, PropertyRNA *prop);
|
|
|
|
void RNA_property_enum_set(PointerRNA *ptr, PropertyRNA *prop, int value);
|
2009-12-17 10:47:55 +00:00
|
|
|
int RNA_property_enum_get_default(PointerRNA *ptr, PropertyRNA *prop);
|
2008-10-31 23:50:02 +00:00
|
|
|
|
2009-02-02 19:57:57 +00:00
|
|
|
PointerRNA RNA_property_pointer_get(PointerRNA *ptr, PropertyRNA *prop);
|
|
|
|
void RNA_property_pointer_set(PointerRNA *ptr, PropertyRNA *prop, PointerRNA ptr_value);
|
2011-01-11 22:32:18 +00:00
|
|
|
PointerRNA RNA_property_pointer_get_default(PointerRNA *ptr, PropertyRNA *prop);
|
2008-11-07 02:58:25 +00:00
|
|
|
|
2008-11-24 15:51:55 +00:00
|
|
|
void RNA_property_collection_begin(PointerRNA *ptr, PropertyRNA *prop, CollectionPropertyIterator *iter);
|
|
|
|
void RNA_property_collection_next(CollectionPropertyIterator *iter);
|
|
|
|
void RNA_property_collection_end(CollectionPropertyIterator *iter);
|
|
|
|
int RNA_property_collection_length(PointerRNA *ptr, PropertyRNA *prop);
|
2009-10-27 10:14:02 +00:00
|
|
|
int RNA_property_collection_lookup_index(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *t_ptr);
|
2008-11-24 15:51:55 +00:00
|
|
|
int RNA_property_collection_lookup_int(PointerRNA *ptr, PropertyRNA *prop, int key, PointerRNA *r_ptr);
|
|
|
|
int RNA_property_collection_lookup_string(PointerRNA *ptr, PropertyRNA *prop, const char *key, PointerRNA *r_ptr);
|
2009-11-13 16:08:03 +00:00
|
|
|
int RNA_property_collection_type_get(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *r_ptr);
|
2008-11-07 02:58:25 +00:00
|
|
|
|
2009-07-02 03:32:57 +00:00
|
|
|
/* efficient functions to set properties for arrays */
|
|
|
|
int RNA_property_collection_raw_array(PointerRNA *ptr, PropertyRNA *prop, PropertyRNA *itemprop, RawArray *array);
|
2011-02-01 23:53:54 +00:00
|
|
|
int RNA_property_collection_raw_get(struct ReportList *reports, PointerRNA *ptr, PropertyRNA *prop, const char *propname, void *array, RawPropertyType type, int len);
|
|
|
|
int RNA_property_collection_raw_set(struct ReportList *reports, PointerRNA *ptr, PropertyRNA *prop, const char *propname, void *array, RawPropertyType type, int len);
|
2009-07-02 03:32:57 +00:00
|
|
|
int RNA_raw_type_sizeof(RawPropertyType type);
|
|
|
|
RawPropertyType RNA_property_raw_type(PropertyRNA *prop);
|
|
|
|
|
|
|
|
|
RNA:
* Added support for using pointers + collections as operator properties,
but with the restriction that they must point to other type derived from
ID property groups. The "add" function for these properties will allocate
a new ID property group and point to that.
* Added support for arrays with type IDP_GROUP in ID properties.
* Fix bug getting/setting float array values.
Example code for collections, note the "OperatorMousePath" type is defined
in rna_wm.c and has a float[2] property named "loc".
Defining the operator property:
prop= RNA_def_property(ot->srna, "path", PROP_COLLECTION, PROP_NONE);
RNA_def_property_struct_runtime(prop, &RNA_OperatorMousePath);
Adding values:
PointerRNA itemptr;
float loc[2] = {1, 1},
RNA_collection_add(op->ptr, "path", &itemptr);
RNA_float_set_array(&itemptr, "loc", loc);
Iterating:
RNA_BEGIN(op->ptr, itemptr, "path") {
float loc[2];
RNA_float_get_array(&itemptr, "loc", loc);
printf("Location: %f %f\n", loc[0], loc[1]);
}
RNA_END;
2008-12-26 20:38:52 +00:00
|
|
|
/* to create ID property groups */
|
|
|
|
void RNA_property_pointer_add(PointerRNA *ptr, PropertyRNA *prop);
|
2009-05-28 23:23:47 +00:00
|
|
|
void RNA_property_pointer_remove(PointerRNA *ptr, PropertyRNA *prop);
|
RNA:
* Added support for using pointers + collections as operator properties,
but with the restriction that they must point to other type derived from
ID property groups. The "add" function for these properties will allocate
a new ID property group and point to that.
* Added support for arrays with type IDP_GROUP in ID properties.
* Fix bug getting/setting float array values.
Example code for collections, note the "OperatorMousePath" type is defined
in rna_wm.c and has a float[2] property named "loc".
Defining the operator property:
prop= RNA_def_property(ot->srna, "path", PROP_COLLECTION, PROP_NONE);
RNA_def_property_struct_runtime(prop, &RNA_OperatorMousePath);
Adding values:
PointerRNA itemptr;
float loc[2] = {1, 1},
RNA_collection_add(op->ptr, "path", &itemptr);
RNA_float_set_array(&itemptr, "loc", loc);
Iterating:
RNA_BEGIN(op->ptr, itemptr, "path") {
float loc[2];
RNA_float_get_array(&itemptr, "loc", loc);
printf("Location: %f %f\n", loc[0], loc[1]);
}
RNA_END;
2008-12-26 20:38:52 +00:00
|
|
|
void RNA_property_collection_add(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *r_ptr);
|
2.5: RNA, defining enums, pointers and collections properties is now
possible from python, but it's still work in progress.
Pointers and collections are restricted to types derived from
IDPropertyGroup (same as for operators), because RNA knows how to
allocate/deallocate those.
Collections have .add() and .remove(number) functions that can be
used. The remove function should be fixed to take an other argument
than a number.
With the IDPropertyGroup restriction, pointers are more like nested
structs. They don't have add(), remove() yet, not sure where to put
them. Currently the pointer / nested struct is automatically allocated
in the get() function, this needs to be fixed, rule is that RNA get()
will not change any data for thread safety.
Also, it is only possible to add properties to structs after they have
been registered, which needs to be improved as well.
Example code:
http://www.pasteall.org/7201/python
2009-08-18 01:29:25 +00:00
|
|
|
int RNA_property_collection_remove(PointerRNA *ptr, PropertyRNA *prop, int key);
|
RNA:
* Added support for using pointers + collections as operator properties,
but with the restriction that they must point to other type derived from
ID property groups. The "add" function for these properties will allocate
a new ID property group and point to that.
* Added support for arrays with type IDP_GROUP in ID properties.
* Fix bug getting/setting float array values.
Example code for collections, note the "OperatorMousePath" type is defined
in rna_wm.c and has a float[2] property named "loc".
Defining the operator property:
prop= RNA_def_property(ot->srna, "path", PROP_COLLECTION, PROP_NONE);
RNA_def_property_struct_runtime(prop, &RNA_OperatorMousePath);
Adding values:
PointerRNA itemptr;
float loc[2] = {1, 1},
RNA_collection_add(op->ptr, "path", &itemptr);
RNA_float_set_array(&itemptr, "loc", loc);
Iterating:
RNA_BEGIN(op->ptr, itemptr, "path") {
float loc[2];
RNA_float_get_array(&itemptr, "loc", loc);
printf("Location: %f %f\n", loc[0], loc[1]);
}
RNA_END;
2008-12-26 20:38:52 +00:00
|
|
|
void RNA_property_collection_clear(PointerRNA *ptr, PropertyRNA *prop);
|
2010-03-10 20:54:14 +00:00
|
|
|
int RNA_property_collection_move(PointerRNA *ptr, PropertyRNA *prop, int key, int pos);
|
RNA:
* Added support for using pointers + collections as operator properties,
but with the restriction that they must point to other type derived from
ID property groups. The "add" function for these properties will allocate
a new ID property group and point to that.
* Added support for arrays with type IDP_GROUP in ID properties.
* Fix bug getting/setting float array values.
Example code for collections, note the "OperatorMousePath" type is defined
in rna_wm.c and has a float[2] property named "loc".
Defining the operator property:
prop= RNA_def_property(ot->srna, "path", PROP_COLLECTION, PROP_NONE);
RNA_def_property_struct_runtime(prop, &RNA_OperatorMousePath);
Adding values:
PointerRNA itemptr;
float loc[2] = {1, 1},
RNA_collection_add(op->ptr, "path", &itemptr);
RNA_float_set_array(&itemptr, "loc", loc);
Iterating:
RNA_BEGIN(op->ptr, itemptr, "path") {
float loc[2];
RNA_float_get_array(&itemptr, "loc", loc);
printf("Location: %f %f\n", loc[0], loc[1]);
}
RNA_END;
2008-12-26 20:38:52 +00:00
|
|
|
|
2009-12-17 17:15:38 +00:00
|
|
|
/* copy/reset */
|
|
|
|
int RNA_property_copy(PointerRNA *ptr, PointerRNA *fromptr, PropertyRNA *prop, int index);
|
|
|
|
int RNA_property_reset(PointerRNA *ptr, PropertyRNA *prop, int index);
|
|
|
|
|
2008-11-07 02:58:25 +00:00
|
|
|
/* Path
|
|
|
|
*
|
|
|
|
* Experimental method to refer to structs and properties with a string,
|
|
|
|
* using a syntax like: scenes[0].objects["Cube"].data.verts[7].co
|
|
|
|
*
|
|
|
|
* This provides a way to refer to RNA data while being detached from any
|
|
|
|
* particular pointers, which is useful in a number of applications, like
|
|
|
|
* UI code or Actions, though efficiency is a concern. */
|
|
|
|
|
2008-11-17 18:44:06 +00:00
|
|
|
char *RNA_path_append(const char *path, PointerRNA *ptr, PropertyRNA *prop,
|
|
|
|
int intkey, const char *strkey);
|
2008-11-07 02:58:25 +00:00
|
|
|
char *RNA_path_back(const char *path);
|
|
|
|
|
2008-11-14 14:34:19 +00:00
|
|
|
int RNA_path_resolve(PointerRNA *ptr, const char *path,
|
2010-03-22 09:30:00 +00:00
|
|
|
PointerRNA *r_ptr, PropertyRNA **r_prop);
|
2009-11-26 11:13:10 +00:00
|
|
|
|
|
|
|
int RNA_path_resolve_full(PointerRNA *ptr, const char *path,
|
2010-03-22 09:30:00 +00:00
|
|
|
PointerRNA *r_ptr, PropertyRNA **r_prop, int *index);
|
2008-11-07 02:58:25 +00:00
|
|
|
|
2009-09-17 10:14:56 +00:00
|
|
|
char *RNA_path_from_ID_to_struct(PointerRNA *ptr);
|
2009-03-25 20:29:01 +00:00
|
|
|
char *RNA_path_from_ID_to_property(PointerRNA *ptr, PropertyRNA *prop);
|
|
|
|
|
2008-11-14 14:34:19 +00:00
|
|
|
#if 0
|
2008-11-07 02:58:25 +00:00
|
|
|
/* Dependency
|
|
|
|
*
|
|
|
|
* Experimental code that will generate callbacks for each dependency
|
|
|
|
* between ID types. This may end up being useful for UI
|
|
|
|
* and evaluation code that needs to know such dependencies for correct
|
|
|
|
* redraws and re-evaluations. */
|
|
|
|
|
2008-11-14 14:34:19 +00:00
|
|
|
typedef void (*PropDependencyCallback)(void *udata, PointerRNA *from, PointerRNA *to);
|
|
|
|
void RNA_test_dependencies_cb(void *udata, PointerRNA *from, PointerRNA *to);
|
2008-11-07 02:58:25 +00:00
|
|
|
|
2008-11-14 14:34:19 +00:00
|
|
|
void RNA_generate_dependencies(PointerRNA *mainptr, void *udata, PropDependencyCallback cb);
|
|
|
|
#endif
|
2008-10-31 23:50:02 +00:00
|
|
|
|
RNA
* More ID property support. What was already possible was showing
ID properties as RNA properties. Now it is possible to define
RNA properties and have an ID property automatically created the
first time it is set (if not set it retuns the default).
* Added support for defining RNA structs and properties at runtime.
This is useful for python and plugins, and could also be used
for operators, not sure yet what is best there, they could be done
in preprocess for speed, but not sure how to do that while keeping
operator registration a single function.
* Added quick functions to get/set properties based on names, to be
used for operators.
* Added some simple support for inheritance, was already doing this
but having it as a feature simplifies things. Two things were added
for this: when defining a struct you can give a 'from' struct whose
properties will be copied, and structs like ID, operator, modifier,
can define a refine callback that will return the more specific type
of the struct like ID -> Object, Mesh, .. .
* Added simple windowmanager wrap with only the registered operators
list, used for testing RNA for operators.
2008-11-21 02:23:46 +00:00
|
|
|
/* Quick name based property access
|
|
|
|
*
|
|
|
|
* These are just an easier way to access property values without having to
|
|
|
|
* call RNA_struct_find_property. The names have to exist as RNA properties
|
|
|
|
* for the type in the pointer, if they do not exist an error will be printed.
|
|
|
|
*
|
|
|
|
* There is no support for pointers and collections here yet, these can be
|
|
|
|
* added when ID properties support them. */
|
|
|
|
|
|
|
|
int RNA_boolean_get(PointerRNA *ptr, const char *name);
|
|
|
|
void RNA_boolean_set(PointerRNA *ptr, const char *name, int value);
|
|
|
|
void RNA_boolean_get_array(PointerRNA *ptr, const char *name, int *values);
|
|
|
|
void RNA_boolean_set_array(PointerRNA *ptr, const char *name, const int *values);
|
|
|
|
|
|
|
|
int RNA_int_get(PointerRNA *ptr, const char *name);
|
|
|
|
void RNA_int_set(PointerRNA *ptr, const char *name, int value);
|
|
|
|
void RNA_int_get_array(PointerRNA *ptr, const char *name, int *values);
|
|
|
|
void RNA_int_set_array(PointerRNA *ptr, const char *name, const int *values);
|
|
|
|
|
|
|
|
float RNA_float_get(PointerRNA *ptr, const char *name);
|
|
|
|
void RNA_float_set(PointerRNA *ptr, const char *name, float value);
|
|
|
|
void RNA_float_get_array(PointerRNA *ptr, const char *name, float *values);
|
|
|
|
void RNA_float_set_array(PointerRNA *ptr, const char *name, const float *values);
|
|
|
|
|
|
|
|
int RNA_enum_get(PointerRNA *ptr, const char *name);
|
|
|
|
void RNA_enum_set(PointerRNA *ptr, const char *name, int value);
|
2010-02-25 15:41:46 +00:00
|
|
|
void RNA_enum_set_identifier(PointerRNA *ptr, const char *name, const char *id);
|
RNA
* Enums can now be dynamically created in the _itemf callback,
using RNA_enum_item(s)_add, RNA_enum_item_end. All places asking
for enum items now need to potentially free the items.
* This callback now also gets context, this was added specifically
for operators. This doesn't fit design well at all, needed to do
some ugly hacks, but can't find a good solution at the moment.
* All enums must have a default list of items too, even with an
_itemf callback, for docs and fallback in case there is no context.
* Used by MESH_OT_merge, MESH_OT_select_similar, TFM_OT_select_orientation.
* Also changes some operator properties that were enums to booleas
(unselected, deselect), to make them consistent with other ops.
2009-07-10 19:56:13 +00:00
|
|
|
int RNA_enum_is_equal(struct bContext *C, PointerRNA *ptr, const char *name, const char *enumname);
|
RNA
* More ID property support. What was already possible was showing
ID properties as RNA properties. Now it is possible to define
RNA properties and have an ID property automatically created the
first time it is set (if not set it retuns the default).
* Added support for defining RNA structs and properties at runtime.
This is useful for python and plugins, and could also be used
for operators, not sure yet what is best there, they could be done
in preprocess for speed, but not sure how to do that while keeping
operator registration a single function.
* Added quick functions to get/set properties based on names, to be
used for operators.
* Added some simple support for inheritance, was already doing this
but having it as a feature simplifies things. Two things were added
for this: when defining a struct you can give a 'from' struct whose
properties will be copied, and structs like ID, operator, modifier,
can define a refine callback that will return the more specific type
of the struct like ID -> Object, Mesh, .. .
* Added simple windowmanager wrap with only the registered operators
list, used for testing RNA for operators.
2008-11-21 02:23:46 +00:00
|
|
|
|
2010-07-26 02:35:43 +00:00
|
|
|
/* lower level functions that don't use a PointerRNA */
|
|
|
|
int RNA_enum_value_from_id(EnumPropertyItem *item, const char *identifier, int *value);
|
|
|
|
int RNA_enum_id_from_value(EnumPropertyItem *item, int value, const char **identifier);
|
|
|
|
int RNA_enum_icon_from_value(EnumPropertyItem *item, int value, int *icon);
|
2009-04-01 12:43:07 +00:00
|
|
|
|
RNA
* More ID property support. What was already possible was showing
ID properties as RNA properties. Now it is possible to define
RNA properties and have an ID property automatically created the
first time it is set (if not set it retuns the default).
* Added support for defining RNA structs and properties at runtime.
This is useful for python and plugins, and could also be used
for operators, not sure yet what is best there, they could be done
in preprocess for speed, but not sure how to do that while keeping
operator registration a single function.
* Added quick functions to get/set properties based on names, to be
used for operators.
* Added some simple support for inheritance, was already doing this
but having it as a feature simplifies things. Two things were added
for this: when defining a struct you can give a 'from' struct whose
properties will be copied, and structs like ID, operator, modifier,
can define a refine callback that will return the more specific type
of the struct like ID -> Object, Mesh, .. .
* Added simple windowmanager wrap with only the registered operators
list, used for testing RNA for operators.
2008-11-21 02:23:46 +00:00
|
|
|
void RNA_string_get(PointerRNA *ptr, const char *name, char *value);
|
|
|
|
char *RNA_string_get_alloc(PointerRNA *ptr, const char *name, char *fixedbuf, int fixedlen);
|
|
|
|
int RNA_string_length(PointerRNA *ptr, const char *name);
|
|
|
|
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value);
|
|
|
|
|
2010-10-09 21:17:14 +00:00
|
|
|
/**
|
|
|
|
* Retrieve the named property from PointerRNA.
|
|
|
|
*/
|
2009-02-02 19:57:57 +00:00
|
|
|
PointerRNA RNA_pointer_get(PointerRNA *ptr, const char *name);
|
2010-10-09 21:17:14 +00:00
|
|
|
/* Set the property name of PointerRNA ptr to ptr_value */
|
2009-07-25 19:10:24 +00:00
|
|
|
void RNA_pointer_set(PointerRNA *ptr, const char *name, PointerRNA ptr_value);
|
RNA:
* Added support for using pointers + collections as operator properties,
but with the restriction that they must point to other type derived from
ID property groups. The "add" function for these properties will allocate
a new ID property group and point to that.
* Added support for arrays with type IDP_GROUP in ID properties.
* Fix bug getting/setting float array values.
Example code for collections, note the "OperatorMousePath" type is defined
in rna_wm.c and has a float[2] property named "loc".
Defining the operator property:
prop= RNA_def_property(ot->srna, "path", PROP_COLLECTION, PROP_NONE);
RNA_def_property_struct_runtime(prop, &RNA_OperatorMousePath);
Adding values:
PointerRNA itemptr;
float loc[2] = {1, 1},
RNA_collection_add(op->ptr, "path", &itemptr);
RNA_float_set_array(&itemptr, "loc", loc);
Iterating:
RNA_BEGIN(op->ptr, itemptr, "path") {
float loc[2];
RNA_float_get_array(&itemptr, "loc", loc);
printf("Location: %f %f\n", loc[0], loc[1]);
}
RNA_END;
2008-12-26 20:38:52 +00:00
|
|
|
void RNA_pointer_add(PointerRNA *ptr, const char *name);
|
|
|
|
|
|
|
|
void RNA_collection_begin(PointerRNA *ptr, const char *name, CollectionPropertyIterator *iter);
|
|
|
|
int RNA_collection_length(PointerRNA *ptr, const char *name);
|
|
|
|
void RNA_collection_add(PointerRNA *ptr, const char *name, PointerRNA *r_value);
|
|
|
|
void RNA_collection_clear(PointerRNA *ptr, const char *name);
|
|
|
|
|
|
|
|
#define RNA_BEGIN(sptr, itemptr, propname) \
|
|
|
|
{ \
|
|
|
|
CollectionPropertyIterator rna_macro_iter; \
|
|
|
|
for(RNA_collection_begin(sptr, propname, &rna_macro_iter); rna_macro_iter.valid; RNA_property_collection_next(&rna_macro_iter)) { \
|
|
|
|
PointerRNA itemptr= rna_macro_iter.ptr;
|
|
|
|
|
|
|
|
#define RNA_END \
|
|
|
|
} \
|
|
|
|
RNA_property_collection_end(&rna_macro_iter); \
|
|
|
|
}
|
|
|
|
|
2009-06-24 21:27:10 +00:00
|
|
|
#define RNA_PROP_BEGIN(sptr, itemptr, prop) \
|
|
|
|
{ \
|
|
|
|
CollectionPropertyIterator rna_macro_iter; \
|
|
|
|
for(RNA_property_collection_begin(sptr, prop, &rna_macro_iter); rna_macro_iter.valid; RNA_property_collection_next(&rna_macro_iter)) { \
|
|
|
|
PointerRNA itemptr= rna_macro_iter.ptr;
|
|
|
|
|
|
|
|
#define RNA_PROP_END \
|
|
|
|
} \
|
|
|
|
RNA_property_collection_end(&rna_macro_iter); \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define RNA_STRUCT_BEGIN(sptr, prop) \
|
|
|
|
{ \
|
|
|
|
CollectionPropertyIterator rna_macro_iter; \
|
|
|
|
for(RNA_property_collection_begin(sptr, RNA_struct_iterator_property(sptr->type), &rna_macro_iter); rna_macro_iter.valid; RNA_property_collection_next(&rna_macro_iter)) { \
|
|
|
|
PropertyRNA *prop= rna_macro_iter.ptr.data;
|
|
|
|
|
|
|
|
#define RNA_STRUCT_END \
|
|
|
|
} \
|
|
|
|
RNA_property_collection_end(&rna_macro_iter); \
|
|
|
|
}
|
|
|
|
|
RNA
* More ID property support. What was already possible was showing
ID properties as RNA properties. Now it is possible to define
RNA properties and have an ID property automatically created the
first time it is set (if not set it retuns the default).
* Added support for defining RNA structs and properties at runtime.
This is useful for python and plugins, and could also be used
for operators, not sure yet what is best there, they could be done
in preprocess for speed, but not sure how to do that while keeping
operator registration a single function.
* Added quick functions to get/set properties based on names, to be
used for operators.
* Added some simple support for inheritance, was already doing this
but having it as a feature simplifies things. Two things were added
for this: when defining a struct you can give a 'from' struct whose
properties will be copied, and structs like ID, operator, modifier,
can define a refine callback that will return the more specific type
of the struct like ID -> Object, Mesh, .. .
* Added simple windowmanager wrap with only the registered operators
list, used for testing RNA for operators.
2008-11-21 02:23:46 +00:00
|
|
|
/* check if the idproperty exists, for operators */
|
|
|
|
int RNA_property_is_set(PointerRNA *ptr, const char *name);
|
2009-11-18 14:00:23 +00:00
|
|
|
int RNA_property_is_idprop(PropertyRNA *prop);
|
RNA
* More ID property support. What was already possible was showing
ID properties as RNA properties. Now it is possible to define
RNA properties and have an ID property automatically created the
first time it is set (if not set it retuns the default).
* Added support for defining RNA structs and properties at runtime.
This is useful for python and plugins, and could also be used
for operators, not sure yet what is best there, they could be done
in preprocess for speed, but not sure how to do that while keeping
operator registration a single function.
* Added quick functions to get/set properties based on names, to be
used for operators.
* Added some simple support for inheritance, was already doing this
but having it as a feature simplifies things. Two things were added
for this: when defining a struct you can give a 'from' struct whose
properties will be copied, and structs like ID, operator, modifier,
can define a refine callback that will return the more specific type
of the struct like ID -> Object, Mesh, .. .
* Added simple windowmanager wrap with only the registered operators
list, used for testing RNA for operators.
2008-11-21 02:23:46 +00:00
|
|
|
|
2008-12-26 03:56:52 +00:00
|
|
|
/* python compatible string representation of this property, (must be freed!) */
|
2009-08-16 14:43:08 +00:00
|
|
|
char *RNA_property_as_string(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop);
|
PyRNA
- Support for python to convert a PyObject into a collection (uses a list of dicts - quite verbose :/)
- Operators can now take collection args when called from python.
- Support for printing operators that use collections (macro recording).
- Added RNA_pointer_as_string which prints all pointer prop values as a python dict.
Example that can run in the in test.py (F7 key)
bpy.ops.VIEW3D_OT_select_lasso(path=[{"loc":(0, 0), "time":0}, {"loc":(1000, 0), "time":0}, {"loc":(1000, 1000), "time":0}], type='SELECT')
for some reason lasso locations always print as 0,0. Need to look into why this is.
2009-06-05 12:48:58 +00:00
|
|
|
char *RNA_pointer_as_string(PointerRNA *ptr);
|
2008-12-26 03:56:52 +00:00
|
|
|
|
2009-04-07 00:49:39 +00:00
|
|
|
/* Function */
|
|
|
|
|
2009-04-19 13:37:59 +00:00
|
|
|
const char *RNA_function_identifier(FunctionRNA *func);
|
|
|
|
const char *RNA_function_ui_description(FunctionRNA *func);
|
|
|
|
int RNA_function_flag(FunctionRNA *func);
|
2009-12-28 22:48:10 +00:00
|
|
|
int RNA_function_defined(FunctionRNA *func);
|
2009-04-07 00:49:39 +00:00
|
|
|
|
|
|
|
PropertyRNA *RNA_function_get_parameter(PointerRNA *ptr, FunctionRNA *func, int index);
|
|
|
|
PropertyRNA *RNA_function_find_parameter(PointerRNA *ptr, FunctionRNA *func, const char *identifier);
|
2009-04-19 13:37:59 +00:00
|
|
|
const struct ListBase *RNA_function_defined_parameters(FunctionRNA *func);
|
2009-04-07 00:49:39 +00:00
|
|
|
|
|
|
|
/* Utility */
|
|
|
|
|
2009-07-17 02:31:28 +00:00
|
|
|
ParameterList *RNA_parameter_list_create(ParameterList *parms, PointerRNA *ptr, FunctionRNA *func);
|
2009-04-07 00:49:39 +00:00
|
|
|
void RNA_parameter_list_free(ParameterList *parms);
|
2009-07-17 02:31:28 +00:00
|
|
|
int RNA_parameter_list_size(ParameterList *parms);
|
2010-03-23 15:04:06 +00:00
|
|
|
int RNA_parameter_list_arg_count(ParameterList *parms);
|
|
|
|
int RNA_parameter_list_ret_count(ParameterList *parms);
|
2009-04-07 00:49:39 +00:00
|
|
|
|
|
|
|
void RNA_parameter_list_begin(ParameterList *parms, ParameterIterator *iter);
|
|
|
|
void RNA_parameter_list_next(ParameterIterator *iter);
|
|
|
|
void RNA_parameter_list_end(ParameterIterator *iter);
|
|
|
|
|
|
|
|
void RNA_parameter_get(ParameterList *parms, PropertyRNA *parm, void **value);
|
|
|
|
void RNA_parameter_get_lookup(ParameterList *parms, const char *identifier, void **value);
|
2010-12-19 16:34:58 +00:00
|
|
|
void RNA_parameter_set(ParameterList *parms, PropertyRNA *parm, const void *value);
|
|
|
|
void RNA_parameter_set_lookup(ParameterList *parms, const char *identifier, const void *value);
|
2010-01-24 10:51:59 +00:00
|
|
|
int RNA_parameter_length_get(ParameterList *parms, PropertyRNA *parm);
|
|
|
|
int RNA_parameter_length_get_data(ParameterList *parms, PropertyRNA *parm, void *data);
|
|
|
|
void RNA_parameter_length_set(ParameterList *parms, PropertyRNA *parm, int length);
|
|
|
|
void RNA_parameter_length_set_data(ParameterList *parms, PropertyRNA *parm, void *data, int length);
|
2009-04-07 00:49:39 +00:00
|
|
|
|
2009-06-18 19:48:55 +00:00
|
|
|
int RNA_function_call(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, FunctionRNA *func, ParameterList *parms);
|
|
|
|
int RNA_function_call_lookup(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, const char *identifier, ParameterList *parms);
|
2009-04-07 00:49:39 +00:00
|
|
|
|
2010-12-04 11:44:56 +00:00
|
|
|
int RNA_function_call_direct(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, FunctionRNA *func, const char *format, ...)
|
|
|
|
#ifdef __GNUC__
|
|
|
|
__attribute__ ((format (printf, 5, 6)));
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
int RNA_function_call_direct_lookup(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, const char *identifier, const char *format, ...)
|
|
|
|
#ifdef __GNUC__
|
|
|
|
__attribute__ ((format (printf, 5, 6)));
|
|
|
|
#endif
|
|
|
|
;
|
2009-06-18 19:48:55 +00:00
|
|
|
int RNA_function_call_direct_va(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, FunctionRNA *func, const char *format, va_list args);
|
|
|
|
int RNA_function_call_direct_va_lookup(struct bContext *C, struct ReportList *reports, PointerRNA *ptr, const char *identifier, const char *format, va_list args);
|
2009-04-07 00:49:39 +00:00
|
|
|
|
2009-06-07 13:09:18 +00:00
|
|
|
/* ID */
|
|
|
|
|
|
|
|
short RNA_type_to_ID_code(StructRNA *type);
|
|
|
|
StructRNA *ID_code_to_RNA_type(short idcode);
|
|
|
|
|
2009-03-14 23:17:55 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2008-12-01 21:23:58 +00:00
|
|
|
|
2011-01-15 16:14:57 +00:00
|
|
|
#endif /* RNA_ACCESS_H */
|