[Contents] [Index] [Books]

CoCreate OneSpace Designer - Commands Reference Manual


SET_PART_BASE_COLOR terminate action

SET_PART_BASE_COLOR changes the base color attribute of the specified part.

Syntax


--->(SET_PART_BASE_COLOR)--(:PARTS)--|parts|--+--(:COLOR)--(GET_RGB_COLOR)----+-->
                                              |                               |
                                              +--(:COPY)--(:REF_SRC)--|part|--+
                                              |                               |
                                              +--(:CLR)-----------------------+

Options

When to use

Use this action to set the base color of a part. The color you specify must be in the range 0.0 to 1.0.

Example

The following parameter sequence sets the base color of the specified part.

SET_PART_BASE_COLOR :PARTS "/my_part" :COLOR :HSL 0.4,0.78,0.98

Alternatively, you can use the HSL and RGB sliders on the color menu to specify the part color.

Alternatively, you can copy the current color of another part.

All part names must be enclosed by double quotes (" ").

See also

SET_PART_INST_COLOR terminate action SET_PART_BASE_REFLECTANCE terminate action SET_PART_BASE_DENSITY terminate action SET_PART_BASE_REFLECTANCE terminate action SET_DEFAULT_PART_COLOR interrupt action SET_FACE_COLOR terminate action
[Contents] [Index] [Books]