Go Back   AC3D Forums > Technical > AC3D Developers
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 24th February 2010, 04:17 PM   #1
wegnif
Junior Member
Member
 
Join Date: Oct 2009
Posts: 10
Default Bevel Object From Plugin

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
wegnif is offline   Reply With Quote
Old 24th February 2010, 06:06 PM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,382
Default Re: Bevel Object From Plugin

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 ....
Andy is offline   Reply With Quote
Old 25th February 2010, 10:10 AM   #3
wegnif
Junior Member
Member
 
Join Date: Oct 2009
Posts: 10
Default Re: Bevel Object From Plugin

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
wegnif is offline   Reply With Quote
Old 25th February 2010, 02:09 PM   #4
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,382
Default Re: Bevel Object From Plugin

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.
Andy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 10:41 AM.


AC3D Forum
(C) Inivis Limited 2020