SendModelingCommand + Bevel
-
On 24/09/2013 at 06:25, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 15
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;---------
Hello can I ask what changed with SendModelingCommand and Bevel for COFFEE scripts?this is working in R14
var bc = new(BaseContainer);
bc->SetData(MDATA_BEVEL_OFFSET1 , 2);
SendModelingCommand(ID_MODELING_BEVEL_TOOL, NULL, op, bc, MODIFY_POLYGONSELECTION);and this not for R15 even if I change ID to 431000015
var bc = new(BaseContainer);
bc->SetData(MDATA_BEVEL_OFFSET_MODE , 2);
bc->SetData(MDATA_BEVEL_RADIUS , 1/2.0);
SendModelingCommand(ID_MODELING_BEVEL_TOOL, NULL, op, bc, MODIFY_POLYGONSELECTION);Thanks for any info!
-
On 24/09/2013 at 09:00, xxxxxxxx wrote:
Hi
Work for me.
But i made from maxon(their copyrights) bevel tool, py-modifier version(currently undecorated)
http://imm.io/1gIMc -
On 24/09/2013 at 11:39, xxxxxxxx wrote:
That looks nice, but I am looking for coffee way, looks like new bevel isnt supported by it, good to know python works, thanks for info.
Can anyone confirm that coffee support was dropped?
-
On 24/09/2013 at 23:58, xxxxxxxx wrote:
Hi,
ID_MODELING_BEVEL_TOOL is no more valid. 431000015 is the new command ID (you can find it in the Customize Commands dialog). This is the same for all APIs in CINEMA.
For more information please have a look at this recent thread:
https://developers.maxon.net/forum/topic/7446/9267_new-bevel-tool-and-sendmodellingcommand&PID=36653#36653Regards,
-
On 25/09/2013 at 01:21, xxxxxxxx wrote:
Thanks for reply, but I explained in first post I tried directly with ID number and it doesn't work..
in R15 this returns 0 in console:
var temp = SendModelingCommand(431000015, NULL, op, bc, MODIFY_POLYGONSELECTION);
println(temp);and R14 returns 1 in console:
var temp = SendModelingCommand(ID_MODELING_BEVEL_TOOL, NULL, op, bc, MODIFY_POLYGONSELECTION);
println(temp);given that 1 polygon was selected in both cases.
-
On 25/09/2013 at 02:09, xxxxxxxx wrote:
Sorry, I didn't read your first post carefully.
You now have to pass the document to SendModelingCommand() for the new bevel command to work:
SendModelingCommand(431000015, doc, op, bc, MODELINGCOMMANDMODE_POLYGONSELECTION)
Also you should pass a MODELINGCOMMANDMODE_ value instead of a legacy enum value (MODIFY_).
-
On 25/09/2013 at 06:11, xxxxxxxx wrote:
thats it, thanks a lot!