This documentation is for the free plugin Py4D in CINEMA 4D R11.5 and not for the C4DSDK of Python in CINEMA 4D R12. For R12, please visit PluginCafe.com
An ID class for description elements. Contains a stack of DescLevel objects.
The description ID is used to exactly identify a parameter value.
Create a DescID instance up to three levels:
dId = c4d.DescID()
dId = c4d.DescID(dId) #copy constructor
dId = c4d.DescID(10) #first level with given ID
dId = c4d.DescID(DescLevel(10), DescLevel(20), DescLevel(30)) #set three levels
| Parameters: |
|---|
Returns the DescID as string. Called if str() is wrapped around an instance of DescID. (see __str__).:
dId = c4d.DescID(c4d.DescLevel(30))
print dId # output '(30, 0, 0)'
| Return type: | str |
|---|---|
| Returns: | The DescID as string. |
Returns the result of popping shift levels from the bottom of the stack:
dId = c4d.DescID(c4d.DescLevel(30), c4d.DescLevel(40), c4d.DescLevel(50))
diD<<2
| Raises IndexError: | |
|---|---|
| Raise if other is out of depth. | |
| Parameter: | other (int) – Number of levels to pop, 0 <= shift < GetDepth(). |
| Return type: | DescID |
| Returns: | Result. |
Returns the level at position key in the stack:
dId = c4d.DescID(c4d.DescLevel(30), c4d.DescLevel(40), c4d.DescLevel(50))
diD[2]
| Raises IndexError: | |
|---|---|
| Raise if key is out of depth. | |
| Parameter: | key (int) – Position, 0 <= shift < GetDepth(). |
| Return type: | DescLevel |
| Returns: | The level at the specified position. |
Return the depth.
| Return type: | int |
|---|---|
| Returns: | The depth. |