#include <c4d_basedocument.h>
Holds information data about a layer in a document.
公共成员函数 |
|
| LayerData () | |
Public Attributes |
|
| Bool | solo |
| Bool | view |
| Bool | render |
| Bool | manager |
| Bool | locked |
| Bool | generators |
| Bool | deformers |
| Bool | expressions |
| Bool | animation |
| 向量 | color |
| Bool | xref |
| LayerData | ( | ) |
Default constructor.
| Bool solo |
Solo Mode.
// Get the LayerData. const LayerData * data = layer-> GetLayerData (doc, true ); LayerData newdata(*data); // Set the solo mode to false newdata.solo = false ; doc-> StartUndo ();
// Set the new layer data with the changed solo mode. doc-> AddUndo (UNDO_CHANGE, layer); layer-> SetLayerData (doc, newdata);
// Clear the Solo bit. doc-> AddUndo (UNDO_BITS, doc); doc-> ChangeNBit ( NBIT::SOLO_LAYER , NBITCONTROL::CLEAR ); doc-> EndUndo (); EventAdd ();
| Bool view |
Visible in editor view.
| Bool render |
Visible in render view.
| Bool manager |
Visible in Object Manager and Timeline.
| Bool locked |
Not selectable and no modification possible, grayed out in Object Manager.
| Bool generators |
Generators on/off.
| Bool deformers |
Deformers on/off.
| Bool expressions |
Expressions on/off.
| Bool animation |
Animation on/off.
| 向量 color |
Layer color.
| Bool xref |
Import with XRef.