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

Reply
 
Thread Tools Display Modes
Old 5th July 2005, 09:51 AM   #1
Dennis
Senior Member
Professional user
 
Dennis's Avatar
 
Join Date: Jul 2003
Posts: 899
Default 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.
Dennis is offline   Reply With Quote
Old 5th July 2005, 11:54 AM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,452
Default

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
Andy is offline   Reply With Quote
Old 5th July 2005, 02:54 PM   #3
Dennis
Senior Member
Professional user
 
Dennis's Avatar
 
Join Date: Jul 2003
Posts: 899
Default

Quote:
Feel free to add to this and release it in the plugins forum section
Perfect - I'll give this a try this evening and post it as a downloadable plugin as well.

Thanks!
Dennis
Dennis 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 08:42 AM.


AC3D Forum
(C) Inivis Limited 2020