proces2 Posted March 12, 2003 Share Posted March 12, 2003 I am doing alot of spline modeling in VIZ. i am wondering how to create a script that will do the following: 1. go to vertex level for the selected spline object, then 2. select all vertices, then 3. switch all vertices to 'Corner'. Using the macrorecorder, i can get everything except the switch vertices to 'corner' part. it's completely annoying that vertices always default to 'bezier'. so i am at least hoping i can create a single button that can switch eveything (on a selected object) from bezier to corner. sean Link to comment Share on other sites More sharing options...
abicalho Posted March 12, 2003 Share Posted March 12, 2003 Try this: for i in selection do ( if classof i == line or classof i == splineShape do ( for s in 1 to (numSplines i) do for k in 1 to (numknots i s) do setKnotType i s k #corner updateShape i ) -- end if classof ) -- end for i in selection Alexander Link to comment Share on other sites More sharing options...
proces2 Posted March 12, 2003 Author Share Posted March 12, 2003 Thanks a ton, Alexander. it works perfectly. sean Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now