Follow me to the Inheritance diagramm.
c4d.utils.noise |
With this function one can apply nearly all modeling commands. The function is applied to the objects in list. With the parameter mode you can decide if the current selection should be used to control what points/polygons are affected.
Note
Current State to Object(CSTO) has to be executed on a duplicate of an object because CSTO modifies the existing caches. In some cases you have to use a temporary document as well ObjectData.GetVirtualObjects().
This is a small example how you can use this function:
import c4d
from c4d import utils
settings = c4d.BaseContainer() # Settings
settings[c4d.MDATA_EXTRUDE_OFFSET] = 50.0 # Length of the extrusion
res = utils.SendModelingCommand(command = c4d.ID_MODELING_EXTRUDE_TOOL,
list = [op],
mode = c4d.MODELINGCOMMANDMODE_POLYGONSELECTION,
bc = settings,
doc = doc)
c4d.EventAdd()
if res is False:
print "Something went wrong."
elif res is True:
print "Command successfull."
elif isinstance(res, list):
print "Here you get the newly created object(s)."
Parameters: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: |
False, True or list of BaseObject |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns: |
True if the command succeeded, otherwise False if something went wrong. Some commands don’t apply their task to the passed objects, they return a cloned object so just check it. |
Calculates the angle of two vectors.
Parameters: | |
---|---|
Return type: |
float |
Returns: |
The angle. |
Map the value of a range to another. Similiar to the RangeMapper Node. Here is a small example:
print RangeMap(value=0.5, mininput=0, maxinput=1, minoutput=5, maxoutput=10, clampval=False)
#Output: 7.5
Parameters: |
|
---|
Convert a degrees value into radians.
Parameters: | r (number) – Input value in degrees. |
---|---|
Return type: | number |
Returns: | Converted value in radians. |
Convert a radians value into degrees.
Parameters: | r (number) – Input value in radians. |
---|---|
Return type: | number |
Returns: | Converted value in degrees. |
Mixes the two vectors together, such as mixing two colours.
Parameters: | |
---|---|
Math : |
0 < t < 1.0 |
Return type: | |
Returns: |
The mixed vector. |
Returns a mixed value of v1 and v2 using the parameter t, as calculated by v1+(v2-v1)*t.
Parameters: |
|
---|---|
Math : |
0 < t < 1.0 |
Return type: |
float |
Returns: |
Mix amount, with 0 <= t <= 1.0. |
Returns 1.0 if x is between or equal to either of a and b, else 0.0.
Parameters: |
|
---|---|
Return type: |
float |
Returns: |
The pulse value. |
Returns a if x is less than a and b if x is greater than b, else returns x.
Note : |
The order of parameters different to Peachey’s definition. |
---|---|
Parameters: |
|
Return type: |
float |
Returns: |
The clamped value. |
Returns 1.0 if x is greater than or equal to a, else 0.0.
Parameters: |
|
---|---|
Return type: |
float |
Returns: |
The step value (1.0 or 0.0). |
Returns 0.0 if x is less than a and 1.0 if x is greater than b, else returns x mapped on the range [a,b] (a number between 0.0 and 1.0). The mapping is smoothed using an ease-in/ease-out curve.
Parameters: |
|
---|---|
Return type: |
float |
Returns: |
The smoothed value. |
Returns 0.0 if x is less than a and 1.0 if x is greater than b, else returns x mapped on the range [a,b] (a number between 0.0 and 1.0).
Parameters: |
|
---|---|
Return type: |
float |
Returns: |
The stepped value. |
Creates a rotation matrix about the X axis.
Parameters: | w (float) – The angle around X. |
---|---|
Return type: | Matrix |
Returns: | The rotation matrix. |
Creates a rotation matrix about the Y axis.
Parameters: | w (float) – The angle around Y. |
---|---|
Return type: | Matrix |
Returns: | The rotation matrix. |
Creates a rotation matrix about the Z axis.
Parameters: | w (float) – The angle around Z. |
---|---|
Return type: | Matrix |
Returns: | The rotation matrix. |
Calculates rotation axis and angle from matrix m:
v, w = MatrixToRotAxis(m)
#v is the rotation axis, c4d.Vector
#w is the rotation angle, float
Parameters: | m (Matrix) – Rotation matrix. |
---|---|
Return type: | list |
Returns: | The rotation axis, and the angle. |
Calculate matrix from rotation axis v and angle w:
:type v: :class:`Vector `
:param v: The axis
:type w: float
:param w: The angle of rotation
:rtype: :class:`Matrix `
:return: Rotation matrix.
Modify hpb_new so that the “distance” to the last angle hpb_old is at minimum. This helps to avoid HPB singularity effects.
Parameters: |
|
||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | |||||||||||||||||||||||||||||
Returns: |
The optimal angle. |
Calculates the distance from a point to a line.
Parameters: | |
---|---|
Return type: | |
Returns: |
Point-line vector. |
Find the ray vector after a reflection about a surface normal.
Parameters: |
---|
Calculates the value of a spline at a point.
Parameters: |
|
---|---|
Return type: |
float |
Returns: |
The spline value. |
Calculates the value of a spline at a point.
Parameters: |
|
---|---|
Return type: | |
Returns: |
The spline value. |
Converts RGB into the HSV color space and returns the converted value.
Parameters: | col (Vector) – RGB color. |
---|---|
Return type: | Vector |
Returns: | HSV color. |
Converts HSV into the RGB color space and returns the converted value.
Parameters: | col (Vector) – HSV color. |
---|---|
Return type: | Vector |
Returns: | RGB color. |
Check if vector v1 and v2 are within epsilon of each other.
Parameters: | |
---|---|
Return type: |
bool |
Returns: |
True if the vectors are equal. |
Returns the bias as the defined in the book “Texturing and Modeling” by Ebert.
The internal code:
import math
def Bias(b, x):
return math.pow(x, -math.log(b) / 0.693147180559945)
Parameters: |
|
---|---|
Return type: |
float |
Returns: |
The bias. |
Limit the value of a to between b and c.
Parameters: |
|
---|
Limit a color vector between 0.0 and 1.0.
Parameters: | vec (Vector) – Bias value. |
---|---|
Return type: | Vector |
Returns: | The limited color vector. |
Limit a color vector between 0.0 and 1.0.
The internal code:
import math
def Truncate(x):
if x >= 0.0:
return math.floor(x)
else:
return math.fceil(x)
Parameters: | x (number) – The value to truncate. |
---|---|
Return type: | float |
Returns: | The truncated value. |
Sum the vector components.
Parameters: | x (Vector) – A color |
---|---|
Return type: | float |
Returns: | The sum of the components. |
Sum the vector components and multiply by 1/3.
Parameters: | vec (Vector) – A color |
---|---|
Return type: | float |
Returns: | The gray value. |
Calculates the angle between two vectors in radians.
Parameters: | |
---|---|
Return type: |
float |
Returns: |
The angle in radians. |
Find the minimum component of the vector.
Parameters: | vec (Vector) – The vector to find the minimum component of. |
---|---|
Return type: | float |
Returns: | The minimum component of the vector. |
Find the maximum component of the vector.
Parameters: | vec (Vector) – The vector to find the maximum component of. |
---|---|
Return type: | float |
Returns: | The maximum component of the vector. |
Create a translation matrix.
Parameters: | vec (Vector) – The translation vector. |
---|---|
Return type: | Matrix |
Returns: | The translation matrix. |
Create a scaling matrix.
Parameters: | s (Vector) – The scaling vector for the axes. |
---|---|
Return type: | Matrix |
Returns: | The scaling matrix. |
Calculate euler angles from the vector p. The bank is always set to 0.0.
Parameters: | p (Vector) – The vector to find the HPB for. |
---|---|
Return type: | Vector |
Returns: | The rotation HPB. |
Calculate euler angles from the matrix m.
Parameters: |
|
||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | |||||||||||||||||||||||||||||
Returns: |
The HPB. |
Construct matrix from the euler angles hpb.
Parameters: |
|
||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | |||||||||||||||||||||||||||||
Returns: |
The rotation matrix. |
This is a helper function to modify a user chosen subdivision value. For example:
sub = utils.CalcLOD(op[TUBEOBJECT_SUB, 1], hh["lod"], 1, 1000)
Parameters: |
|
---|
Compares if two floats are close to each other on a bit basis (rather than a fixed epsilon).
Parameters: |
|
---|---|
Return type: |
bool |
Returns: |
True if a and b are sufficiently close to each other, otherwise False. |
Get sine and cosine of w:
sn, cs = SinCos(80)
Parameters: | w (float) – Value. |
---|---|
Return type: | list |
Returns: | Sine and Cosine. |
New in version R13.016.
Transforms a color from one color profile to another.
Parameters: |
|
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | |||||||||||
Returns: |
The transformed color. |
New in version R13.016.
Calculates the scale between src and dst.
Parameters: |
|
---|---|
Return type: |
float |
Returns: |
The scale. |
- There are several groups of IDs to use. First there are the internal modeling commands: (Indented IDs MDATA_* are for the passed container bc.)
MCOMMAND_SPLINE_HARDINTERPOLATION Hard interpolation. MCOMMAND_SPLINE_SOFTINTERPOLATION Soft interpolation. MCOMMAND_SPLINE_REORDER Set first point. MCOMMAND_SPLINE_REVERSE Reverse sequence. MCOMMAND_SPLINE_MOVEDOWN Move down sequence. MCOMMAND_SPLINE_MOVEUP Move up sequence. MCOMMAND_SPLINE_JOINSEGMENT Join segment. MCOMMAND_SPLINE_BREAKSEGMENT Break segment. MCOMMAND_SPLINE_EQUALLENGTH Equal tangent length. MCOMMAND_SPLINE_EQUALDIRECTION Equal tangent direction. MCOMMAND_SPLINE_LINEUP Line up. MCOMMAND_SPLINE_CREATEOUTLINE Create outline: MDATA_SPLINE_OUTLINE float Distance. MDATA_SPLINE_PROJECTMODE int Projection. (See dialog.) MDATA_SPLINE_ADDPOINTSEGMENT int Segment. MDATA_SPLINE_ADDPOINTPOSITION float Position. MDATA_SPLINE_ADDPOINTSELECT bool Select added point. MDATA_SPLINE_OUTLINESEPARATE bool Create new object. MCOMMAND_SPLINE_PROJECT Project: MDATA_SPLINE_PROJECTMODE int Projection. (See dialog.) MCOMMAND_SPLINE_ADDPOINT Add point: MDATA_SPLINE_ADDPOINTSEGMENT int Segment. MDATA_SPLINE_ADDPOINTPOSITION float Position. MCOMMAND_SELECTALL Select all. MCOMMAND_DESELECTALL Deselect all. MCOMMAND_SELECTINVERSE Invert selection. MCOMMAND_SELECTCONNECTED Select connected. MCOMMAND_SELECTGROW Grow selection. MCOMMAND_SELECTSHRINK Shrink selection. MCOMMAND_SELECTPOINTTOPOLY Polygon selection from points. MCOMMAND_SELECTPOLYTOPOINT Point selection from polygons. MCOMMAND_SELECTADJACENT Select adjacent. MCOMMAND_GENERATESELECTION Set selection. MCOMMAND_HIDESELECTED Hide selected. MCOMMAND_HIDEUNSELECTED Hide unselected. MCOMMAND_HIDEINVERT Invert visibility. MCOMMAND_UNHIDE Unhide all. MCOMMAND_REVERSENORMALS Reverse normals. MCOMMAND_ALIGNNORMALS Align normals. MCOMMAND_SPLIT Split. MCOMMAND_TRIANGULATE Triangulate. MCOMMAND_UNTRIANGULATE Untriangulate: MDATA_UNTRIANGULATE_NGONS bool Create N-gons. MDATA_UNTRIANGULATE_ANGLE_RAD float Untriangulate angle radius. MDATA_CONVERTSELECTION_LEFT int Left selection. (See dialog.) MDATA_CONVERTSELECTION_RIGHT int Right selection. (See dialog.) MDATA_CONVERTSELECTION_TOLERANT bool Tolerant conversion. MDATA_CURRENTSTATETOOBJECT_INHERITANCE bool Use inheritance. MDATA_CURRENTSTATETOOBJECT_KEEPANIMATION bool Keep animation. MDATA_CURRENTSTATETOOBJECT_NOGENERATE bool No generate. MDATA_ROTATECAMERA bool Tools/Camera Rotation. MDATA_RING_EDGE int Ring edge. MDATA_RING_SELECTION int Ring selection: SELECTION_NEW Starts a new selection. SELECTION_ADD Adds to the current selection. SELECTION_SUB Subtracts from the current selection. MDATA_RING_SKIP int Ring skip. MDATA_FILLSEL_START_POLY int Fill selection start polygon. MDATA_FILLSEL_SELECTION int Fill selection: SELECTION_NEW Starts a new selection. SELECTION_ADD Adds to the current selection. SELECTION_SUB Subtracts from the current selection. MDATA_OUTLINESEL_START_POLY int Outline selection start polygon. MDATA_OUTLINESEL_SELECTION int Outline selection: SELECTION_NEW Starts a new selection. SELECTION_ADD Adds to the current selection. SELECTION_SUB Subtracts from the current selection. MDATA_RESETSYSTEM_COMPENSATE bool Offsets. MDATA_RESETSYSTEM_RECURSIVE bool Reset sub-objects. MDATA_JOIN_MERGE_SELTAGS bool Merge selection tags. MDATA_SETVERTEX_VALUE float Value. MDATA_SETVERTEX_MODE int Mode. (See dialog.) MCOMMAND_DELETE Delete. MCOMMAND_OPTIMIZE Optimize: MDATA_OPTIMIZE_TOLERANCE float Tolerance. MDATA_OPTIMIZE_POINTS bool Points. MDATA_OPTIMIZE_POLYGONS bool Polygons. MDATA_OPTIMIZE_UNUSEDPOINTS bool Unused points. MCOMMAND_DISCONNECT Disconnect: MDATA_DISCONNECT_PRESERVEGROUPS bool Preserve groups. MCOMMAND_MAKEEDITABLE Make editable. (Returns object.) MCOMMAND_MIRROR Mirror: MDATA_MIRROR_SNAPPOINTS bool Snap to points. MDATA_MIRROR_DUPLICATE bool Duplicate points. MDATA_MIRROR_WELD bool Weld points. MDATA_MIRROR_TOLERANCE float Weld tolerance. MDATA_MIRROR_SYSTEM int Coordinate system. (See dialog.) MDATA_MIRROR_PLANE int Mirror plane. (See dialog.) MDATA_MIRROR_VALUE float Value. MDATA_MIRROR_POINT Vector Mirror point. MDATA_MIRROR_VECTOR Vector Mirror vector. MDATA_MIRROR_SELECTIONS bool Duplicate tag selections. MDATA_MIRROR_ONPLANE bool Symmetric. MCOMMAND_SUBDIVIDE Subdivide: MDATA_SUBDIVIDE_HYPER bool Hyper NURBS subdivide. MDATA_SUBDIVIDE_ANGLE float Maximum angle. MDATA_SUBDIVIDE_SPLINESUB int Subdivisions. (Spline.) MDATA_SUBDIVIDE_SUB int Subdivisions. (Polygon.) MCOMMAND_EXPLODESEGMENTS Explode segments. MCOMMAND_KNIFE Knife. See toolknife.h. MCOMMAND_CURRENTSTATETOOBJECT Current state to object: (Returns object.) MDATA_CURRENTSTATETOOBJECT_INHERITANCE bool Use inheritance. MDATA_CURRENTSTATETOOBJECT_KEEPANIMATION bool Keep animation. MDATA_CURRENTSTATETOOBJECT_NOGENERATE bool No generate. MCOMMAND_JOIN Join: (Returns object.) MDATA_JOIN_MERGE_SELTAGS bool Merge selection tags. MCOMMAND_CONVERTSELECTION Convert selection. MDATA_CONVERTSELECTION_LEFT int Left selection. (See dialog.) MDATA_CONVERTSELECTION_RIGHT int Right selection. (See dialog.) MDATA_CONVERTSELECTION_TOLERANT bool Tolerant conversion. MDATA_CURRENTSTATETOOBJECT_INHERITANCE bool Use inheritance. MDATA_CURRENTSTATETOOBJECT_KEEPANIMATION bool Keep animation. MDATA_CURRENTSTATETOOBJECT_NOGENERATE bool No generate. MDATA_ROTATECAMERA bool Tools/Camera Rotation. MDATA_RING_EDGE int Ring edge. MDATA_RING_SELECTION int Ring selection: SELECTION_NEW Starts a new selection. SELECTION_ADD Adds to the current selection. SELECTION_SUB Subtracts from the current selection. MDATA_RING_SKIP int Ring skip. MDATA_FILLSEL_START_POLY int Fill selection start polygon. MDATA_FILLSEL_SELECTION int Fill selection: SELECTION_NEW Starts a new selection. SELECTION_ADD Adds to the current selection. SELECTION_SUB Subtracts from the current selection. MDATA_OUTLINESEL_START_POLY int Outline selection start polygon. MDATA_OUTLINESEL_SELECTION int Outline selection: SELECTION_NEW Starts a new selection. SELECTION_ADD Adds to the current selection. SELECTION_SUB Subtracts from the current selection. MDATA_RESETSYSTEM_COMPENSATE bool Offsets. MDATA_RESETSYSTEM_RECURSIVE bool Reset sub-objects. MDATA_JOIN_MERGE_SELTAGS bool Merge selection tags. MDATA_SETVERTEX_VALUE float Value. MDATA_SETVERTEX_MODE int Mode. (See dialog.) MCOMMAND_EDGE_TO_SPLINE Edge to spline MCOMMAND_BREAKPHONG Break phong. MCOMMAND_UNBREAKPHONG Unbreak phong. MCOMMAND_PHONGTOSELECTION Phong to selection. MCOMMAND_MELT Melt. MCOMMAND_RESETSYSTEM Reset System: MDATA_RESETSYSTEM_COMPENSATE bool Offsets. MDATA_RESETSYSTEM_RECURSIVE bool Reset sub-objects.
- Then there are the modeling library tool IDs, where you have to look up the parameters in the resource files:
ID_MODELING_EDGECUT_TOOL Edge cut tool. See tooledgecut.h. ID_MODELING_FILL_SELECTION_TOOL Fill selection tool. ID_MODELING_OUTLINE_SELECTION_TOOL Private. ID_MODELING_LOOP_TOOL Loop selection tool. See toolloopselection.h. ID_MODELING_RING_TOOL Ring selection tool. ID_MODELING_EXTRUDE_TOOL Extrude tool. See toolextrude.h. ID_MODELING_MATRIX_EXTRUDE_TOOL Matrix extrude tool. See toolmatrixextrude.h. ID_MODELING_NORMALMOVE_TOOL Normal move tool. See toolnormalmove.h. ID_MODELING_NORMALSCALE_TOOL Normal scale tool. See toolnormalscale.h. ID_MODELING_NORMALROTATE_TOOL Normal rotate tool. See toolnormalrotate.h. ID_MODELING_SMOOTH_SHIFT_TOOL Smooth shift tool. See toolsmoothshift.h. ID_MODELING_EXTRUDE_INNER_TOOL Extrude inner tool. See toolextrudeinner.h. ID_MODELING_BEVEL_TOOL Bevel tool. See toolbevel.h. ID_MODELING_POLYGON_CREATE_TOOL Create polygon tool. See toolcreatepolygon.h. ID_MODELING_POINT_ADD_TOOL Add point tool. See tooladdpoint.h. ID_MODELING_BRIDGE_TOOL Bridge tool. See toolbridge.h. ID_MODELING_WELD_TOOL Weld tool. See toolpointweld.h. ID_MODELING_CLOSEHOLE_TOOL Close polygon hole tool. See toolclosehold.h. ID_MODELING_STITCHANDSEW_TOOL Stich and sew tool. See toolstitchandsew.h. ID_MODELING_SLIDE_TOOL Slide tool. See toolslide.h. ID_MODELING_IRON_TOOL Iron tool. See tooliron.h. ID_MODELING_SETVALUE_TOOL Set value tool. See toolsetvalue.h. ID_MODELING_DUPLICATE_TOOL Duplicate tool. See toolduplicate.h. ID_MODELING_ARRANGE_TOOL Arrange tool. See toolarrange.h. ID_MODELING_TRANSFER_TOOL Transfer tool. See tooltransfer.h. ID_MODELING_RANDOMIZE_TOOL Randomize tool. See toolrandomize.h. ID_MODELING_CENTER_TOOL Center tool. See toolcenter.h. ID_MODELING_KNIFE_TOOL Knife tool. See toolknife.h. ID_MODELING_LIVESELECTION Live selection tool. See toolliveselection.h. ID_MODELING_RECTSELECTION Rectangle selection tool. See toolrectselection.h. ID_MODELING_FREESELECTION Free selection tool. See toolfreeselection.h. ID_MODELING_POLYSELECTION Polygon selection tool. See toolpolyselection.h. ID_MODELING_MODIFY_TOOL Modify tool. See toolmodify.h. ID_MEASURE_TOOL Measure tool. See toolmeasure.h. ID_MODELING_MAGNET_TOOL Magnet tool. See toolmagnet.h. ID_MODELING_BRUSH_TOOL Brush tool. See toolbrush.h. ID_MODELING_SPLINE_ROUND_TOOL Spline round tool. See toolsplineround.h. ID_MODELING_CLONE_TOOL Clone tool. See toolclone.h. ID_MODELING_SPLINE_CHAMFER_TOOL Spline chamfer tool. See toolsplinechamfer.h. ID_MODELING_ARRAY_TOOL Array tool. See toolarray.h. ID_MODELING_SPLINE_PROJECT_TOOL Spline project tool. See toolsplineproject.h.
- Finally there are the modeling library menu commands. These have no parameters:
ID_MODELING_MELT_COMMAND Melt. ID_MODELING_EDGE_SPLINE_COMMAND Edge to spline. ID_MODELING_COLLAPSE_COMMAND Collapse. ID_NGON_RETRI_MENU Retriangulate N-gons. ID_NGON_REMOVE_MENU Remove N-gons. ID_NGON_FORCERETRI_MENU Force N-gon triangulation. ID_OBJECTHANDLES_ONOFF_MENU Object handles toggle. ID_SDS_INC_MENU Increment SDS. ID_SDS_DEC_MENU Decrement SDS. ID_SDS_ONFFF_MENU Toggle SDS. ID_MODELING_OM_SELECT_INVERT Invert object manager selection. ID_MODELING_OM_SELECT_HIDE Hide selected objects. ID_MODELING_OM_SELECT_SHOW Show selected objects. ID_MODELING_SHORTCUT_SELECTVISIBLE Toggle select visible. ID_CAMERA_SET_PIVOT Set the camera pivot. ID_CAMERA_LOCK_PIVOT Locks/unlocks the camera’s Point of Interest (POI) to the last used POI location. ID_LASTTOOL_START The first of the last used tools. The next last used tools can be accessed with ID_LASTTOOL_START + (1...6) ID_LASTTOOL_END The last of the last used tools.