Oxpsubquestion
Attributes
-
ENGLISH NAME : X-ParticlesSub-QuestionObject
-
NAME : Oxpsubquestion
-
INCLUDE : Obase
-
PATH : res/description/oxpsubquestion.res
-
PLUGIN : X-Particles
-
MAXON online help (may not exist): OXPSUBQUESTION
Elements
ID |
UI Name |
Type |
Parameters |
Cycle |
XPSQ_PARAMETER |
|
LONG
|
HIDDEN |
|
XPSQ_PARAMETER_SAVED |
|
LONG
|
HIDDEN |
|
XPSQ_PARAMETER_TYPE |
QuestionType |
LONG
|
ANIM |
OFF |
SCALE_H |
|
CUSTOMGUI |
CYCLE |
|
XPSQ_PARAM_TYPE_PDAT |
ParticleData |
XPSQ_PARAM_TYPE_PPOS |
ParticlePosition |
XPSQ_PARAM_TYPE_PFLAGS |
ParticleFlags |
XPSQ_PARAM_TYPE_GEOM |
Geometry |
XPSQ_PARAM_TYPE_PHYS |
PhysicalData |
XPSQ_PARAM_TYPE_OTHER |
Other |
|
XPSQ_PARAMETER_PDAT |
ParticleData |
LONG
|
ANIM |
OFF |
SCALE_H |
|
CUSTOMGUI |
CYCLE |
|
XPSQ_PARAM_AGE |
Age |
1033908 |
|
XPSQ_PARAM_COLOR |
Color |
1033909 |
|
XPSQ_PARAM_GROUP |
Group |
1033910 |
|
XPSQ_PARAM_INDEX |
Index |
1033911 |
|
XPSQ_PARAM_RADIUS |
Radius |
1033914 |
|
XPSQ_PARAM_ROTATE |
Rotation |
1034248 |
|
XPSQ_PARAM_SCALE |
Scale |
1033915 |
|
XPSQ_PARAM_SPEED |
Speed |
1033916 |
|
|
XPSQ_PARAMETER_PPOS |
ParticlePositions |
LONG
|
ANIM |
OFF |
SCALE_H |
|
CUSTOMGUI |
CYCLE |
|
XPSQ_PARAM_SPLINEDIST |
DistanceAlongSpline |
1033917 |
|
XPSQ_PARAM_CAMDIST |
DistancetoCamera |
1033918 |
|
XPSQ_PARAM_OBJDIST |
DistancetoObject |
1033919 |
|
XPSQ_PARAM_DISTANCE |
DistanceTravelled |
1033939 |
|
XPSQ_PARAM_CAMFOV |
InCameraFOV |
1033920 |
|
XPSQ_PARAM_INVOLUME |
InsideVolume |
1034247 |
|
XPSQ_PARAM_ILLUM |
Illumination |
1033921 |
|
XPSQ_PARAM_FALLOFF |
ModifierFalloff |
1033922 |
|
XPSQ_PARAM_POS |
ParticlePosition |
1033923 |
|
XPSQ_PARAM_VORTEX_RADIUS |
VortexRadius |
1034246 |
|
|
XPSQ_PARAMETER_PFLAGS |
ParticleFlags |
LONG
|
ANIM |
OFF |
SCALE_H |
|
CUSTOMGUI |
CYCLE |
|
XPSQ_PARAM_COLLIDED |
ParticleCollided |
1033924 |
|
XPSQ_PARAM_EXPLODED |
HasExploded |
1033925 |
|
XPSQ_PARAM_FROZEN |
ParticleFrozen |
1033926 |
|
XPSQ_PARAM_ISSTUCK |
ParticleStickQuestion |
1033927 |
|
XPSQ_PARAM_SNAPPED |
Snapped(InheritanceMod.) |
1034249 |
|
XPSQ_PARAM_STUCKSOURCE |
StucktoSourceObject |
1033928 |
|
|
XPSQ_PARAMETER_GEOM |
Geometry |
LONG
|
ANIM |
OFF |
SCALE_H |
|
CUSTOMGUI |
CYCLE |
|
XPSQ_PARAM_BRANCH |
Branching |
1033929 |
|
XPSQ_PARAM_GENOBJ |
GeneratedObject |
1033930 |
|
XPSQ_PARAM_MORPH |
MorphValue |
1033931 |
|
XPSQ_PARAM_TRAIL |
ParticleTrail |
1033932 |
|
|
XPSQ_PARAMETER_PHYS |
PhysicalData |
LONG
|
ANIM |
OFF |
SCALE_H |
|
CUSTOMGUI |
CYCLE |
|
XPSQ_PARAM_BURN |
Fire |
1034513 |
|
XPSQ_PARAM_FUEL |
Fuel |
1034514 |
|
XPSQ_PARAM_MASS |
Mass |
1033912 |
|
XPSQ_PARAM_SMOKE |
Smoke |
1034515 |
|
XPSQ_PARAM_TEMP |
Temperature |
1034516 |
|
|
XPSQ_PARAMETER_OTHER |
Other |
LONG
|
ANIM |
OFF |
SCALE_H |
|
CUSTOMGUI |
CYCLE |
|
XPSQ_PARAM_BOOLEAN |
BooleanInput |
1033933 |
|
XPSQ_PARAM_FRAME |
CurrentTime |
1033934 |
|
XPSQ_PARAM_COUNT |
ParticleCount |
1033935 |
|
XPSQ_PARAM_PYTHON |
PythonScript |
1033936 |
|
XPSQ_PARAM_PROB |
RandomProbability |
1033937 |
|
XPSQ_PARAM_COLLCOUNT |
NumberofCollisions |
1033938 |
|
|
XPSQ_PARAM_PYTHON_SCRIPT |
Script |
STRING
|
CUSTOMGUI |
MULTISTRING |
ANIM |
OFF |
PYTHON |
|
SCALE_V |
|
|
|
XPSQ_PARAM_PYTHON_OPENEDITOR |
OpenEditor... |
BUTTON
|
|
|
XPSQ_PARAM_INVOLUME_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_INVOLUME_MODE_ISIN |
ParticleisInsideVolume |
XPSQ_PARAM_INVOLUME_MODE_ISOUT |
ParticleisOutsideVolume |
|
XPSQ_PARAM_INVOLUME_LINK |
Object |
LINK
|
|
|
XPSQ_PARAM_AGE_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_AGE_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_AGE_MODE_EQUALS |
Equals |
XPSQ_PARAM_AGE_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_AGE_MODE_NEARDEATH |
IsWithinTimeofDeath |
XPSQ_PARAM_AGE_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_AGE_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_AGE_VALUE |
Age |
BASETIME
|
|
|
XPSQ_PARAM_AGE_RANGE |
Range |
BASETIME
|
|
|
XPSQ_PARAM_FRAME_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_FRAME_MODE_EQUALS |
Equals |
XPSQ_PARAM_FRAME_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_FRAME_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_FRAME_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_FRAME_VALUE |
Time |
BASETIME
|
|
|
XPSQ_PARAM_FRAME_RANGE |
Range |
BASETIME
|
|
|
XPSQ_PARAM_SPEED_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_SPEED_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_SPEED_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_SPEED_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_SPEED_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_SPEED_VALUE |
Speed |
REAL
|
STEP |
1.0 |
UNIT |
METER |
MIN |
0.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
500.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_SPEED_RANGE |
Range |
REAL
|
STEP |
1.0 |
UNIT |
METER |
MIN |
0.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
500.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_COUNT_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_COUNT_MODE_EXCEEDS |
Exceeds |
XPSQ_PARAM_COUNT_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_COUNT_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_COUNT_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_COUNT_VALUE |
ParticleCount |
LONG
|
MIN |
0 |
STEP |
1 |
MINSLIDER |
0 |
MAXSLIDER |
5000 |
CUSTOMGUI |
LONGSLIDER |
|
|
XPSQ_PARAM_COUNT_RANGE |
Range |
LONG
|
MIN |
0 |
STEP |
1 |
MINSLIDER |
0 |
MAXSLIDER |
5000 |
CUSTOMGUI |
LONGSLIDER |
|
|
XPSQ_PARAM_INDEX_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_INDEX_MODE_EQUALS |
Equals |
XPSQ_PARAM_INDEX_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_INDEX_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_INDEX_MODE_NOTINRANGE |
IsNotinRange |
XPSQ_PARAM_INDEX_MODE_EVEN |
Even-NumberedParticles |
XPSQ_PARAM_INDEX_MODE_ODD |
Odd-NumberedParticles |
|
XPSQ_PARAM_INDEX_VALUE |
ParticleIndex |
LONG
|
MIN |
1 |
STEP |
1 |
MINSLIDER |
1 |
MAXSLIDER |
10000 |
CUSTOMGUI |
LONGSLIDER |
|
|
XPSQ_PARAM_INDEX_RANGE |
Range |
LONG
|
MIN |
1 |
STEP |
1 |
MINSLIDER |
1 |
MAXSLIDER |
10000 |
CUSTOMGUI |
LONGSLIDER |
|
|
XPSQ_PARAM_GROUP_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_GROUP_INGROUP |
IsinParticleGroup |
XPSQ_PARAM_GROUP_NOTINGROUP |
IsNotinParticleGroup |
|
XPSQ_PARAM_GROUP_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 |
|
|
XPSQ_PARAM_DISTANCE_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_DISTANCE_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_DISTANCE_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_DISTANCE_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_DISTANCE_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_DISTANCE_VALUE |
Distance |
REAL
|
UNIT |
METER |
MIN |
0.0 |
STEP |
1.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
1000.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_DISTANCE_RANGE |
Range |
REAL
|
UNIT |
METER |
MIN |
0.0 |
STEP |
1.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
1000.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_BRANCH_TYPE |
QuestionType |
LONG
|
|
XPSQ_PARAM_BRANCH_TYPE_FRAMEAGE |
BranchLength(inFrames) |
XPSQ_PARAM_BRANCH_TYPE_BLEVEL |
BranchLevel |
XPSQ_PARAM_BRANCH_TYPE_MAXLEN |
Max.Length(inFrames) |
XPSQ_PARAM_BRANCH_TYPE_BCOUNT |
NumberofBranches |
|
XPSQ_PARAM_BRANCH_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_BRANCH_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_BRANCH_MODE_EQUALS |
Equals |
XPSQ_PARAM_BRANCH_MODE_EXCEEDS |
IsGreaterThan |
|
XPSQ_PARAM_BRANCH_VALUE |
ValuetoTest |
LONG
|
MIN |
0 |
MINSLIDER |
0 |
MAXSLIDER |
100 |
CUSTOMGUI |
LONGSLIDER |
|
|
XPSQ_PARAM_POS_TYPE |
PositionSpace |
LONG
|
|
XPSQ_PARAM_POS_TYPE_GLOBAL |
World |
XPSQ_PARAM_POS_TYPE_OBJECT |
Object |
|
XPSQ_PARAM_POS_LINK |
Object |
LINK
|
|
|
XPSQ_PARAM_POS_AXIS |
Axis |
LONG
|
|
XPSQ_PARAM_POS_AXIS_X |
X |
XPSQ_PARAM_POS_AXIS_Y |
Y |
XPSQ_PARAM_POS_AXIS_Z |
Z |
|
XPSQ_PARAM_POS_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_POS_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_POS_MODE_EXCEEDS |
IsGreaterThan |
|
XPSQ_PARAM_POS_VALUE |
Distance |
REAL
|
UNIT |
METER |
MIN |
-2000.0 |
MINSLIDER |
-2000.0 |
MAXSLIDER |
2000.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_FALLOFF_LINK |
Modifier |
LINK
|
|
|
XPSQ_PARAM_FALLOFF_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_FALLOFF_MODE_IN |
ParticleWithinFalloff |
XPSQ_PARAM_FALLOFF_MODE_OUT |
ParticleOutsideFalloff |
XPSQ_PARAM_FALLOFF_MODE_MORETHAN |
Falloff> |
XPSQ_PARAM_FALLOFF_MODE_LESSTHAN |
Falloff< |
XPSQ_PARAM_FALLOFF_MODE_RANGE |
InRange |
|
XPSQ_PARAM_FALLOFF_LOWVALUE |
LowFalloffValue |
REAL
|
UNIT |
PERCENT |
MIN |
0.0 |
MAX |
100.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
100.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_FALLOFF_HIGHVALUE |
HighFalloffValue |
REAL
|
UNIT |
PERCENT |
MIN |
0.0 |
MAX |
100.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
100.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_FALLOFF_PROB |
Weighting |
REAL
|
UNIT |
PERCENT |
MIN |
0.0 |
MAX |
100.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
100.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_CAMDIST_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_CAMDIST_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_CAMDIST_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_CAMDIST_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_CAMDIST_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_CAMDIST_VALUE |
Distance |
REAL
|
UNIT |
METER |
MIN |
0.0 |
STEP |
1.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
5000.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_CAMDIST_RANGE |
Range |
REAL
|
UNIT |
METER |
MIN |
0.0 |
STEP |
1.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
5000.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_CAMFOV_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_CAMFOV_MODE_ISINFOV |
ParticleisinCameraFOV |
XPSQ_PARAM_CAMFOV_MODE_ISNOTINFOV |
ParticleisNOTinCameraFOV |
|
XPSQ_PARAM_PROB_SEED |
RandomSeed |
LONG
|
|
|
XPSQ_PARAM_PROB_PROBABILITY |
Probability |
REAL
|
UNIT |
PERCENT |
MIN |
0.0 |
MAX |
100.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
100.0 |
STEP |
1.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_FROZEN_OPERATION |
Operation |
LONG
|
|
XPSQ_FROZEN_MATCH_ANY |
MatchAny |
XPSQ_FROZEN_MATCH_EXACT |
MatchExact |
|
XPSQ_PARAM_FROZEN_MOVE |
FrozenMovement |
BOOL
|
|
|
XPSQ_PARAM_FROZEN_SPIN |
FrozenSpin |
BOOL
|
|
|
XPSQ_PARAM_FROZEN_SCALE |
FrozenScale |
BOOL
|
|
|
XPSQ_PARAM_COLLIDED_CLEAR |
ClearCollisionFlag |
BOOL
|
|
|
XPSQ_PARAM_TRAIL_LEN |
TrailLength |
LONG
|
|
XPSQ_TRAIL_MAXLEN |
TrailisatMax.Length |
XPSQ_TRAIL_ZEROLEN |
TrailHasZeroLength |
XPSQ_TRAIL_LESSTHANMAX |
TrailisLessThanMax.Length |
|
XPSQ_PARAM_MORPH_MODE |
Mode |
LONG
|
|
XPSQ_MORPH_MODE_ATMAX |
MorphatMaximum |
XPSQ_MORPH_MODE_VALUE_HIGHER |
MorphValueHigherThan |
XPSQ_MORPH_MODE_VALUE_EQUALS |
MorphValueEquals |
XPSQ_MORPH_MODE_VALUE_LOWER |
MorphValueLessThan |
|
XPSQ_PARAM_MORPH_VALUE |
MorphValue |
REAL
|
UNIT |
PERCENT |
STEP |
1.0 |
MIN |
-100.0 |
MAX |
100.0 |
MINSLIDER |
-100.0 |
MAXSLIDER |
100.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_BOOLEAN_MODE |
Mode |
LONG
|
|
XPSQ_BOOLEAN_MODE_ISTRUE |
InputisTRUE |
XPSQ_BOOLEAN_MODE_ISFALSE |
InputisFALSE |
|
XPSQ_PARAM_BOOLEAN_VALUE |
InputValue |
BOOL
|
|
|
XPSQ_PARAM_OBJDIST_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_OBJDIST_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_OBJDIST_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_OBJDIST_MODE_INRANGE |
IninRange |
XPSQ_PARAM_OBJDIST_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_OBJDIST_LINK |
Object |
LINK
|
|
|
XPSQ_PARAM_OBJDIST_VALUE |
Distance |
REAL
|
UNIT |
METER |
MIN |
0.0 |
STEP |
1.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
5000.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_OBJDIST_RANGE |
Range |
REAL
|
UNIT |
METER |
MIN |
0.0 |
STEP |
1.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
5000.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_SPLINEDIST_TYPE |
Parameter |
LONG
|
|
SSPLINEDIST_TYPE_END |
ReachedEndofSpline |
SSPLINEDIST_TYPE_START |
ReachedStartofSpline |
SSPLINEDIST_TYPE_DISTANCE |
DistanceAlongSpline |
SSPLINEDIST_TYPE_LOOPS |
NumberofLoops |
|
XPSQ_PARAM_SPLINEDIST_MODE |
Mode |
LONG
|
|
SSPLINEDIST_MODE_LESSTHAN |
IsLessThan |
SSPLINEDIST_MODE_EXCEEDS |
IsGreaterThan |
|
XPSQ_PARAM_SPLINEDIST_DIST |
Distance |
REAL
|
UNIT |
PERCENT |
MIN |
0.0 |
MAX |
100.0 |
STEP |
1.0 |
|
|
XPSQ_PARAM_SPLINEDIST_LOOPS |
Loops |
REAL
|
UNIT |
REAL |
MIN |
0.0 |
STEP |
0.1 |
|
|
XPSQ_PARAM_ILLUM_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_ILLUM_MODE_POS |
Illuminated |
XPSQ_PARAM_ILLUM_MODE_NEG |
NotIlluminated |
|
XPSQ_PARAM_ILLUM_LINK |
Light |
LINK
|
|
|
XPSQ_PARAM_ILLUM_FALLOFF |
UseFalloff |
BOOL
|
|
|
XPSQ_PARAM_ILLUM_THRESHOLD |
IlluminationThreshold |
REAL
|
UNIT |
PERCENT |
MIN |
0.0 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
100.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_COLOR_TYPE |
ComponenttoTest |
LONG
|
|
XPSQ_PARAM_COLOR_TYPE_RGB |
RGB(Brightness) |
XPSQ_PARAM_COLOR_TYPE_R |
RedOnly |
XPSQ_PARAM_COLOR_TYPE_G |
GreenOnly |
XPSQ_PARAM_COLOR_TYPE_B |
BlueOnly |
XPSQ_PARAM_COLOR_TYPE_RG |
RedandGreen |
XPSQ_PARAM_COLOR_TYPE_RB |
RedandBlue |
XPSQ_PARAM_COLOR_TYPE_GB |
GreenandBlue |
|
XPSQ_PARAM_COLOR_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_COLOR_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_COLOR_MODE_EQUALS |
Equals |
XPSQ_PARAM_COLOR_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_COLOR_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_COLOR_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_COLOR_VALUE |
ComponentValues |
COLOR
|
|
|
XPSQ_PARAM_COLOR_RANGE |
Range |
COLOR
|
|
|
XPSQ_PARAM_BURN_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_BURN_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_BURN_MODE_EQUALS |
Equals |
XPSQ_PARAM_BURN_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_BURN_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_BURN_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_BURN_VALUE |
FireValue |
REAL
|
UNIT |
REAL |
MIN |
0.0 |
STEP |
0.1 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
10.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_BURN_RANGE |
Range |
REAL
|
UNIT |
REAL |
MIN |
0.0 |
STEP |
0.1 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
10.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_FUEL_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_FUEL_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_FUEL_MODE_EQUALS |
Equals |
XPSQ_PARAM_FUEL_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_FUEL_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_FUEL_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_FUEL_VALUE |
FuelValue |
REAL
|
UNIT |
REAL |
MIN |
0.0 |
STEP |
0.1 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
10.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_FUEL_RANGE |
Range |
REAL
|
UNIT |
REAL |
MIN |
0.0 |
STEP |
0.1 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
10.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_MASS_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_MASS_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_MASS_MODE_EQUALS |
Equals |
XPSQ_PARAM_MASS_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_MASS_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_MASS_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_MASS_VALUE |
Mass |
REAL
|
UNIT |
REAL |
MIN |
0.0 |
STEP |
0.1 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
10.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_MASS_RANGE |
Range |
REAL
|
UNIT |
REAL |
MIN |
0.0 |
STEP |
0.1 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
10.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_SMOKE_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_SMOKE_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_SMOKE_MODE_EQUALS |
Equals |
XPSQ_PARAM_SMOKE_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_SMOKE_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_SMOKE_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_SMOKE_VALUE |
SmokeValue |
REAL
|
UNIT |
REAL |
MIN |
0.0 |
STEP |
0.1 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
10.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_SMOKE_RANGE |
Range |
REAL
|
UNIT |
REAL |
MIN |
0.0 |
STEP |
0.1 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
10.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_TEMP_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_TEMP_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_TEMP_MODE_EQUALS |
Equals |
XPSQ_PARAM_TEMP_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_TEMP_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_TEMP_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_TEMP_VALUE |
Temp.Value |
REAL
|
UNIT |
REAL |
MIN |
0.0 |
STEP |
0.1 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
10.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_TEMP_RANGE |
Range |
REAL
|
UNIT |
REAL |
MIN |
0.0 |
STEP |
0.1 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
10.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_RADIUS_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_RADIUS_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_RADIUS_MODE_EQUALS |
Equals |
XPSQ_PARAM_RADIUS_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_RADIUS_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_RADIUS_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_RADIUS_VALUE |
Radius |
REAL
|
UNIT |
METER |
MIN |
0.0 |
STEP |
0.1 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
10.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_RADIUS_RANGE |
Range |
REAL
|
UNIT |
METER |
MIN |
0.0 |
STEP |
0.1 |
MAX |
100000.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
10.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_SCALE_TYPE |
AxistoTest |
LONG
|
|
XPSQ_PARAM_SCALE_TYPE_XYZ |
XYZ |
XPSQ_PARAM_SCALE_TYPE_X |
XOnly |
XPSQ_PARAM_SCALE_TYPE_Y |
YOnly |
XPSQ_PARAM_SCALE_TYPE_Z |
ZOnly |
XPSQ_PARAM_SCALE_TYPE_XY |
XY |
XPSQ_PARAM_SCALE_TYPE_XZ |
XZ |
XPSQ_PARAM_SCALE_TYPE_YZ |
YZ |
|
XPSQ_PARAM_SCALE_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_SCALE_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_SCALE_MODE_EQUALS |
Equals |
XPSQ_PARAM_SCALE_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_SCALE_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_SCALE_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_SCALE_VALUE |
ComponentValues |
VECTOR
|
MIN |
|
XPSQ_PARAM_SCALE_RANGE |
Range |
VECTOR
|
MIN |
|
XPSQ_PARAM_ROTATE_TYPE |
AxistoTest |
LONG
|
|
XPSQ_PARAM_ROTATE_TYPE_H |
H |
XPSQ_PARAM_ROTATE_TYPE_P |
P |
XPSQ_PARAM_ROTATE_TYPE_B |
B |
|
XPSQ_PARAM_ROTATE_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_ROTATE_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_ROTATE_MODE_EQUALS |
Equals |
XPSQ_PARAM_ROTATE_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_ROTATE_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_ROTATE_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_ROTATE_VALUE |
RotationAmount |
REAL
|
UNIT |
DEGREE |
MINSLIDER |
-360.0 |
MAXSLIDER |
360.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_ROTATE_RANGE |
Range |
REAL
|
UNIT |
DEGREE |
MINSLIDER |
0.0 |
MAXSLIDER |
360.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_COLLCOUNT_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_COLLCOUNT_MODE_LESSTHAN |
IsLessThan |
XPSQ_PARAM_COLLCOUNT_MODE_EQUALS |
Equals |
XPSQ_PARAM_COLLCOUNT_MODE_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_COLLCOUNT_MODE_INRANGE |
IsinRange |
XPSQ_PARAM_COLLCOUNT_MODE_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_COLLCOUNT_VALUE |
Collisions |
LONG
|
MIN |
0 |
MAX |
10000000 |
MINSLIDER |
0 |
MAXSLIDER |
1000 |
CUSTOMGUI |
LONGSLIDER |
|
|
XPSQ_PARAM_COLLCOUNT_RANGE |
Range |
LONG
|
MIN |
0 |
MAX |
10000000 |
MINSLIDER |
0 |
MAXSLIDER |
1000 |
CUSTOMGUI |
LONGSLIDER |
|
|
XPSQ_PARAM_GENOBJ_TYPE |
ObjectType |
LONG
|
|
XPSQ_PARAM_GENOBJ_GENERATOR |
Generator |
XPSQ_PARAM_GENOBJ_SPRITE |
Sprite |
|
XPSQ_PARAM_GENOBJ_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_GENOBJ_ISOBJ |
ParticleGeneratesthisObject |
XPSQ_PARAM_GENOBJ_ISNOTOBJ |
ParticleDoesNOTGeneratethisObject |
|
XPSQ_PARAM_GENOBJ_INDEX |
ObjectIndex |
LONG
|
MIN |
|
XPSQ_PARAM_GENOBJ_SPRITE_TYPE |
SpriteType |
LONG
|
|
XPSQ_PARAM_GENOBJ_DOT |
Cube |
XPSQ_PARAM_GENOBJ_TICK |
Tick |
XPSQ_PARAM_GENOBJ_PLACARD |
Placard |
XPSQ_PARAM_GENOBJ_SPHERE |
Sphere |
XPSQ_PARAM_GENOBJ_CYCLINDER |
Cylinder |
XPSQ_PARAM_GENOBJ_CAPSULE |
Capsule |
XPSQ_PARAM_GENOBJ_CONE |
Cone |
XPSQ_PARAM_GENOBJ_PYRAMID |
Pyramid |
XPSQ_PARAM_GENOBJ_DISC |
Disc |
XPSQ_PARAM_GENOBJ_3PLANE |
3-Plane |
XPSQ_PARAM_GENOBJ_LIGHT |
Light |
XPSQ_PARAM_GENOBJ_POINT |
Points |
XPSQ_PARAM_GENOBJ_POINTCLOUD |
Points(PointCloud) |
XPSQ_PARAM_GENOBJ_TEXT |
Text |
XPSQ_PARAM_GENOBJ_RUBBLE |
Rubble |
|
XPSQ_PARAM_VORTEX_RADIUS_MODE |
Mode |
LONG
|
|
XPSQ_PARAM_VORTEX_RADIUS_LESSTHAN |
IsLessThan |
XPSQ_PARAM_VORTEX_RADIUS_EXCEEDS |
IsGreaterThan |
XPSQ_PARAM_VORTEX_RADIUS_INRANGE |
IsinRange |
XPSQ_PARAM_VORTEX_RADIUS_OUTRANGE |
IsNotinRange |
|
XPSQ_PARAM_VORTEX_RADIUS_VALUE |
Radius |
REAL
|
STEP |
1.0 |
UNIT |
METER |
MIN |
0.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
500.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_PARAM_VORTEX_RADIUS_RANGE |
Range |
REAL
|
STEP |
1.0 |
UNIT |
METER |
MIN |
0.0 |
MINSLIDER |
0.0 |
MAXSLIDER |
500.0 |
CUSTOMGUI |
REALSLIDER |
|
|
XPSQ_HELP_BUTTON |
|
BITMAPBUTTON
|
|
|
XPSQ_VIDMAN_BUTTON |
|
BITMAPBUTTON
|
|
|
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.Oxpsubquestion)
doc.InsertObject(obj)
c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
#You can set parameters two different ways.
#First way
obj[c4d.XPSQ_PARAMETER] = 1
obj[c4d.XPSQ_PARAMETER_SAVED] = 1
obj[c4d.XPSQ_PARAMETER_TYPE] = c4d.XPSQ_PARAM_TYPE_PDAT
obj[c4d.XPSQ_PARAMETER_PDAT] = c4d.XPSQ_PARAM_AGE
obj[c4d.XPSQ_PARAMETER_PPOS] = c4d.XPSQ_PARAM_SPLINEDIST
obj[c4d.XPSQ_PARAMETER_PFLAGS] = c4d.XPSQ_PARAM_COLLIDED
obj[c4d.XPSQ_PARAMETER_GEOM] = c4d.XPSQ_PARAM_BRANCH
obj[c4d.XPSQ_PARAMETER_PHYS] = c4d.XPSQ_PARAM_BURN
obj[c4d.XPSQ_PARAMETER_OTHER] = c4d.XPSQ_PARAM_BOOLEAN
obj[c4d.XPSQ_PARAM_PYTHON_SCRIPT] = "Hello World"
obj[c4d.XPSQ_PARAM_INVOLUME_MODE] = c4d.XPSQ_PARAM_INVOLUME_MODE_ISIN
obj[c4d.XPSQ_PARAM_AGE_MODE] = c4d.XPSQ_PARAM_AGE_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_FRAME_MODE] = c4d.XPSQ_PARAM_FRAME_MODE_EQUALS
obj[c4d.XPSQ_PARAM_SPEED_MODE] = c4d.XPSQ_PARAM_SPEED_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_SPEED_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_SPEED_RANGE] = 0.1
obj[c4d.XPSQ_PARAM_COUNT_MODE] = c4d.XPSQ_PARAM_COUNT_MODE_EXCEEDS
obj[c4d.XPSQ_PARAM_COUNT_VALUE] = 1
obj[c4d.XPSQ_PARAM_COUNT_RANGE] = 1
obj[c4d.XPSQ_PARAM_INDEX_MODE] = c4d.XPSQ_PARAM_INDEX_MODE_EQUALS
obj[c4d.XPSQ_PARAM_INDEX_VALUE] = 1
obj[c4d.XPSQ_PARAM_INDEX_RANGE] = 1
obj[c4d.XPSQ_PARAM_GROUP_MODE] = c4d.XPSQ_PARAM_GROUP_INGROUP
obj[c4d.XPSQ_PARAM_DISTANCE_MODE] = c4d.XPSQ_PARAM_DISTANCE_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_DISTANCE_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_DISTANCE_RANGE] = 0.1
obj[c4d.XPSQ_PARAM_BRANCH_TYPE] = c4d.XPSQ_PARAM_BRANCH_TYPE_FRAMEAGE
obj[c4d.XPSQ_PARAM_BRANCH_MODE] = c4d.XPSQ_PARAM_BRANCH_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_BRANCH_VALUE] = 1
obj[c4d.XPSQ_PARAM_POS_TYPE] = c4d.XPSQ_PARAM_POS_TYPE_GLOBAL
obj[c4d.XPSQ_PARAM_POS_AXIS] = c4d.XPSQ_PARAM_POS_AXIS_X
obj[c4d.XPSQ_PARAM_POS_MODE] = c4d.XPSQ_PARAM_POS_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_POS_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_FALLOFF_MODE] = c4d.XPSQ_PARAM_FALLOFF_MODE_IN
obj[c4d.XPSQ_PARAM_FALLOFF_LOWVALUE] = 0.1
obj[c4d.XPSQ_PARAM_FALLOFF_HIGHVALUE] = 0.1
obj[c4d.XPSQ_PARAM_FALLOFF_PROB] = 0.1
obj[c4d.XPSQ_PARAM_CAMDIST_MODE] = c4d.XPSQ_PARAM_CAMDIST_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_CAMDIST_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_CAMDIST_RANGE] = 0.1
obj[c4d.XPSQ_PARAM_CAMFOV_MODE] = c4d.XPSQ_PARAM_CAMFOV_MODE_ISINFOV
obj[c4d.XPSQ_PARAM_PROB_SEED] = 1
obj[c4d.XPSQ_PARAM_PROB_PROBABILITY] = 0.1
obj[c4d.XPSQ_PARAM_FROZEN_OPERATION] = c4d.XPSQ_FROZEN_MATCH_ANY
obj[c4d.XPSQ_PARAM_FROZEN_MOVE] = True
obj[c4d.XPSQ_PARAM_FROZEN_SPIN] = True
obj[c4d.XPSQ_PARAM_FROZEN_SCALE] = True
obj[c4d.XPSQ_PARAM_COLLIDED_CLEAR] = True
obj[c4d.XPSQ_PARAM_TRAIL_LEN] = c4d.XPSQ_TRAIL_MAXLEN
obj[c4d.XPSQ_PARAM_MORPH_MODE] = c4d.XPSQ_MORPH_MODE_ATMAX
obj[c4d.XPSQ_PARAM_MORPH_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_BOOLEAN_MODE] = c4d.XPSQ_BOOLEAN_MODE_ISTRUE
obj[c4d.XPSQ_PARAM_BOOLEAN_VALUE] = True
obj[c4d.XPSQ_PARAM_OBJDIST_MODE] = c4d.XPSQ_PARAM_OBJDIST_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_OBJDIST_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_OBJDIST_RANGE] = 0.1
obj[c4d.XPSQ_PARAM_SPLINEDIST_TYPE] = c4d.SSPLINEDIST_TYPE_END
obj[c4d.XPSQ_PARAM_SPLINEDIST_MODE] = c4d.SSPLINEDIST_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_SPLINEDIST_DIST] = 0.1
obj[c4d.XPSQ_PARAM_SPLINEDIST_LOOPS] = 0.1
obj[c4d.XPSQ_PARAM_ILLUM_MODE] = c4d.XPSQ_PARAM_ILLUM_MODE_POS
obj[c4d.XPSQ_PARAM_ILLUM_FALLOFF] = True
obj[c4d.XPSQ_PARAM_ILLUM_THRESHOLD] = 0.1
obj[c4d.XPSQ_PARAM_COLOR_TYPE] = c4d.XPSQ_PARAM_COLOR_TYPE_RGB
obj[c4d.XPSQ_PARAM_COLOR_MODE] = c4d.XPSQ_PARAM_COLOR_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_BURN_MODE] = c4d.XPSQ_PARAM_BURN_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_BURN_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_BURN_RANGE] = 0.1
obj[c4d.XPSQ_PARAM_FUEL_MODE] = c4d.XPSQ_PARAM_FUEL_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_FUEL_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_FUEL_RANGE] = 0.1
obj[c4d.XPSQ_PARAM_MASS_MODE] = c4d.XPSQ_PARAM_MASS_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_MASS_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_MASS_RANGE] = 0.1
obj[c4d.XPSQ_PARAM_SMOKE_MODE] = c4d.XPSQ_PARAM_SMOKE_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_SMOKE_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_SMOKE_RANGE] = 0.1
obj[c4d.XPSQ_PARAM_TEMP_MODE] = c4d.XPSQ_PARAM_TEMP_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_TEMP_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_TEMP_RANGE] = 0.1
obj[c4d.XPSQ_PARAM_RADIUS_MODE] = c4d.XPSQ_PARAM_RADIUS_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_RADIUS_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_RADIUS_RANGE] = 0.1
obj[c4d.XPSQ_PARAM_SCALE_TYPE] = c4d.XPSQ_PARAM_SCALE_TYPE_XYZ
obj[c4d.XPSQ_PARAM_SCALE_MODE] = c4d.XPSQ_PARAM_SCALE_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_SCALE_VALUE] = c4d.Vector(1.0,1.0,1.0)
obj[c4d.XPSQ_PARAM_SCALE_RANGE] = c4d.Vector(1.0,1.0,1.0)
obj[c4d.XPSQ_PARAM_ROTATE_TYPE] = c4d.XPSQ_PARAM_ROTATE_TYPE_H
obj[c4d.XPSQ_PARAM_ROTATE_MODE] = c4d.XPSQ_PARAM_ROTATE_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_ROTATE_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_ROTATE_RANGE] = 0.1
obj[c4d.XPSQ_PARAM_COLLCOUNT_MODE] = c4d.XPSQ_PARAM_COLLCOUNT_MODE_LESSTHAN
obj[c4d.XPSQ_PARAM_COLLCOUNT_VALUE] = 1
obj[c4d.XPSQ_PARAM_COLLCOUNT_RANGE] = 1
obj[c4d.XPSQ_PARAM_GENOBJ_TYPE] = c4d.XPSQ_PARAM_GENOBJ_GENERATOR
obj[c4d.XPSQ_PARAM_GENOBJ_MODE] = c4d.XPSQ_PARAM_GENOBJ_ISOBJ
obj[c4d.XPSQ_PARAM_GENOBJ_INDEX] = 1
obj[c4d.XPSQ_PARAM_GENOBJ_SPRITE_TYPE] = c4d.XPSQ_PARAM_GENOBJ_DOT
obj[c4d.XPSQ_PARAM_VORTEX_RADIUS_MODE] = c4d.XPSQ_PARAM_VORTEX_RADIUS_LESSTHAN
obj[c4d.XPSQ_PARAM_VORTEX_RADIUS_VALUE] = 0.1
obj[c4d.XPSQ_PARAM_VORTEX_RADIUS_RANGE] = 0.1
#Second way, using the base container.
bc = obj.GetDataInstance()
bc.SetInt32(c4d.XPSQ_PARAMETER,1)
bc.SetInt32(c4d.XPSQ_PARAMETER_SAVED,1)
bc.SetInt32(c4d.XPSQ_PARAMETER_TYPE,c4d.XPSQ_PARAM_TYPE_PDAT)
bc.SetInt32(c4d.XPSQ_PARAMETER_PDAT,c4d.XPSQ_PARAM_AGE)
bc.SetInt32(c4d.XPSQ_PARAMETER_PPOS,c4d.XPSQ_PARAM_SPLINEDIST)
bc.SetInt32(c4d.XPSQ_PARAMETER_PFLAGS,c4d.XPSQ_PARAM_COLLIDED)
bc.SetInt32(c4d.XPSQ_PARAMETER_GEOM,c4d.XPSQ_PARAM_BRANCH)
bc.SetInt32(c4d.XPSQ_PARAMETER_PHYS,c4d.XPSQ_PARAM_BURN)
bc.SetInt32(c4d.XPSQ_PARAMETER_OTHER,c4d.XPSQ_PARAM_BOOLEAN)
bc.SetString(c4d.XPSQ_PARAM_PYTHON_SCRIPT,"Hello World")
bc.SetInt32(c4d.XPSQ_PARAM_INVOLUME_MODE,c4d.XPSQ_PARAM_INVOLUME_MODE_ISIN)
bc.SetInt32(c4d.XPSQ_PARAM_AGE_MODE,c4d.XPSQ_PARAM_AGE_MODE_LESSTHAN)
bc.SetInt32(c4d.XPSQ_PARAM_FRAME_MODE,c4d.XPSQ_PARAM_FRAME_MODE_EQUALS)
bc.SetInt32(c4d.XPSQ_PARAM_SPEED_MODE,c4d.XPSQ_PARAM_SPEED_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_SPEED_VALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_SPEED_RANGE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_COUNT_MODE,c4d.XPSQ_PARAM_COUNT_MODE_EXCEEDS)
bc.SetInt32(c4d.XPSQ_PARAM_COUNT_VALUE,1)
bc.SetInt32(c4d.XPSQ_PARAM_COUNT_RANGE,1)
bc.SetInt32(c4d.XPSQ_PARAM_INDEX_MODE,c4d.XPSQ_PARAM_INDEX_MODE_EQUALS)
bc.SetInt32(c4d.XPSQ_PARAM_INDEX_VALUE,1)
bc.SetInt32(c4d.XPSQ_PARAM_INDEX_RANGE,1)
bc.SetInt32(c4d.XPSQ_PARAM_GROUP_MODE,c4d.XPSQ_PARAM_GROUP_INGROUP)
bc.SetInt32(c4d.XPSQ_PARAM_DISTANCE_MODE,c4d.XPSQ_PARAM_DISTANCE_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_DISTANCE_VALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_DISTANCE_RANGE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_BRANCH_TYPE,c4d.XPSQ_PARAM_BRANCH_TYPE_FRAMEAGE)
bc.SetInt32(c4d.XPSQ_PARAM_BRANCH_MODE,c4d.XPSQ_PARAM_BRANCH_MODE_LESSTHAN)
bc.SetInt32(c4d.XPSQ_PARAM_BRANCH_VALUE,1)
bc.SetInt32(c4d.XPSQ_PARAM_POS_TYPE,c4d.XPSQ_PARAM_POS_TYPE_GLOBAL)
bc.SetInt32(c4d.XPSQ_PARAM_POS_AXIS,c4d.XPSQ_PARAM_POS_AXIS_X)
bc.SetInt32(c4d.XPSQ_PARAM_POS_MODE,c4d.XPSQ_PARAM_POS_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_POS_VALUE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_FALLOFF_MODE,c4d.XPSQ_PARAM_FALLOFF_MODE_IN)
bc.SetFloat(c4d.XPSQ_PARAM_FALLOFF_LOWVALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_FALLOFF_HIGHVALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_FALLOFF_PROB,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_CAMDIST_MODE,c4d.XPSQ_PARAM_CAMDIST_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_CAMDIST_VALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_CAMDIST_RANGE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_CAMFOV_MODE,c4d.XPSQ_PARAM_CAMFOV_MODE_ISINFOV)
bc.SetInt32(c4d.XPSQ_PARAM_PROB_SEED,1)
bc.SetFloat(c4d.XPSQ_PARAM_PROB_PROBABILITY,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_FROZEN_OPERATION,c4d.XPSQ_FROZEN_MATCH_ANY)
bc.SetBool(c4d.XPSQ_PARAM_FROZEN_MOVE,True)
bc.SetBool(c4d.XPSQ_PARAM_FROZEN_SPIN,True)
bc.SetBool(c4d.XPSQ_PARAM_FROZEN_SCALE,True)
bc.SetBool(c4d.XPSQ_PARAM_COLLIDED_CLEAR,True)
bc.SetInt32(c4d.XPSQ_PARAM_TRAIL_LEN,c4d.XPSQ_TRAIL_MAXLEN)
bc.SetInt32(c4d.XPSQ_PARAM_MORPH_MODE,c4d.XPSQ_MORPH_MODE_ATMAX)
bc.SetFloat(c4d.XPSQ_PARAM_MORPH_VALUE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_BOOLEAN_MODE,c4d.XPSQ_BOOLEAN_MODE_ISTRUE)
bc.SetBool(c4d.XPSQ_PARAM_BOOLEAN_VALUE,True)
bc.SetInt32(c4d.XPSQ_PARAM_OBJDIST_MODE,c4d.XPSQ_PARAM_OBJDIST_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_OBJDIST_VALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_OBJDIST_RANGE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_SPLINEDIST_TYPE,c4d.SSPLINEDIST_TYPE_END)
bc.SetInt32(c4d.XPSQ_PARAM_SPLINEDIST_MODE,c4d.SSPLINEDIST_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_SPLINEDIST_DIST,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_SPLINEDIST_LOOPS,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_ILLUM_MODE,c4d.XPSQ_PARAM_ILLUM_MODE_POS)
bc.SetBool(c4d.XPSQ_PARAM_ILLUM_FALLOFF,True)
bc.SetFloat(c4d.XPSQ_PARAM_ILLUM_THRESHOLD,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_COLOR_TYPE,c4d.XPSQ_PARAM_COLOR_TYPE_RGB)
bc.SetInt32(c4d.XPSQ_PARAM_COLOR_MODE,c4d.XPSQ_PARAM_COLOR_MODE_LESSTHAN)
bc.SetInt32(c4d.XPSQ_PARAM_BURN_MODE,c4d.XPSQ_PARAM_BURN_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_BURN_VALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_BURN_RANGE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_FUEL_MODE,c4d.XPSQ_PARAM_FUEL_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_FUEL_VALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_FUEL_RANGE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_MASS_MODE,c4d.XPSQ_PARAM_MASS_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_MASS_VALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_MASS_RANGE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_SMOKE_MODE,c4d.XPSQ_PARAM_SMOKE_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_SMOKE_VALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_SMOKE_RANGE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_TEMP_MODE,c4d.XPSQ_PARAM_TEMP_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_TEMP_VALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_TEMP_RANGE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_RADIUS_MODE,c4d.XPSQ_PARAM_RADIUS_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_RADIUS_VALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_RADIUS_RANGE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_SCALE_TYPE,c4d.XPSQ_PARAM_SCALE_TYPE_XYZ)
bc.SetInt32(c4d.XPSQ_PARAM_SCALE_MODE,c4d.XPSQ_PARAM_SCALE_MODE_LESSTHAN)
bc.SetVector(c4d.XPSQ_PARAM_SCALE_VALUE, c4d.Vector(1.0,1.0,1.0)
bc.SetVector(c4d.XPSQ_PARAM_SCALE_RANGE, c4d.Vector(1.0,1.0,1.0)
bc.SetInt32(c4d.XPSQ_PARAM_ROTATE_TYPE,c4d.XPSQ_PARAM_ROTATE_TYPE_H)
bc.SetInt32(c4d.XPSQ_PARAM_ROTATE_MODE,c4d.XPSQ_PARAM_ROTATE_MODE_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_ROTATE_VALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_ROTATE_RANGE,0.1)
bc.SetInt32(c4d.XPSQ_PARAM_COLLCOUNT_MODE,c4d.XPSQ_PARAM_COLLCOUNT_MODE_LESSTHAN)
bc.SetInt32(c4d.XPSQ_PARAM_COLLCOUNT_VALUE,1)
bc.SetInt32(c4d.XPSQ_PARAM_COLLCOUNT_RANGE,1)
bc.SetInt32(c4d.XPSQ_PARAM_GENOBJ_TYPE,c4d.XPSQ_PARAM_GENOBJ_GENERATOR)
bc.SetInt32(c4d.XPSQ_PARAM_GENOBJ_MODE,c4d.XPSQ_PARAM_GENOBJ_ISOBJ)
bc.SetInt32(c4d.XPSQ_PARAM_GENOBJ_INDEX,1)
bc.SetInt32(c4d.XPSQ_PARAM_GENOBJ_SPRITE_TYPE,c4d.XPSQ_PARAM_GENOBJ_DOT)
bc.SetInt32(c4d.XPSQ_PARAM_VORTEX_RADIUS_MODE,c4d.XPSQ_PARAM_VORTEX_RADIUS_LESSTHAN)
bc.SetFloat(c4d.XPSQ_PARAM_VORTEX_RADIUS_VALUE,0.1)
bc.SetFloat(c4d.XPSQ_PARAM_VORTEX_RADIUS_RANGE,0.1)
if __name__=='__main__':
main()
C++
#include "c4d.h"
#include "../res/description/oxpsubquestion.h"
void SampleFunction()
{
BaseDocument *pDoc = GetActiveDocument();
BaseObject *pObject = BaseObject::Alloc(Oxpsubquestion);
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(XPSQ_PARAMETER),GeData(1),flags);
pObject->SetParameter(DescID(XPSQ_PARAMETER_SAVED),GeData(1),flags);
pObject->SetParameter(DescID(XPSQ_PARAMETER_TYPE),GeData(XPSQ_PARAM_TYPE_PDAT),flags);
pObject->SetParameter(DescID(XPSQ_PARAMETER_PDAT),GeData(XPSQ_PARAM_AGE),flags);
pObject->SetParameter(DescID(XPSQ_PARAMETER_PPOS),GeData(XPSQ_PARAM_SPLINEDIST),flags);
pObject->SetParameter(DescID(XPSQ_PARAMETER_PFLAGS),GeData(XPSQ_PARAM_COLLIDED),flags);
pObject->SetParameter(DescID(XPSQ_PARAMETER_GEOM),GeData(XPSQ_PARAM_BRANCH),flags);
pObject->SetParameter(DescID(XPSQ_PARAMETER_PHYS),GeData(XPSQ_PARAM_BURN),flags);
pObject->SetParameter(DescID(XPSQ_PARAMETER_OTHER),GeData(XPSQ_PARAM_BOOLEAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_PYTHON_SCRIPT),GeData("Hello World"),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_INVOLUME_MODE),GeData(XPSQ_PARAM_INVOLUME_MODE_ISIN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_AGE_MODE),GeData(XPSQ_PARAM_AGE_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_FRAME_MODE),GeData(XPSQ_PARAM_FRAME_MODE_EQUALS),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SPEED_MODE),GeData(XPSQ_PARAM_SPEED_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SPEED_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SPEED_RANGE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_COUNT_MODE),GeData(XPSQ_PARAM_COUNT_MODE_EXCEEDS),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_COUNT_VALUE),GeData(1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_COUNT_RANGE),GeData(1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_INDEX_MODE),GeData(XPSQ_PARAM_INDEX_MODE_EQUALS),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_INDEX_VALUE),GeData(1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_INDEX_RANGE),GeData(1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_GROUP_MODE),GeData(XPSQ_PARAM_GROUP_INGROUP),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_DISTANCE_MODE),GeData(XPSQ_PARAM_DISTANCE_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_DISTANCE_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_DISTANCE_RANGE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_BRANCH_TYPE),GeData(XPSQ_PARAM_BRANCH_TYPE_FRAMEAGE),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_BRANCH_MODE),GeData(XPSQ_PARAM_BRANCH_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_BRANCH_VALUE),GeData(1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_POS_TYPE),GeData(XPSQ_PARAM_POS_TYPE_GLOBAL),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_POS_AXIS),GeData(XPSQ_PARAM_POS_AXIS_X),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_POS_MODE),GeData(XPSQ_PARAM_POS_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_POS_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_FALLOFF_MODE),GeData(XPSQ_PARAM_FALLOFF_MODE_IN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_FALLOFF_LOWVALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_FALLOFF_HIGHVALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_FALLOFF_PROB),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_CAMDIST_MODE),GeData(XPSQ_PARAM_CAMDIST_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_CAMDIST_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_CAMDIST_RANGE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_CAMFOV_MODE),GeData(XPSQ_PARAM_CAMFOV_MODE_ISINFOV),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_PROB_SEED),GeData(1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_PROB_PROBABILITY),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_FROZEN_OPERATION),GeData(XPSQ_FROZEN_MATCH_ANY),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_FROZEN_MOVE),GeData(true),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_FROZEN_SPIN),GeData(true),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_FROZEN_SCALE),GeData(true),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_COLLIDED_CLEAR),GeData(true),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_TRAIL_LEN),GeData(XPSQ_TRAIL_MAXLEN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_MORPH_MODE),GeData(XPSQ_MORPH_MODE_ATMAX),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_MORPH_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_BOOLEAN_MODE),GeData(XPSQ_BOOLEAN_MODE_ISTRUE),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_BOOLEAN_VALUE),GeData(true),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_OBJDIST_MODE),GeData(XPSQ_PARAM_OBJDIST_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_OBJDIST_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_OBJDIST_RANGE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SPLINEDIST_TYPE),GeData(SSPLINEDIST_TYPE_END),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SPLINEDIST_MODE),GeData(SSPLINEDIST_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SPLINEDIST_DIST),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SPLINEDIST_LOOPS),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_ILLUM_MODE),GeData(XPSQ_PARAM_ILLUM_MODE_POS),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_ILLUM_FALLOFF),GeData(true),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_ILLUM_THRESHOLD),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_COLOR_TYPE),GeData(XPSQ_PARAM_COLOR_TYPE_RGB),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_COLOR_MODE),GeData(XPSQ_PARAM_COLOR_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_BURN_MODE),GeData(XPSQ_PARAM_BURN_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_BURN_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_BURN_RANGE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_FUEL_MODE),GeData(XPSQ_PARAM_FUEL_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_FUEL_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_FUEL_RANGE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_MASS_MODE),GeData(XPSQ_PARAM_MASS_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_MASS_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_MASS_RANGE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SMOKE_MODE),GeData(XPSQ_PARAM_SMOKE_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SMOKE_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SMOKE_RANGE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_TEMP_MODE),GeData(XPSQ_PARAM_TEMP_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_TEMP_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_TEMP_RANGE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_RADIUS_MODE),GeData(XPSQ_PARAM_RADIUS_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_RADIUS_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_RADIUS_RANGE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SCALE_TYPE),GeData(XPSQ_PARAM_SCALE_TYPE_XYZ),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SCALE_MODE),GeData(XPSQ_PARAM_SCALE_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SCALE_VALUE),GeData(Vector(1.0,1.0,1.0)),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_SCALE_RANGE),GeData(Vector(1.0,1.0,1.0)),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_ROTATE_TYPE),GeData(XPSQ_PARAM_ROTATE_TYPE_H),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_ROTATE_MODE),GeData(XPSQ_PARAM_ROTATE_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_ROTATE_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_ROTATE_RANGE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_COLLCOUNT_MODE),GeData(XPSQ_PARAM_COLLCOUNT_MODE_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_COLLCOUNT_VALUE),GeData(1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_COLLCOUNT_RANGE),GeData(1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_GENOBJ_TYPE),GeData(XPSQ_PARAM_GENOBJ_GENERATOR),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_GENOBJ_MODE),GeData(XPSQ_PARAM_GENOBJ_ISOBJ),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_GENOBJ_INDEX),GeData(1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_GENOBJ_SPRITE_TYPE),GeData(XPSQ_PARAM_GENOBJ_DOT),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_VORTEX_RADIUS_MODE),GeData(XPSQ_PARAM_VORTEX_RADIUS_LESSTHAN),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_VORTEX_RADIUS_VALUE),GeData(0.1),flags);
pObject->SetParameter(DescID(XPSQ_PARAM_VORTEX_RADIUS_RANGE),GeData(0.1),flags);
pObject->Message(MSG_UPDATE);
//Second way, using the base container.
BaseContainer *bc = pObject->GetDataInstance();
bc->SetInt32(XPSQ_PARAMETER,1);
bc->SetInt32(XPSQ_PARAMETER_SAVED,1);
bc->SetInt32(XPSQ_PARAMETER_TYPE,XPSQ_PARAM_TYPE_PDAT);
bc->SetInt32(XPSQ_PARAMETER_PDAT,XPSQ_PARAM_AGE);
bc->SetInt32(XPSQ_PARAMETER_PPOS,XPSQ_PARAM_SPLINEDIST);
bc->SetInt32(XPSQ_PARAMETER_PFLAGS,XPSQ_PARAM_COLLIDED);
bc->SetInt32(XPSQ_PARAMETER_GEOM,XPSQ_PARAM_BRANCH);
bc->SetInt32(XPSQ_PARAMETER_PHYS,XPSQ_PARAM_BURN);
bc->SetInt32(XPSQ_PARAMETER_OTHER,XPSQ_PARAM_BOOLEAN);
bc->SetString(XPSQ_PARAM_PYTHON_SCRIPT,"Hello World");
bc->SetInt32(XPSQ_PARAM_INVOLUME_MODE,XPSQ_PARAM_INVOLUME_MODE_ISIN);
bc->SetInt32(XPSQ_PARAM_AGE_MODE,XPSQ_PARAM_AGE_MODE_LESSTHAN);
bc->SetInt32(XPSQ_PARAM_FRAME_MODE,XPSQ_PARAM_FRAME_MODE_EQUALS);
bc->SetInt32(XPSQ_PARAM_SPEED_MODE,XPSQ_PARAM_SPEED_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_SPEED_VALUE,0.1);
bc->SetFloat(XPSQ_PARAM_SPEED_RANGE,0.1);
bc->SetInt32(XPSQ_PARAM_COUNT_MODE,XPSQ_PARAM_COUNT_MODE_EXCEEDS);
bc->SetInt32(XPSQ_PARAM_COUNT_VALUE,1);
bc->SetInt32(XPSQ_PARAM_COUNT_RANGE,1);
bc->SetInt32(XPSQ_PARAM_INDEX_MODE,XPSQ_PARAM_INDEX_MODE_EQUALS);
bc->SetInt32(XPSQ_PARAM_INDEX_VALUE,1);
bc->SetInt32(XPSQ_PARAM_INDEX_RANGE,1);
bc->SetInt32(XPSQ_PARAM_GROUP_MODE,XPSQ_PARAM_GROUP_INGROUP);
bc->SetInt32(XPSQ_PARAM_DISTANCE_MODE,XPSQ_PARAM_DISTANCE_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_DISTANCE_VALUE,0.1);
bc->SetFloat(XPSQ_PARAM_DISTANCE_RANGE,0.1);
bc->SetInt32(XPSQ_PARAM_BRANCH_TYPE,XPSQ_PARAM_BRANCH_TYPE_FRAMEAGE);
bc->SetInt32(XPSQ_PARAM_BRANCH_MODE,XPSQ_PARAM_BRANCH_MODE_LESSTHAN);
bc->SetInt32(XPSQ_PARAM_BRANCH_VALUE,1);
bc->SetInt32(XPSQ_PARAM_POS_TYPE,XPSQ_PARAM_POS_TYPE_GLOBAL);
bc->SetInt32(XPSQ_PARAM_POS_AXIS,XPSQ_PARAM_POS_AXIS_X);
bc->SetInt32(XPSQ_PARAM_POS_MODE,XPSQ_PARAM_POS_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_POS_VALUE,0.1);
bc->SetInt32(XPSQ_PARAM_FALLOFF_MODE,XPSQ_PARAM_FALLOFF_MODE_IN);
bc->SetFloat(XPSQ_PARAM_FALLOFF_LOWVALUE,0.1);
bc->SetFloat(XPSQ_PARAM_FALLOFF_HIGHVALUE,0.1);
bc->SetFloat(XPSQ_PARAM_FALLOFF_PROB,0.1);
bc->SetInt32(XPSQ_PARAM_CAMDIST_MODE,XPSQ_PARAM_CAMDIST_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_CAMDIST_VALUE,0.1);
bc->SetFloat(XPSQ_PARAM_CAMDIST_RANGE,0.1);
bc->SetInt32(XPSQ_PARAM_CAMFOV_MODE,XPSQ_PARAM_CAMFOV_MODE_ISINFOV);
bc->SetInt32(XPSQ_PARAM_PROB_SEED,1);
bc->SetFloat(XPSQ_PARAM_PROB_PROBABILITY,0.1);
bc->SetInt32(XPSQ_PARAM_FROZEN_OPERATION,XPSQ_FROZEN_MATCH_ANY);
bc->SetBool(XPSQ_PARAM_FROZEN_MOVE,true);
bc->SetBool(XPSQ_PARAM_FROZEN_SPIN,true);
bc->SetBool(XPSQ_PARAM_FROZEN_SCALE,true);
bc->SetBool(XPSQ_PARAM_COLLIDED_CLEAR,true);
bc->SetInt32(XPSQ_PARAM_TRAIL_LEN,XPSQ_TRAIL_MAXLEN);
bc->SetInt32(XPSQ_PARAM_MORPH_MODE,XPSQ_MORPH_MODE_ATMAX);
bc->SetFloat(XPSQ_PARAM_MORPH_VALUE,0.1);
bc->SetInt32(XPSQ_PARAM_BOOLEAN_MODE,XPSQ_BOOLEAN_MODE_ISTRUE);
bc->SetBool(XPSQ_PARAM_BOOLEAN_VALUE,true);
bc->SetInt32(XPSQ_PARAM_OBJDIST_MODE,XPSQ_PARAM_OBJDIST_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_OBJDIST_VALUE,0.1);
bc->SetFloat(XPSQ_PARAM_OBJDIST_RANGE,0.1);
bc->SetInt32(XPSQ_PARAM_SPLINEDIST_TYPE,SSPLINEDIST_TYPE_END);
bc->SetInt32(XPSQ_PARAM_SPLINEDIST_MODE,SSPLINEDIST_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_SPLINEDIST_DIST,0.1);
bc->SetFloat(XPSQ_PARAM_SPLINEDIST_LOOPS,0.1);
bc->SetInt32(XPSQ_PARAM_ILLUM_MODE,XPSQ_PARAM_ILLUM_MODE_POS);
bc->SetBool(XPSQ_PARAM_ILLUM_FALLOFF,true);
bc->SetFloat(XPSQ_PARAM_ILLUM_THRESHOLD,0.1);
bc->SetInt32(XPSQ_PARAM_COLOR_TYPE,XPSQ_PARAM_COLOR_TYPE_RGB);
bc->SetInt32(XPSQ_PARAM_COLOR_MODE,XPSQ_PARAM_COLOR_MODE_LESSTHAN);
bc->SetInt32(XPSQ_PARAM_BURN_MODE,XPSQ_PARAM_BURN_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_BURN_VALUE,0.1);
bc->SetFloat(XPSQ_PARAM_BURN_RANGE,0.1);
bc->SetInt32(XPSQ_PARAM_FUEL_MODE,XPSQ_PARAM_FUEL_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_FUEL_VALUE,0.1);
bc->SetFloat(XPSQ_PARAM_FUEL_RANGE,0.1);
bc->SetInt32(XPSQ_PARAM_MASS_MODE,XPSQ_PARAM_MASS_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_MASS_VALUE,0.1);
bc->SetFloat(XPSQ_PARAM_MASS_RANGE,0.1);
bc->SetInt32(XPSQ_PARAM_SMOKE_MODE,XPSQ_PARAM_SMOKE_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_SMOKE_VALUE,0.1);
bc->SetFloat(XPSQ_PARAM_SMOKE_RANGE,0.1);
bc->SetInt32(XPSQ_PARAM_TEMP_MODE,XPSQ_PARAM_TEMP_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_TEMP_VALUE,0.1);
bc->SetFloat(XPSQ_PARAM_TEMP_RANGE,0.1);
bc->SetInt32(XPSQ_PARAM_RADIUS_MODE,XPSQ_PARAM_RADIUS_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_RADIUS_VALUE,0.1);
bc->SetFloat(XPSQ_PARAM_RADIUS_RANGE,0.1);
bc->SetInt32(XPSQ_PARAM_SCALE_TYPE,XPSQ_PARAM_SCALE_TYPE_XYZ);
bc->SetInt32(XPSQ_PARAM_SCALE_MODE,XPSQ_PARAM_SCALE_MODE_LESSTHAN);
bc->SetVector(XPSQ_PARAM_SCALE_VALUE, c4d.Vector(1.0,1.0,1.0);
bc->SetVector(XPSQ_PARAM_SCALE_RANGE, c4d.Vector(1.0,1.0,1.0);
bc->SetInt32(XPSQ_PARAM_ROTATE_TYPE,XPSQ_PARAM_ROTATE_TYPE_H);
bc->SetInt32(XPSQ_PARAM_ROTATE_MODE,XPSQ_PARAM_ROTATE_MODE_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_ROTATE_VALUE,0.1);
bc->SetFloat(XPSQ_PARAM_ROTATE_RANGE,0.1);
bc->SetInt32(XPSQ_PARAM_COLLCOUNT_MODE,XPSQ_PARAM_COLLCOUNT_MODE_LESSTHAN);
bc->SetInt32(XPSQ_PARAM_COLLCOUNT_VALUE,1);
bc->SetInt32(XPSQ_PARAM_COLLCOUNT_RANGE,1);
bc->SetInt32(XPSQ_PARAM_GENOBJ_TYPE,XPSQ_PARAM_GENOBJ_GENERATOR);
bc->SetInt32(XPSQ_PARAM_GENOBJ_MODE,XPSQ_PARAM_GENOBJ_ISOBJ);
bc->SetInt32(XPSQ_PARAM_GENOBJ_INDEX,1);
bc->SetInt32(XPSQ_PARAM_GENOBJ_SPRITE_TYPE,XPSQ_PARAM_GENOBJ_DOT);
bc->SetInt32(XPSQ_PARAM_VORTEX_RADIUS_MODE,XPSQ_PARAM_VORTEX_RADIUS_LESSTHAN);
bc->SetFloat(XPSQ_PARAM_VORTEX_RADIUS_VALUE,0.1);
bc->SetFloat(XPSQ_PARAM_VORTEX_RADIUS_RANGE,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.XPSQ_PARAM_PYTHON_OPENEDITOR)
c4d.CallButton(obj,c4d.XPSQ_HELP_BUTTON)
c4d.CallButton(obj,c4d.XPSQ_VIDMAN_BUTTON)
C++
DescriptionCommand dc;
dc.id = DescID(XPSQ_PARAM_PYTHON_OPENEDITOR);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XPSQ_HELP_BUTTON);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XPSQ_VIDMAN_BUTTON);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);