Jump to content

vertex-corner script


proces2
 Share

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...