Hi everyone,
R2023 has issue with normal modeling commands, like Normal Move.
R26, R25 and previous still working fine.
For ex. this Python Generator has no effect over polygon objects:
from typing import Optional
import c4d
doc: c4d.documents.BaseDocument # The document evaluating this python generator
op: c4d.BaseObject # The python generator
hh: Optional["PyCapsule"] # A HierarchyHelp object, only defined when main is executed
def main() -> c4d.BaseObject:
childOp = op.GetDown()
cloneOp = (childOp.GetDeformCache() or childOp.GetCache() or childOp).GetClone()
if cloneOp.CheckType(c4d.Opolygon):
cloneOp.GetPolygonS().SelectAll(cloneOp.GetPolygonCount())
bc = c4d.BaseContainer()
bc.SetData(c4d.MDATA_NORMALMOVE_VALUE, 100.0)
c4d.utils.SendModelingCommand(
command=c4d.ID_MODELING_NORMALMOVE_TOOL,
list=[cloneOp],
mode=c4d.MODELINGCOMMANDMODE_POLYGONSELECTION,
bc=bc,
doc=doc,
)
childOp.Touch()
return cloneOp