Colorchooser in 2024
-
Trying to test in R2024 this SDK example from Github gets error:
Traceback (most recent call last): File "scriptmanager", line 60, in <module> File "scriptmanager", line 46, in main TypeError: argument 1 must be c4d.Vector4d, not ColorA64
Seems that datatype was changed but with no log in changelist and colorchooser API documentation.
-
Hi @mikeudin thanks a lot for the report, this is a regression due to a last minute optimization within the internal Python API parsing done for which bring around 20% performance boost of the Python Effector in 2024.0.
So any other classic API (c4d module) previously accepting a maxon.Vector or maxon.Color/A as an argument will be impacted (only ColorSwatchGroup.SetColor and ColorSwatchGroup.AddColor are affected by these changes)
With that's said I was never a big fan of mixed datatype from classic API and maxon API, so even if this is a regression I think I prefer the new behavior. I will discuss that internally and see what is the outcome. I will keep you posted.
Cheers,
Maxime.