-
首页
-
C4D R23.110 C++ SDK
BPColorSettingsHelpers Struct Reference
Library
»
Paint
#include <lib_paint.h>
详细描述
Functions to get access to the selected
BodyPaint 3D
channel color settings.
成员函数文档编制
◆
GetColorSettings()
Gets the color settings, for the foreground or background color, of a
BodyPaint 3D
Channel.
-
参数
-
[in]
|
bg
|
Pass
true
to get the background color settings or
false
for the foreground color settings.
|
-
返回
-
The color settings for the global background or foreground.
◆
GetChannelColorSettings()
Gets the settings, for the foreground or background color, of a specific
BodyPaint 3D
Channel.
-
参数
-
[in]
|
bg
|
Pass
true
to get the background color settings or
false
for the foreground color settings.
|
[in]
|
channelid
|
The channel to get the color settings for e.g.
CHANNEL_COLOR
.
|
-
返回
-
The color settings for the global background or foreground.
◆
GetSelectedSingleColorSettings()
Gets the settings for the currently selected channel in
BodyPaint 3D
。若
GetMultiMode()
is on and there are multiple channels selected then it is possible to specify the channel.
-
参数
-
[in]
|
bg
|
Pass
true
to get the background color settings or
false
for the foreground color settings.
Special exception, set to
NOTOK
to use the selected background color.
|
[in]
|
channelid
|
The specific channel to get the color settings for, e.g.
CHANNEL_COLOR
, if
GetMultiMode()
is enabled and there are multiple channels selected.
|
-
返回
-
The color settings for the global background or foreground.
◆
SetSelectedColorSettings()
static void SetSelectedColorSettings
|
(
|
Bool
|
bg
,
|
|
|
Int32
|
channelid
|
|
)
|
|
|
|
static
|
Sets which channel is selected.
-
参数
-
[in]
|
bg
|
Pass
true
to get the background color settings or
false
for the foreground color settings.
Special exception, set to
NOTOK
to use the selected background color.
|
[in]
|
channelid
|
The specific channel to get the color settings for, e.g.
CHANNEL_COLOR
.
|
◆
GetGlobalChannelEnabling()
static
Bool
GetGlobalChannelEnabling
|
(
|
Int32
|
channelid
|
)
|
|
|
static
|
Gets which channel is selected/enabled. If
GetMultiMode()
is on then multiple channels could be enabled for painting.
-
参数
-
-
返回
-
true
if the channel is enabled, otherwise
false
.
◆
SetGlobalChannelEnabling()
static void SetGlobalChannelEnabling
|
(
|
Int32
|
channelid
,
|
|
|
Bool
|
enable
|
|
)
|
|
|
|
static
|
Sets which channel is selected/enabled. If
GetMultiMode()
is
true
then it is possible to enable multiple channels for painting.
-
参数
-
[in]
|
channelid
|
The ID of the channel to enable e.g.
CHANNEL_COLOR
.
|
[in]
|
enable
|
Pass
true
to enable the channel or
false
to disable it.
|
◆
GetMultiMode()
static
Bool
GetMultiMode
|
(
|
|
)
|
|
|
static
|
若
GetMultiMode()
is enabled then multiple channels can be selected/enabled in
BodyPaint 3D
.
-
返回
-
The state of the MultiMode switch.
◆
SetMultiMode()
static void SetMultiMode
|
(
|
Bool
|
multi
|
)
|
|
|
static
|
Sets the state of the MultiMode switch in
BodyPaint 3D
。若
GetMultiMode()
is enabled then multiple channels can be selected/enabled in
BodyPaint 3D
.
-
参数
-
[in]
|
multi
|
Pass
true
to enable or
false
to disable the MultiMode switch.
|
◆
ToggleFgBg()
static
Bool
ToggleFgBg
|
(
|
void
|
|
)
|
|
|
static
|
Toggles the Foreground and Background colors.
-
返回
-
true
if successful, otherwise
false
.
◆
GetActiveColorPreset()
Gets the active color preset.
-
返回
-
The paint settings for the color preset.
◆
SetActiveColorPreset()
Private
.
◆
SaveColorSettings()
Private
.
◆
DefineColorPreset()
Private
.