[Contents] [Index] [Books]

CoCreate OneSpace Designer - Commands Reference Manual


SET_PART_INST_COLOR terminate action

SET_PART_INST_COLOR changes the part color attribute of the specified part.

Syntax


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

Options

When to use

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

Example

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

SET_PART_INST_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_DENSITY terminate action SET_DEFAULT_PART_COLOR interrupt action SET_FACE_COLOR terminate action SET_PART_BASE_COLOR terminate action SET_PART_INST_REFLECTANCE terminate action SET_PART_INST_TRANSPARENCY terminate action
[Contents] [Index] [Books]