Here you will find documentation on all the descriptions that Cinema 4D currently has. You can list them Alphabetically, by Type or Plugin . The sample Python and C++ code is automatically generated and in some cases may not be 100% correct. If something doesn't work then please refer to the official Cinema 4D SDK documentation for more information.

IDs and information for Oxpconstraints

Oxpconstraints

Attributes

  • ENGLISH NAME : X-ParticlesConstraints
  • NAME : Oxpconstraints
  • INCLUDE : Obase
  • PATH : res/description/oxpconstraints.res
  • PLUGIN : X-Particles
  • MAXON online help (may not exist): OXPCONSTRAINTS

Elements

ID UI Name Type Parameters Cycle
XPCONSTRAINTS_CONNECT_BIRTH ConnectatBirth BOOL SCALE_H
XPCONSTRAINTS_CONNECT_BIRTH_WEIGHT Weight REAL
UNIT PERCENT
MIN 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_BIRTH_ONLY OnlyBorn BOOL SCALE_H
XPCONSTRAINTS_CONNECT_GROUP_ONLY OnlySameGroup BOOL SCALE_H
XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS Stiffness REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
PARENTCOLLAPSE
XPCONSTRAINTS_CONNECT_BIRTH_LIMIT ConnectionLimit LONG
MIN 1
MINSLIDER 1
MAXSLIDER 100
CUSTOMGUI LONGSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM MaptoParam LONG PARENTCOLLAPSE
XPCONSTRAINTS_PARAM_NONE None
XPCONSTRAINTS_PARAM_TEMP Temperature
XPCONSTRAINTS_PARAM_MASS Mass
XPCONSTRAINTS_PARAM_AGE Age
XPCONSTRAINTS_PARAM_RADIUS Radius
XPCONSTRAINTS_PARAM_SPEED Speed
XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM_MAP_MIN Min REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS
XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM_MAP_MAX Max REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS
XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM_MAP Map SPLINE
Y_MIN -0.0
Y_MAX 1.0
X_MIN 0.0
X_MAX 1.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS
XPCONSTRAINTS_CONNECT_BIRTH_MINRADIUS MinDist REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 1000.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_BIRTH_RADIUS Radius REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 1000.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE BreakAs LONG  
XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE_NONE None
XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE_REL_CONNECT RelativeConnected
XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE_REL_RAD RelativeRadius
XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE_ABS Absolute
XPCONSTRAINTS_CONNECT_BIRTH_BREAK Break REAL
UNIT PERCENT
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 200.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_BIRTH_BREAK_ABS BreakAbove REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_PP_DIST ConnectWithinDistance BOOL SCALE_H
XPCONSTRAINTS_CONNECT_PP_DIST_GROUP_ONLY OnlySameGroup BOOL SCALE_H
XPCONSTRAINTS_CONNECT_DIST_WEIGHT Weight REAL
UNIT PERCENT
MIN 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_PP_DIST_LIMIT ConnectionLimit LONG
MIN 1
MINSLIDER 1
MAXSLIDER 100
CUSTOMGUI LONGSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_PP_DIST_RADIUS Radius REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS Stiffness REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
PARENTCOLLAPSE
XPCONSTRAINTS_CONNECT_PP_DIST_BREAK Break REAL
UNIT PERCENT
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 200.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM MaptoParam LONG PARENTCOLLAPSE
XPCONSTRAINTS_PARAM_NONE None
XPCONSTRAINTS_PARAM_TEMP Temperature
XPCONSTRAINTS_PARAM_MASS Mass
XPCONSTRAINTS_PARAM_AGE Age
XPCONSTRAINTS_PARAM_RADIUS Radius
XPCONSTRAINTS_PARAM_SPEED Speed
XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM_MAP_MIN Min REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS
XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM_MAP_MAX Max REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS
XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM_MAP Map SPLINE
Y_MIN -0.0
Y_MAX 1.0
X_MIN 0.0
X_MAX 1.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS
XPCONSTRAINTS_CUSTOM Custom BOOL SCALE_H
XPCONSTRAINTS_CUSTOM_GROUP_ONLY OnlySameGroup BOOL SCALE_H
XPCONSTRAINTS_CONNECT_CUSTOM_WEIGHT Weight REAL
UNIT PERCENT
MIN 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_CUSTOM_LIMIT ConnectionLimit LONG
MIN 1
MINSLIDER 1
MAXSLIDER 100
CUSTOMGUI LONGSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_CUSTOM_RADIUS Radius REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_COMPRESS Compression REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_COMPRESS Falloff LONG  
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT Flat
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_LINEAR Linear
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_QUAD Quadratic
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_CUBIC Cubic
XPCONSTRAINTS_CONNECT_CUSTOM_BREAK_COMPRESS Break REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_COMPRESS Plastic REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_COMPRESS_RATE Rate REAL
UNIT PERCENT
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_EXPAND Expansion REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF Falloff LONG  
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT Flat
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_LINEAR Linear
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_QUAD Quadratic
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_CUBIC Cubic
XPCONSTRAINTS_CONNECT_CUSTOM_BREAK Break REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC Plastic REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_RATE Rate REAL
UNIT PERCENT
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_HELP_BUTTON BITMAPBUTTON  
XPCONSTRAINTS_VIDMAN_BUTTON BITMAPBUTTON  
XPCONSTRAINTS_BUTTON_RESET ResettoDefaults BUTTON  
XPCONSTRAINTS_SAVEPRESET SavePreset... BUTTON  
XPCONSTRAINTS_LOADPRESET LoadPreset... BUTTON  
XPCONSTRAINTS_CONNECT_COLLIDE Collisions BOOL SCALE_H
XPCONSTRAINTS_CONNECT_COLLIDE_STIFFNESS Stiffness REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_COLLIDE_WEIGHT Weight REAL
UNIT PERCENT
MIN 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_PP_FORCES ParticleForces BOOL SCALE_H
XPCONSTRAINTS_FORCES_GROUP_ONLY OnlySameGroup BOOL SCALE_H
XPCONSTRAINTS_PP_ATTRACTION_LIMIT ForcesLimit LONG
MIN 1
MINSLIDER 1
MAXSLIDER 100
CUSTOMGUI LONGSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_FORCE_WEIGHT Weight REAL
UNIT PERCENT
MIN 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_PP_ATTRACTION Attraction REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
PARENTCOLLAPSE
XPCONSTRAINTS_PP_ATTRACTION_RADIUS Radius REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM MaptoParam LONG PARENTCOLLAPSE
XPCONSTRAINTS_PARAM_NONE None
XPCONSTRAINTS_PARAM_TEMP Temperature
XPCONSTRAINTS_PARAM_MASS Mass
XPCONSTRAINTS_PARAM_AGE Age
XPCONSTRAINTS_PARAM_RADIUS Radius
XPCONSTRAINTS_PARAM_SPEED Speed
XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM_MAP_MIN Min REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_PP_ATTRACTION
XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM_MAP_MAX Max REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_PP_ATTRACTION
XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM_MAP Map SPLINE
Y_MIN -0.0
Y_MAX 1.0
X_MIN 0.0
X_MAX 1.0
PARENTCOLLAPSE XPCONSTRAINTS_PP_ATTRACTION
XPCONSTRAINTS_PP_ATTRACTION_DIST Inner REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_PP_ATTRACTION_FALLOFF Falloff LONG  
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT Flat
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_LINEAR Linear
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_QUAD Quadratic
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_CUBIC Cubic
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_CUSTOM Custom
XPCONSTRAINTS_PP_ATTRACTION_FALLOFF_SPLINE Falloff SPLINE  
XPCONSTRAINTS_PP_REPULSION Repulsion REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
PARENTCOLLAPSE
XPCONSTRAINTS_PP_REPULSION_RADIUS Radius REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM MaptoParam LONG PARENTCOLLAPSE
XPCONSTRAINTS_PARAM_NONE None
XPCONSTRAINTS_PARAM_TEMP Temperature
XPCONSTRAINTS_PARAM_MASS Mass
XPCONSTRAINTS_PARAM_AGE Age
XPCONSTRAINTS_PARAM_RADIUS Radius
XPCONSTRAINTS_PARAM_SPEED Speed
XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM_MAP_MIN Min REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_PP_REPULSION
XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM_MAP_MAX Max REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_PP_REPULSION
XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM_MAP Map SPLINE
Y_MIN -0.0
Y_MAX 1.0
X_MIN 0.0
X_MAX 1.0
PARENTCOLLAPSE XPCONSTRAINTS_PP_REPULSION
XPCONSTRAINTS_PP_REPULSION_FALLOFF Falloff LONG  
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT Flat
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_LINEAR Linear
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_QUAD Quadratic
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_CUBIC Cubic
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_CUSTOM Custom
XPCONSTRAINTS_PP_REPULSION_FALLOFF_SPLINE Falloff SPLINE  
XPCONSTRAINTS_VISCOSITY Viscosity BOOL SCALE_H
XPCONSTRAINTS_VISCOSITY_GROUP_ONLY OnlySameGroup BOOL SCALE_H
XPCONSTRAINTS_CONNECT_VISCOSITY_WEIGHT Weight REAL
UNIT PERCENT
MIN 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_VISCOSITY_LIMIT ConnectionLimit LONG
MIN 1
MINSLIDER 1
MAXSLIDER 100
CUSTOMGUI LONGSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_VISCOSITY_RADIUS Radius REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS Stiffness REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
PARENTCOLLAPSE
XPCONSTRAINTS_CONNECT_VISCOSITY_RATE Rate REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
HIDDEN
XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM MaptoParam LONG PARENTCOLLAPSE
XPCONSTRAINTS_PARAM_NONE None
XPCONSTRAINTS_PARAM_TEMP Temperature
XPCONSTRAINTS_PARAM_MASS Mass
XPCONSTRAINTS_PARAM_AGE Age
XPCONSTRAINTS_PARAM_RADIUS Radius
XPCONSTRAINTS_PARAM_SPEED Speed
XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM_MAP_MIN Min REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS
XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM_MAP_MAX Max REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS
XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM_MAP Map SPLINE
Y_MIN -0.0
Y_MAX 1.0
X_MIN 0.0
X_MAX 1.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS
XPCONSTRAINTS_CONNECT_VISCOSITY_CONTRACT Contraction REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
HIDDEN
XPCONSTRAINTS_CONNECT_VISCOSITY_EXPAND Expansion REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
HIDDEN
XPCONSTRAINTS_FRICTION Friction BOOL SCALE_H
XPCONSTRAINTS_FRICTION_GROUP_ONLY OnlySameGroup BOOL SCALE_H
XPCONSTRAINTS_CONNECT_FRICTION_WEIGHT Weight REAL
UNIT PERCENT
MIN 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_FRICTION_LIMIT Limit LONG
MIN 1
MINSLIDER 1
MAXSLIDER 100
CUSTOMGUI LONGSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_FRICTION_RADIUS Radius REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_FRICTION_STATIC Static REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_FRICTION_KINETIC Kinetic REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS Friction REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
PARENTCOLLAPSE
XPCONSTRAINTS_PP_FRICTION_FALLOFF Falloff LONG  
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT Flat
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_LINEAR Linear
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_QUAD Quadratic
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_CUBIC Cubic
XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM MaptoParam LONG PARENTCOLLAPSE
XPCONSTRAINTS_PARAM_NONE None
XPCONSTRAINTS_PARAM_TEMP Temperature
XPCONSTRAINTS_PARAM_MASS Mass
XPCONSTRAINTS_PARAM_AGE Age
XPCONSTRAINTS_PARAM_RADIUS Radius
XPCONSTRAINTS_PARAM_SPEED Speed
XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM_MAP_MIN Min REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS
XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM_MAP_MAX Max REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS
XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM_MAP Map SPLINE
Y_MIN -0.0
Y_MAX 1.0
X_MIN 0.0
X_MAX 1.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS
XPCONSTRAINTS_SURFT SurfaceTension BOOL SCALE_H
XPCONSTRAINTS_SURFT_GROUP_ONLY GroupOnly BOOL SCALE_H
XPCONSTRAINTS_CONNECT_SURFT_WEIGHT Weight REAL
UNIT PERCENT
MIN 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_SURFT_LIMIT Limit LONG
MIN 1
MINSLIDER 1
MAXSLIDER 100
CUSTOMGUI LONGSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_SURFT_INNER Inner REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS Tension REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
PARENTCOLLAPSE
XPCONSTRAINTS_CONNECT_SURFT_RADIUS Radius REAL
UNIT METER
MIN 0.0
MINSLIDER 0.0
MAXSLIDER 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM MaptoParam LONG PARENTCOLLAPSE
XPCONSTRAINTS_PARAM_NONE None
XPCONSTRAINTS_PARAM_TEMP Temperature
XPCONSTRAINTS_PARAM_MASS Mass
XPCONSTRAINTS_PARAM_AGE Age
XPCONSTRAINTS_PARAM_RADIUS Radius
XPCONSTRAINTS_PARAM_SPEED Speed
XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM_MAP_MIN Min REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS
XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM_MAP_MAX Max REAL
MINSLIDER -100.0
MAXSLIDER 100.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS
XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM_MAP Map SPLINE
Y_MIN -0.0
Y_MAX 1.0
X_MIN 0.0
X_MAX 1.0
PARENTCOLLAPSE XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS
XPCONSTRAINTS_CONNECT_SURFT_THRESHOLD SurfaceThreshold REAL
HIDDEN
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
SCALE_H
XPCONSTRAINTS_PP_SURFT_FALLOFF Falloff LONG  
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT Flat
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_LINEAR Linear
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_QUAD Quadratic
XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_CUBIC Cubic
XPCONSTRAINTS_GROUPS Groups IN_EXCLUDE
NUM_FLAGS 2
INIT_STATE 3
SEND_SELCHNGMSG 1
SCALE_V
IMAGE_01_ON 1009316
IMAGE_01_OFF 1009320
IMAGE_02_ON 300000231
IMAGE_02_OFF 300000230
XPCONSTRAINTS_ADVANCED_ADAPT_SUBFRAMES SubframeAdapt BOOL  
XPCONSTRAINTS_ADVANCED_ADAPT_ITERATIONS IterationsAdapt BOOL  
XPCONSTRAINTS_ADVANCED_RELAX Relaxation REAL
UNIT PERCENT
MIN 0.0
MAX 200.0
CUSTOMGUI REALSLIDER
SCALE_H

