5th July 2005, 09:51 AM | #1 |
Senior Member
Professional user
Join Date: Jul 2003
Posts: 899
|
Altering crease on multiple objects
I have a model with an array of 30+ objects, and the geometry and shading demanded that I change the crease angle for all objects from 45 down to 35.
It would be nice to have a menu/command where we could change the crease angle for all selected objects instead of going to the property editor for each one. I ended up exporting the specific geometry, doing a search/replace on the "^crease " value in vim, and re-importing, but this is probably not the ideal solution... Dennis. |
5th July 2005, 11:54 AM | #2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Feel free to add to this and release it in the plugins forum section
Put this in crease.tcl, inside your scripts folder Code:
proc send_crease { } { set obs [ac3d get_selected_objects] set quick_crease_angle [.c.e get] puts "setting $quick_crease_angle on $obs" foreach ob $obs { ac3d object_set_crease_angle $ob $quick_crease_angle } ac3d redraw_all } toplevel .c entry .c.e -textvariable quick_crease_angle button .c.b -command send_crease -text "Set crease angle" pack .c.e -side top -fill x pack .c.b -side top |
5th July 2005, 02:54 PM | #3 | |
Senior Member
Professional user
Join Date: Jul 2003
Posts: 899
|
Quote:
Thanks! Dennis |
|
|
|