Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Community
Maya Modeling
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya modeling topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there a way to set the coordinates of curve points?

1 REPLY 1
Reply
Message 1 of 2
DarioBr
364 Views, 1 Reply

Is there a way to set the coordinates of curve points?

Is there a way to set the coordinates of curve points? That would be extremely helpful. Currently I am creating cubes and using curve snap, but I am sure there is a better method.

1 REPLY 1
Message 2 of 2
stuzzz
in reply to: DarioBr

Hello 

Your question miss some important informations. What kind of curve are you doing? CV, EP, bezier? What degree?

by the way here's python snippet that would help:

cmds.selectPref(trackSelectionOrder=True)
indices = cmds.ls( fl=True, orderedSelection = True)
poses= []
for index in indices:
	poses.append(cmds.pointPosition(index, w=True))

cmds.curve(d=3, p=poses)

 

Select your cube's vertices (order matters) then launch this script and it will create a curve having its CVs snapped to the selected vertices.

 

second method (best one?):

Select the edges of the cube then Modify->Convert->polygon Edges to Curves

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report