Example Code

The following code does not use the correct values when setting the data. You should check directly in C4D for the correct values that you should use in place of the ones that are shown. This code is just to show you how to access the values for getting and setting the parameters.

Python

import c4d
from c4d import gui
def main():
    obj = c4d.BaseObject(c4d.Oxpconstraints)
    doc.InsertObject(obj)
    c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
    
    #You can set parameters two different ways. 
    #First way              
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH] = True
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH_WEIGHT] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH_ONLY] = True
    obj[c4d.XPCONSTRAINTS_CONNECT_GROUP_ONLY] = True
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH_LIMIT] = 1
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM] = c4d.XPCONSTRAINTS_PARAM_NONE
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM_MAP_MIN] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM_MAP_MAX] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH_MINRADIUS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH_RADIUS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE] = c4d.XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE_NONE
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH_BREAK] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_BIRTH_BREAK_ABS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_DIST] = True
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_DIST_GROUP_ONLY] = True
    obj[c4d.XPCONSTRAINTS_CONNECT_DIST_WEIGHT] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_DIST_LIMIT] = 1
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_DIST_RADIUS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_DIST_BREAK] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM] = c4d.XPCONSTRAINTS_PARAM_NONE
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM_MAP_MIN] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM_MAP_MAX] = 0.1
    obj[c4d.XPCONSTRAINTS_CUSTOM] = True
    obj[c4d.XPCONSTRAINTS_CUSTOM_GROUP_ONLY] = True
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_WEIGHT] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_LIMIT] = 1
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_RADIUS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_COMPRESS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_COMPRESS] = c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_BREAK_COMPRESS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_COMPRESS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_COMPRESS_RATE] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_EXPAND] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF] = c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_BREAK] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_RATE] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_COLLIDE] = True
    obj[c4d.XPCONSTRAINTS_CONNECT_COLLIDE_STIFFNESS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_COLLIDE_WEIGHT] = 0.1
    obj[c4d.XPCONSTRAINTS_PP_FORCES] = True
    obj[c4d.XPCONSTRAINTS_FORCES_GROUP_ONLY] = True
    obj[c4d.XPCONSTRAINTS_PP_ATTRACTION_LIMIT] = 1
    obj[c4d.XPCONSTRAINTS_CONNECT_FORCE_WEIGHT] = 0.1
    obj[c4d.XPCONSTRAINTS_PP_ATTRACTION] = 0.1
    obj[c4d.XPCONSTRAINTS_PP_ATTRACTION_RADIUS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM] = c4d.XPCONSTRAINTS_PARAM_NONE
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM_MAP_MIN] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM_MAP_MAX] = 0.1
    obj[c4d.XPCONSTRAINTS_PP_ATTRACTION_DIST] = 0.1
    obj[c4d.XPCONSTRAINTS_PP_ATTRACTION_FALLOFF] = c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT
    obj[c4d.XPCONSTRAINTS_PP_REPULSION] = 0.1
    obj[c4d.XPCONSTRAINTS_PP_REPULSION_RADIUS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM] = c4d.XPCONSTRAINTS_PARAM_NONE
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM_MAP_MIN] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM_MAP_MAX] = 0.1
    obj[c4d.XPCONSTRAINTS_PP_REPULSION_FALLOFF] = c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT
    obj[c4d.XPCONSTRAINTS_VISCOSITY] = True
    obj[c4d.XPCONSTRAINTS_VISCOSITY_GROUP_ONLY] = True
    obj[c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_WEIGHT] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_LIMIT] = 1
    obj[c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_RADIUS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_RATE] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM] = c4d.XPCONSTRAINTS_PARAM_NONE
    obj[c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM_MAP_MIN] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM_MAP_MAX] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_CONTRACT] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_EXPAND] = 0.1
    obj[c4d.XPCONSTRAINTS_FRICTION] = True
    obj[c4d.XPCONSTRAINTS_FRICTION_GROUP_ONLY] = True
    obj[c4d.XPCONSTRAINTS_CONNECT_FRICTION_WEIGHT] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_FRICTION_LIMIT] = 1
    obj[c4d.XPCONSTRAINTS_CONNECT_FRICTION_RADIUS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_FRICTION_STATIC] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_FRICTION_KINETIC] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS] = 0.1
    obj[c4d.XPCONSTRAINTS_PP_FRICTION_FALLOFF] = c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT
    obj[c4d.XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM] = c4d.XPCONSTRAINTS_PARAM_NONE
    obj[c4d.XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM_MAP_MIN] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM_MAP_MAX] = 0.1
    obj[c4d.XPCONSTRAINTS_SURFT] = True
    obj[c4d.XPCONSTRAINTS_SURFT_GROUP_ONLY] = True
    obj[c4d.XPCONSTRAINTS_CONNECT_SURFT_WEIGHT] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_SURFT_LIMIT] = 1
    obj[c4d.XPCONSTRAINTS_CONNECT_SURFT_INNER] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_SURFT_RADIUS] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM] = c4d.XPCONSTRAINTS_PARAM_NONE
    obj[c4d.XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM_MAP_MIN] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM_MAP_MAX] = 0.1
    obj[c4d.XPCONSTRAINTS_CONNECT_SURFT_THRESHOLD] = 0.1
    obj[c4d.XPCONSTRAINTS_PP_SURFT_FALLOFF] = c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT
    obj[c4d.XPCONSTRAINTS_ADVANCED_ADAPT_SUBFRAMES] = True
    obj[c4d.XPCONSTRAINTS_ADVANCED_ADAPT_ITERATIONS] = True
    obj[c4d.XPCONSTRAINTS_ADVANCED_RELAX] = 0.1
    
    #Second way, using the base container.
    bc = obj.GetDataInstance()
    bc.SetBool(c4d.XPCONSTRAINTS_CONNECT_BIRTH,True)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_BIRTH_WEIGHT,0.1)
    bc.SetBool(c4d.XPCONSTRAINTS_CONNECT_BIRTH_ONLY,True)
    bc.SetBool(c4d.XPCONSTRAINTS_CONNECT_GROUP_ONLY,True)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_BIRTH_LIMIT,1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM,c4d.XPCONSTRAINTS_PARAM_NONE)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM_MAP_MIN,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM_MAP_MAX,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_BIRTH_MINRADIUS,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_BIRTH_RADIUS,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE,c4d.XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE_NONE)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_BIRTH_BREAK,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_BIRTH_BREAK_ABS,0.1)
    bc.SetBool(c4d.XPCONSTRAINTS_CONNECT_PP_DIST,True)
    bc.SetBool(c4d.XPCONSTRAINTS_CONNECT_PP_DIST_GROUP_ONLY,True)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_DIST_WEIGHT,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_PP_DIST_LIMIT,1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_PP_DIST_RADIUS,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_PP_DIST_BREAK,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM,c4d.XPCONSTRAINTS_PARAM_NONE)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM_MAP_MIN,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM_MAP_MAX,0.1)
    bc.SetBool(c4d.XPCONSTRAINTS_CUSTOM,True)
    bc.SetBool(c4d.XPCONSTRAINTS_CUSTOM_GROUP_ONLY,True)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_WEIGHT,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_LIMIT,1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_RADIUS,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_COMPRESS,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_COMPRESS,c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_BREAK_COMPRESS,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_COMPRESS,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_COMPRESS_RATE,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_EXPAND,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF,c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_BREAK,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_RATE,0.1)
    bc.SetBool(c4d.XPCONSTRAINTS_CONNECT_COLLIDE,True)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_COLLIDE_STIFFNESS,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_COLLIDE_WEIGHT,0.1)
    bc.SetBool(c4d.XPCONSTRAINTS_PP_FORCES,True)
    bc.SetBool(c4d.XPCONSTRAINTS_FORCES_GROUP_ONLY,True)
    bc.SetInt32(c4d.XPCONSTRAINTS_PP_ATTRACTION_LIMIT,1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_FORCE_WEIGHT,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_PP_ATTRACTION,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_PP_ATTRACTION_RADIUS,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM,c4d.XPCONSTRAINTS_PARAM_NONE)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM_MAP_MIN,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM_MAP_MAX,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_PP_ATTRACTION_DIST,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_PP_ATTRACTION_FALLOFF,c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT)
    bc.SetFloat(c4d.XPCONSTRAINTS_PP_REPULSION,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_PP_REPULSION_RADIUS,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM,c4d.XPCONSTRAINTS_PARAM_NONE)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM_MAP_MIN,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM_MAP_MAX,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_PP_REPULSION_FALLOFF,c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT)
    bc.SetBool(c4d.XPCONSTRAINTS_VISCOSITY,True)
    bc.SetBool(c4d.XPCONSTRAINTS_VISCOSITY_GROUP_ONLY,True)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_WEIGHT,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_LIMIT,1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_RADIUS,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_RATE,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM,c4d.XPCONSTRAINTS_PARAM_NONE)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM_MAP_MIN,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM_MAP_MAX,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_CONTRACT,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_VISCOSITY_EXPAND,0.1)
    bc.SetBool(c4d.XPCONSTRAINTS_FRICTION,True)
    bc.SetBool(c4d.XPCONSTRAINTS_FRICTION_GROUP_ONLY,True)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_FRICTION_WEIGHT,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_FRICTION_LIMIT,1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_FRICTION_RADIUS,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_FRICTION_STATIC,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_FRICTION_KINETIC,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_PP_FRICTION_FALLOFF,c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM,c4d.XPCONSTRAINTS_PARAM_NONE)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM_MAP_MIN,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM_MAP_MAX,0.1)
    bc.SetBool(c4d.XPCONSTRAINTS_SURFT,True)
    bc.SetBool(c4d.XPCONSTRAINTS_SURFT_GROUP_ONLY,True)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_SURFT_WEIGHT,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_SURFT_LIMIT,1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_SURFT_INNER,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_SURFT_RADIUS,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM,c4d.XPCONSTRAINTS_PARAM_NONE)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM_MAP_MIN,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM_MAP_MAX,0.1)
    bc.SetFloat(c4d.XPCONSTRAINTS_CONNECT_SURFT_THRESHOLD,0.1)
    bc.SetInt32(c4d.XPCONSTRAINTS_PP_SURFT_FALLOFF,c4d.XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT)
    bc.SetBool(c4d.XPCONSTRAINTS_ADVANCED_ADAPT_SUBFRAMES,True)
    bc.SetBool(c4d.XPCONSTRAINTS_ADVANCED_ADAPT_ITERATIONS,True)
    bc.SetFloat(c4d.XPCONSTRAINTS_ADVANCED_RELAX,0.1)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../res/description/oxpconstraints.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseObject *pObject = BaseObject::Alloc(Oxpconstraints);
    pDoc->InsertObject(pObject);
    pDoc->StartUndo();
    pDoc->AddUndo(UNDO_NEW,pObject);
    pDoc->EndUndo();
    EventAdd(EVENT_FORCEREDRAW);
    
    //You can set parameters two different ways. 

    //First way              
    //Some objects do not store all their data in the container. You need to use GetParameter()/SetParameter() instead. 

    DESCFLAGS_SET flags = DESCFLAGS_SET_PARAM_SET;
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH_WEIGHT),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH_ONLY),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_GROUP_ONLY),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH_LIMIT),GeData(1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM),GeData(XPCONSTRAINTS_PARAM_NONE),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM_MAP_MIN),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM_MAP_MAX),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH_MINRADIUS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH_RADIUS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE),GeData(XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE_NONE),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH_BREAK),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_BIRTH_BREAK_ABS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_DIST),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_DIST_GROUP_ONLY),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_DIST_WEIGHT),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_DIST_LIMIT),GeData(1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_DIST_RADIUS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_DIST_BREAK),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM),GeData(XPCONSTRAINTS_PARAM_NONE),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM_MAP_MIN),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM_MAP_MAX),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CUSTOM),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CUSTOM_GROUP_ONLY),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_WEIGHT),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_LIMIT),GeData(1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_RADIUS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_COMPRESS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_COMPRESS),GeData(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_BREAK_COMPRESS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_COMPRESS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_COMPRESS_RATE),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_EXPAND),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF),GeData(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_BREAK),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_RATE),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_COLLIDE),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_COLLIDE_STIFFNESS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_COLLIDE_WEIGHT),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_PP_FORCES),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_FORCES_GROUP_ONLY),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_PP_ATTRACTION_LIMIT),GeData(1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_FORCE_WEIGHT),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_PP_ATTRACTION),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_PP_ATTRACTION_RADIUS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM),GeData(XPCONSTRAINTS_PARAM_NONE),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM_MAP_MIN),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM_MAP_MAX),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_PP_ATTRACTION_DIST),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_PP_ATTRACTION_FALLOFF),GeData(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_PP_REPULSION),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_PP_REPULSION_RADIUS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM),GeData(XPCONSTRAINTS_PARAM_NONE),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM_MAP_MIN),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM_MAP_MAX),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_PP_REPULSION_FALLOFF),GeData(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_VISCOSITY),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_VISCOSITY_GROUP_ONLY),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_VISCOSITY_WEIGHT),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_VISCOSITY_LIMIT),GeData(1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_VISCOSITY_RADIUS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_VISCOSITY_RATE),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM),GeData(XPCONSTRAINTS_PARAM_NONE),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM_MAP_MIN),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM_MAP_MAX),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_VISCOSITY_CONTRACT),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_VISCOSITY_EXPAND),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_FRICTION),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_FRICTION_GROUP_ONLY),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_FRICTION_WEIGHT),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_FRICTION_LIMIT),GeData(1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_FRICTION_RADIUS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_FRICTION_STATIC),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_FRICTION_KINETIC),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_PP_FRICTION_FALLOFF),GeData(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM),GeData(XPCONSTRAINTS_PARAM_NONE),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM_MAP_MIN),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM_MAP_MAX),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_SURFT),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_SURFT_GROUP_ONLY),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_SURFT_WEIGHT),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_SURFT_LIMIT),GeData(1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_SURFT_INNER),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_SURFT_RADIUS),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM),GeData(XPCONSTRAINTS_PARAM_NONE),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM_MAP_MIN),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM_MAP_MAX),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_CONNECT_SURFT_THRESHOLD),GeData(0.1),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_PP_SURFT_FALLOFF),GeData(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_ADVANCED_ADAPT_SUBFRAMES),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_ADVANCED_ADAPT_ITERATIONS),GeData(true),flags);
    pObject->SetParameter(DescID(XPCONSTRAINTS_ADVANCED_RELAX),GeData(0.1),flags);
    pObject->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pObject->GetDataInstance();
    bc->SetBool(XPCONSTRAINTS_CONNECT_BIRTH,true);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_BIRTH_WEIGHT,0.1);
    bc->SetBool(XPCONSTRAINTS_CONNECT_BIRTH_ONLY,true);
    bc->SetBool(XPCONSTRAINTS_CONNECT_GROUP_ONLY,true);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_BIRTH_LIMIT,1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM,XPCONSTRAINTS_PARAM_NONE);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM_MAP_MIN,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_BIRTH_STIFFNESS_PARAM_MAP_MAX,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_BIRTH_MINRADIUS,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_BIRTH_RADIUS,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE,XPCONSTRAINTS_CONNECT_BIRTH_BREAKTYPE_NONE);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_BIRTH_BREAK,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_BIRTH_BREAK_ABS,0.1);
    bc->SetBool(XPCONSTRAINTS_CONNECT_PP_DIST,true);
    bc->SetBool(XPCONSTRAINTS_CONNECT_PP_DIST_GROUP_ONLY,true);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_DIST_WEIGHT,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_PP_DIST_LIMIT,1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_PP_DIST_RADIUS,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_PP_DIST_BREAK,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM,XPCONSTRAINTS_PARAM_NONE);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM_MAP_MIN,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_PP_DIST_STIFFNESS_PARAM_MAP_MAX,0.1);
    bc->SetBool(XPCONSTRAINTS_CUSTOM,true);
    bc->SetBool(XPCONSTRAINTS_CUSTOM_GROUP_ONLY,true);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_CUSTOM_WEIGHT,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_CUSTOM_LIMIT,1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_CUSTOM_RADIUS,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_COMPRESS,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_COMPRESS,XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_CUSTOM_BREAK_COMPRESS,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_COMPRESS,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_COMPRESS_RATE,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_EXPAND,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF,XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_CUSTOM_BREAK,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_CUSTOM_PLASTIC_RATE,0.1);
    bc->SetBool(XPCONSTRAINTS_CONNECT_COLLIDE,true);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_COLLIDE_STIFFNESS,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_COLLIDE_WEIGHT,0.1);
    bc->SetBool(XPCONSTRAINTS_PP_FORCES,true);
    bc->SetBool(XPCONSTRAINTS_FORCES_GROUP_ONLY,true);
    bc->SetInt32(XPCONSTRAINTS_PP_ATTRACTION_LIMIT,1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_FORCE_WEIGHT,0.1);
    bc->SetFloat(XPCONSTRAINTS_PP_ATTRACTION,0.1);
    bc->SetFloat(XPCONSTRAINTS_PP_ATTRACTION_RADIUS,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM,XPCONSTRAINTS_PARAM_NONE);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM_MAP_MIN,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_PP_ATTRACTION_STIFFNESS_PARAM_MAP_MAX,0.1);
    bc->SetFloat(XPCONSTRAINTS_PP_ATTRACTION_DIST,0.1);
    bc->SetInt32(XPCONSTRAINTS_PP_ATTRACTION_FALLOFF,XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT);
    bc->SetFloat(XPCONSTRAINTS_PP_REPULSION,0.1);
    bc->SetFloat(XPCONSTRAINTS_PP_REPULSION_RADIUS,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM,XPCONSTRAINTS_PARAM_NONE);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM_MAP_MIN,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_PP_REPULSION_STIFFNESS_PARAM_MAP_MAX,0.1);
    bc->SetInt32(XPCONSTRAINTS_PP_REPULSION_FALLOFF,XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT);
    bc->SetBool(XPCONSTRAINTS_VISCOSITY,true);
    bc->SetBool(XPCONSTRAINTS_VISCOSITY_GROUP_ONLY,true);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_VISCOSITY_WEIGHT,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_VISCOSITY_LIMIT,1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_VISCOSITY_RADIUS,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_VISCOSITY_RATE,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM,XPCONSTRAINTS_PARAM_NONE);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM_MAP_MIN,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_VISCOSITY_STIFFNESS_PARAM_MAP_MAX,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_VISCOSITY_CONTRACT,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_VISCOSITY_EXPAND,0.1);
    bc->SetBool(XPCONSTRAINTS_FRICTION,true);
    bc->SetBool(XPCONSTRAINTS_FRICTION_GROUP_ONLY,true);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_FRICTION_WEIGHT,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_FRICTION_LIMIT,1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_FRICTION_RADIUS,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_FRICTION_STATIC,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_FRICTION_KINETIC,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS,0.1);
    bc->SetInt32(XPCONSTRAINTS_PP_FRICTION_FALLOFF,XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM,XPCONSTRAINTS_PARAM_NONE);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM_MAP_MIN,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_FRICTION_STIFFNESS_PARAM_MAP_MAX,0.1);
    bc->SetBool(XPCONSTRAINTS_SURFT,true);
    bc->SetBool(XPCONSTRAINTS_SURFT_GROUP_ONLY,true);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_SURFT_WEIGHT,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_SURFT_LIMIT,1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_SURFT_INNER,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_SURFT_RADIUS,0.1);
    bc->SetInt32(XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM,XPCONSTRAINTS_PARAM_NONE);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM_MAP_MIN,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_SURFT_STIFFNESS_PARAM_MAP_MAX,0.1);
    bc->SetFloat(XPCONSTRAINTS_CONNECT_SURFT_THRESHOLD,0.1);
    bc->SetInt32(XPCONSTRAINTS_PP_SURFT_FALLOFF,XPCONSTRAINTS_CONNECT_CUSTOM_STIFFNESS_FALLOFF_FLAT);
    bc->SetBool(XPCONSTRAINTS_ADVANCED_ADAPT_SUBFRAMES,true);
    bc->SetBool(XPCONSTRAINTS_ADVANCED_ADAPT_ITERATIONS,true);
    bc->SetFloat(XPCONSTRAINTS_ADVANCED_RELAX,0.1);
    pObject->Message(MSG_UPDATE);                                                      
}
             

Buttons

This node has buttons. Buttons can manually be executed by calling the following code

Python

c4d.CallButton(obj,c4d.XPCONSTRAINTS_HELP_BUTTON)
c4d.CallButton(obj,c4d.XPCONSTRAINTS_VIDMAN_BUTTON)
c4d.CallButton(obj,c4d.XPCONSTRAINTS_BUTTON_RESET)
c4d.CallButton(obj,c4d.XPCONSTRAINTS_SAVEPRESET)
c4d.CallButton(obj,c4d.XPCONSTRAINTS_LOADPRESET)

C++

DescriptionCommand dc;
dc.id = DescID(XPCONSTRAINTS_HELP_BUTTON);             
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);

DescriptionCommand dc; dc.id = DescID(XPCONSTRAINTS_VIDMAN_BUTTON); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(XPCONSTRAINTS_BUTTON_RESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(XPCONSTRAINTS_SAVEPRESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(XPCONSTRAINTS_LOADPRESET); pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);