LONG

Definition

LONG [id]
{
  [Common flags]
  [MIN minval;]
  [MAX maxval;]
  [MINSLIDER minval;]
  [MAXSLIDER maxval;]
  [STEP step;]
  [CYCLE]
}

Description

Represents integer values in a container. Rendered as a numeric edit field, or as a selection list if CYCLE is present.

Flags

MIN minval;The minimum value.
MAX maxval;The maximum value.
MINSLIDER minval;The minimum value for the slider.
MAXSLIDER maxval;The maximum value for the slider.
STEP step;The step for the edit field arrows.
CYCLE idlist;A selection list. Separate the options with semi-colons.

Cycle

If a CYCLE flag is provided then the element turns into a selection box with the included options:

LONG MY_CYCLE_LONG
{
CYCLE
{
FIRST_VALUE;
SECOND_VALUE;
...
}
}
LONG
Int32 data.
Definition: c4d_customguidata.h:2

The values must correspond to entries in the descname.h and descname.str files.
Two additional marker symbols can be used to display icons and separators:

  • The ~ symbol followed by an ID for a registered icon.
  • The -1 for a separator.

For instance the CYCLE resource of the light object looks like this:

{
CYCLE
{
LIGHT_TYPE_SPOT~300000146;
LIGHT_TYPE_DISTANT~300000148;
LIGHT_TYPE_AREA~300000150;
-1;
-1;
}
}
@ LIGHT_TYPE_AREA
Definition: olight.h:17
@ LIGHT_TYPE_PARSPOT
Definition: olight.h:14
@ LIGHT_TYPE
Definition: olight.h:8
@ LIGHT_TYPE_OMNI
Definition: olight.h:9
@ LIGHT_TYPE_SPOT
Definition: olight.h:10
@ LIGHT_TYPE_DISTANT
Definition: olight.h:12
@ LIGHT_TYPE_SPOTRECT
Definition: olight.h:11
@ LIGHT_TYPE_PARALLEL
Definition: olight.h:13
@ LIGHT_TYPE_PHOTOMETRIC
Definition: olight.h:18
@ LIGHT_TYPE_PARSPOTRECT
Definition: olight.h:15

Example

{
CYCLE
{
}
}
MAX
Maximum NBIT.
Definition: ge_prepass.h:121
MIN
Definition: ge_prepass.h:3
@ DEFORMOBJECT_MODE
Definition: obasedeform.h:8
@ DEFORMOBJECT_MODE_LIMIT
Definition: obasedeform.h:9
@ DEFORMOBJECT_MODE_BOX
Definition: obasedeform.h:10
@ DEFORMOBJECT_MODE_UNLIMITED
Definition: obasedeform.h:11
@ PRIM_PLANE_SUBH
Definition: oplane.h:9

Further Reading