UNTRIANGULATE command with disabled ANGLE
-
On 23/12/2017 at 03:24, xxxxxxxx wrote:
Hello Plugincafe!
I'm using MCOMMAND_UNTRIANGULATE in my code but by default, it has Evaluate Angle checkbox enabled.
I need to uncheck this option from its base container but I'm getting this error:
AttributeError: 'module' object has no attribute 'IDC_UNTRIANGULATE_ANGLE'#Untriangulate untriangulate_settings = c4d.BaseContainer() **untriangulate_settings[c4d.IDC_UNTRIANGULATE_ANGLE] = False** res = c4d.utils.SendModelingCommand (command = c4d.MCOMMAND_UNTRIANGULATE, list = [poly], mode = c4d.MODELINGCOMMANDMODE_POLYGONSELECTION, **bc = untriangulate_settings,** doc = doc)
is it possible to execute this command with disabled 'Evaluate Angle'?
Cheers!
-Merk
-
On 23/12/2017 at 03:48, xxxxxxxx wrote:
OK. I found a way to solve this.
#Untriangulate untriangulate_settings = c4d.BaseContainer() **untriangulate_settings[c4d.MDATA_UNTRIANGULATE_ANGLE_RAD] = c4d.utils.Rad(90)** res = c4d.utils.SendModelingCommand (command = c4d.MCOMMAND_UNTRIANGULATE, list = [poly], mode = c4d.MODELINGCOMMANDMODE_POLYGONSELECTION, bc = untriangulate_settings, doc = doc)
I simply had to increase angle value, up to 90 degrees to get the same result that can be achieved by unchecking Evaluate Angle checkbox from UNTRIANGULATE command
-
On 26/12/2017 at 03:00, xxxxxxxx wrote:
Hi,
You should use MDATA_UNTRIANGULATE_ANGLE instead to disable angle evaluation for untriangulate command. You just have to set it to False into the settings container.
MDATA_UNTRIANGULATE_ANGLE is currently missing in the Python docs. This will be fixed.