c4d.plugins.BaseDrawHelp
¶
Contains useful data for drawing objects into a BaseDraw view.
c4d.plugins.
BaseDrawHelp
¶
BaseDrawHelp.
__init__
(
bd
,
doc
)
¶
Create a new help object for base draw bd .
Parameters: |
|
---|---|
Return type: | |
Returns: |
The new base draw help object. |
BaseDrawHelp.
GetDocument
(
)
¶
Returns the relevant document for the current draw operation, i.e. the currently active document. Never returns None .
Return type: | c4d.documents.BaseDocument |
---|---|
Returns: | The relevant document. |
BaseDrawHelp.
GetActiveTag
(
)
¶
Returns the currently active tag, or
None
if no tag is active (similar to
BaseDocument.GetActiveTag()
but more efficient since the active tag is cached).
Return type: | c4d.BaseTag |
---|---|
Returns: | The active tag. |
BaseDrawHelp.
GetMg
(
)
¶
Returns the global matrix of the object to be drawn (similar to
BaseObject.GetMg()
but more efficient since the matrix is cached).
Return type: | c4d.Matrix |
---|---|
Returns: | The global matrix. |
BaseDrawHelp.
SetMg
(
mg
)
¶
Sets the matrix returned by
GetMg()
.
Parameters: | mg ( c4d.Matrix ) – New matrix. |
---|
BaseDrawHelp.
GetDisplay
(
)
¶
Retrieves a container with the display mode for the object to be drawn. See Tdisplay.h for values.
Return type: | c4d.BaseContainer |
---|---|
Returns: | The display mode container. |
BaseDrawHelp.
SetDisplay
(
bc
)
¶
New in version R19.
Sets the display mode for the object to be drawn. See Tdisplay.h for values.
Parameters: | bc ( c4d.BaseContainer ) – The new display mode container. |
---|
BaseDrawHelp.
GetViewSchedulerFlags
(
)
¶
Returns the flags which have been passed to
DrawViews()
.
Return type: | int | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: |
Flags:
|
BaseDrawHelp.
IsActive
(
)
¶
New in version R14.014.
Checks if the current object is active.
Return type: | bool |
---|---|
Returns: | True if the current object is active. |
BaseDrawHelp.
IsHighlight
(
)
¶
New in version R14.014.
Checks if the current object is highlighted (i.e. when the user has moved the mouse over it).
Return type: | bool |
---|---|
Returns: | True if the current object is highlighted. |