What is New in S22¶
S22¶
Auto Completion Dummy Package¶
New Viewport Foundation¶
Note
All tag that draw something in the viewport should be registered with the flag TAG_IMPLEMENTS_DRAW_FUNCTION.
The next method are removed:
LodObject.GetDisplayEOGLDescID()
removed.BaseDraw.DrawScene()
removed.BaseDraw.GetHighlightFramebuffer()
removed.
UV¶
The UV workflow as been improved with few functionalities:
c4d.IsUVToolMode()
to know if the uv mode is enable.c4d.modules.bodypaint.UpdateMeshUV()
to update the uv mesh representation.TempUVHandle.SetUVPointSelectionFromTextureView()
to define UV point selection.
2 new document modes:
Muvedges To works on UV edge.
Muvon To work on UV.
3 new UV commands:
MCOMMAND_MIRRORSELECTION To mirror the current selection.
MCOMMAND_UVUNWRAP To unwrap the current UV.
MCOMMAND_UVWELDRELAX To weld and relax the current UV.
MODELING¶
Few modeling tools as been re-written, providing new scripting controls for:
Loop Selection (ID_MODELING_LOOP_TOOL).
Ring Selection (ID_MODELING_RING_TOOL).
Outline Selection (ID_MODELING_OUTLINE_SELECTION_TOOL).
Fill Selection (ID_MODELING_FILL_SELECTION_TOOL).
Python Field¶
The default code of the Python Field Object and Python Field Layer was improved and provide now 4 predefined methods:
SampleValue to sample the value for each element.
SampleColor to sample the color for each element.
SampleAlpha to sample the alpha for each element.
SampleDir to sample the direction for each element.
Fixes¶
Fixed an issue with
c4d.SpecialEventAdd()
accepted only int while it should be uint.Fixed an issue where
c4d.modules.sculpting.SculptTag
was not retrievable from Cinema 4D.Fixed an issue with
GvNodeMaster.Execute()
didn’t work properly.
Examples¶
New examples:
Material Set To Selected Poly.
Apply the selected material to selected polygons on the selected object.
-
Creates a ToolData with a linkBox on it where it’s possible to drag and drop an object.
When this linked object is clicked, its cloned and added to the document in a random position.
Documentation¶
Fixed title parameter name previous written text for
c4d.gui.InputDialog()
.Fixed id parameter name previous written segment for
SplineObject.SetSegment()
.
Fixed thread parameter types for
c4d.documents.AddMarker()
.Fixed bt parameter types for
BaseDocument.ExecutePasses()
.Fixed cd parameter types for
c4d.gui.ShowPopupDialog()
.Fixed selected parameter type for
ColorSwatchGroup.AddColor()
.Fixed category parameter type for
ColorSwatchData.GetGroupCount()
.Fixed src parameter type for
FieldOutput.CopyArrayContentFrom()
.Fixed mode parameter type for
BrushDabData.GetStencilColor()
.Fixed snapmode parameter type for
c4d.modules.snap.IsSnapEnabled()
.Fixed snapmode parameter type for
c4d.modules.snap.EnableSnap()
.Fixed snapmode parameter type for
c4d.modules.snap.GetSnapSettings()
.Fixed snapmode parameter type for
c4d.modules.snap.SetSnapSettings()
.Fixed bd parameter type for
c4d.modules.snap.SetQuantizeStep()
.Fixed bd parameter type for
c4d.modules.snap.GetWorkplaneMatrix()
.Fixed p1, p2, p3, p4 not marked as optional parameters
c4d.plugins.GeLoadString()
.Fixed icon parameter type for
c4d.plugins.RegisterToolPlugin()
.Fixed icon parameter type for
c4d.plugins.RegisterSculptBrushPlugin()
.Fixed icon parameter type for
c4d.plugins.RegisterCommandPlugin()
.Fixed res parameter type for
c4d.plugins.RegisterFalloffPlugin()
.Fixed icon, disklevel, res parameter types for
c4d.plugins.RegisterTagPlugin()
.Fixed disklevel, res parameter types for
c4d.plugins.RegisterShaderPlugin()
.Fixed icon, disklevel, res parameter types for
c4d.plugins.RegisterObjectPlugin()
.Fixed icon, disklevel parameter types for
c4d.plugins.RegisterNodePlugin()
.Fixed res parameter type for
c4d.plugins.RegisterSceneLoaderPlugin()
.Fixed res parameter type for
c4d.plugins.RegisterSceneSaverPlugin()
.Fixed res parameter type for
c4d.plugins.RegisterDescription()
.Fixed op parameter type for
BaseDraw.SetMatrix_Matrix()
.
Fixed th, prog, wprog not marked as optional parameters for
c4d.documents.RenderDocument()
.Fixed thread not marked as optional an parameter for
c4d.documents.LoadDocument()
.Fixed registerUndo not marked as optional an parameter for
TempUVHandle.SetUVWFromTextureView()
.Fixed pred not marked as optional an parameter for
BaseObject.MakeTag()
.Fixed pred not marked as optional an parameter for
BaseObject.MakeVariableTag()
.Fixed pred not marked as optional an parameter for
BaseObject.InsertTag()
.Fixed nb not marked as optional an parameter for
c4d.VertexColorTag.SetColor()
.Fixed v not marked as optional an parameter for
PriorityData.__init__()
.Fixed v not marked as optional an parameter for
InExcludeData.__init__()
.
Fixed return type for
BaseDocument.GetLayerObjectRoot()
.Fixed return type for
BaseList2D.GetBit()
.Fixed return type for
BaseList2D.GetBit()
.
Fixed
c4d.CustomIconSettings.GetCustomIcon()
is a static function not a method.
S22.114 - SP1¶
API¶
Added
TempUVHandle.GetUVEdgeSel()
.Added
UVWTag.ClearPinSelection()
.Added
UVWTag.SetPinSelection()
.Added
UVWTag.AddToPinSelection()
.Added
UVWTag.GetPinSelection()
.
Fixes¶
Fixed an issue with Python not returning
c4d.Material
.Fixed an issue with Python not returning
c4d.LayerShader
.Fixed an issue with the texture preview size
Fixed an issue with
BaseDrawHelp.GetMg()
.Fixed an issue with
BaseDraw.DrawTexture()
opacity not stacking correctly.
Examples¶
New examples:
-
Copies the UV seams to the edge polygon selection.
Adds Point Selection To UV Point Pinned.
Adds the polygon point selection to the uv points pinned.
Removes Selected Point to UV Point Pinned.
Removes the polygon point selection to the uv points pinned.
-
Sets the polygon point selection to the uv points pinned.
API Changelist¶
See API Changelog S22 page.