API Changelist R18¶
Note
New additions to the Cinema 4D Python SDK are marked like this throughout the documentation:
New in version R18.057.
Here is the list of all the API additions and changes in the R18 Python API:
R18.011¶
Modules¶
Types¶
Methods¶
ColorSwatchData.LoadGlobalGroup()
ColorSwatchData.SaveGlobalGroup()
ColorSwatchData.LoadDefaultGlobalGroup()
ColorSwatchData.SaveDefaultGlobalGroup()
ColorSwatchData.GetGlobalGroup()
ColorSwatchData.SetGlobalGroup()
Constants¶
c4d.DESCID_ROOT
c4d.DESCID_DYNAMICSUB
Removed ID_MODELING_KNIFE_TOOL
Miscellaneous¶
FalloffData.Draw()
return value changed from bool to DRAWRESULT. Returning a bool is still supported for backward compatibility
R18.020¶
Types¶
c4d.modules.motiontracker.MotionTrackerObject
c4d.modules.motiontracker.MtFootageDataSdk
c4d.modules.motiontracker.Mt2dTrackDataSdk
c4d.modules.motiontracker.Mt2dTrackSdk
c4d.modules.motiontracker.MtDataSdk
c4d.modules.motiontracker.MtTrkGidSdk
Methods¶
VertexColorTag.GetPolygon()
VertexColorTag.SetPolygon()
VertexColorTag.GetPoint()
VertexColorTag.SetPoint()
VertexColorTag.GetColor()
VertexColorTag.SetColor()
VertexColorTag.GetAlpha()
VertexColorTag.SetAlpha()
Mt2dTrackDataSdk.GetTrackCount
Mt2dTrackDataSdk.GetTrackByIndex
Mt2dTrackDataSdk.GetTrackByGid
Mt2dTrackDataSdk.GetTrackIndices
Mt2dTrackDataSdk.GetTrackByName
Mt2dTrackSdk.GetName
Mt2dTrackSdk.GetId
Mt2dTrackSdk.GetStatus
Mt2dTrackSdk.GetFramesWithTrackData
Mt2dTrackSdk.GetDataForFrame
Mt2dTrackSdk.GetDataForCurrentFrame
MtDataSdk.GetNormalisedPosition
MtDataSdk.GetPixelPosition
MtDataSdk.GetCameraSpaceDirection
MtFootageDataSdk.GetFootageName
MtFootageDataSdk.GetFirstFrameNumber
MtFootageDataSdk.GetLastFrameNumber
MtFootageDataSdk.GetResolutionWidthPix
MtFootageDataSdk.GetResolutionHeightPix
MtFootageDataSdk.GetResolutionAspectRatio
MtFootageDataSdk.GetImageAspectRatio
MtFootageDataSdk.GetPixelAspectRatio
MtFootageDataSdk.GetDownsamplingFactor
Parameters¶
The following
c4d.CCurve
methods now accepts 2 optional parameters bUndo and SynchronizeKeys:
c4d.GetMachineFeatures()
New parameter type
TextureTag.GetMaterial()
New parameter ignoredoc
Attributes¶
- Removed ReflectionLayer.name, ReflectionLayer.layerID and ReflectionLayer.flags attributesReplaced by new methods
ReflectionLayer.GetName()
/SetName()
,ReflectionLayer.GetLayerID()
andReflectionLayer.GetFlags()
/SetFlags()
R18.039¶
Types¶
Methods¶
Functions¶
Parameters¶
BaseObject.EvaluateSynchronizedRotation()
New optional parameter applyRotationDescription.GetParameter()
New parameter arc4d.modules.substance.CreateSubstanceShader()
asset parameter can be Nonec4d.utils.InitBakeTexture()
th parameter is optional
Miscellaneous¶
BaseObject.EvaluateSynchronizedRotation()
now returns a bool or a tuple depending on new optional parameter applyRotation
R18.057¶
Parameters¶
BaseObject.GetHierarchyClone()
/BaseObject.GetAndCheckHierarchyClone()
New optional parameters dirty and transc4d.storage.LoadDialog()
/c4d.storage.SaveDialog()
New optional parameter def_filec4d.utils.FitCurve()
New optional parameter btc4d.utils.StringToNumber()
New optional parameter lengthunitBaseDraw.DrawPoints()
vc and vn optional parameters can be NoneDescID.IsPartOf()
cmp parameter can be a int, list orDescID
Miscellaneous¶
GeDialog.AddCustomGui()
/FindCustomGui()
now return aBaseCustomGui
when the type for a custom GUI is unknownBaseObject.GetHierarchyClone()
/BaseObject.GetAndCheckHierarchyClone()
no longer return only None when the cloned object is None. The functions always return a dictionary with clone and dirty keysDescription.GetParameter()
returns only one information container. The function was returning a tuple with two containers: one for standard parameters and one for dynamic parameters