![]() |
#1 |
Junior Member
Member
Join Date: Oct 2009
Posts: 10
|
![]()
I would like to bevel an object from inside a plugin, similar to the Surfaces->Bevel dialog, but I don't see any function to do this.
Any hints? Thanks, Bill |
![]() |
![]() |
![]() |
#2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
![]()
start ac3d with -debug and watch the ouput when you execute a command from the menu. Then you can use the same command name in tcl_command("ac3d ....
|
![]() |
![]() |
![]() |
#3 |
Junior Member
Member
Join Date: Oct 2009
Posts: 10
|
![]()
Andy,
Thank you, this was an interesting feature of AC3D of which I was not aware. For future reference, there are two 'prefs' variables which control bevelling, "prefs_bevel_indent" and "prefs_bevel_out". Before calling the Tcl command "surface_bevel", you should set those two variables using Tcl commands. Is there any way to set variables using the C API? I tried both prefs_append_prefspec and ac_create_and_link_pref, and neither changed the current value of the variable, probably because it already exists. Regards, Bill |
![]() |
![]() |
![]() |
#4 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
![]()
tcl_command("set prefs_bevel_indent 1.0");
should work. There are probably other ways of updating the prefs but I can't check at the moment. |
![]() |
![]() |
![]() |
|
|