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

Node Issue: curveInfo, once calculates more knots, wont calculate less knots

0 REPLIES 0
Reply
Message 1 of 1
16497643852
301 Views, 0 Replies

Node Issue: curveInfo, once calculates more knots, wont calculate less knots

Hello Guys,

I have been facing an issue with maya curveinfo node,

 

so i have an eg(excuse the names),
cube_cone_curves
i created cube curve by snapping ep curve on cube poly
and then created another curve snapping points on cone poly

and parented both the curveShapes, with below command
parent -r -s <curveShapeName> <transformName>;

 

and then duplicated curves and and renamed again the curves and shapes to avoid name clashes

 

Now the problem begins
firstcase:-
1 transform 2 shapes,
i want "knot values" of both the shapes, so i create a curveinfo node and gave inputCurve for cubeShape 1
query knot values with
cmds.getAttr("curveInfo3.knots")

disconnect and connect again inputCurve for Coneshape 2
query knot values with
cmds.getAttr("curveInfo3.knots")

 

secondcase:-
1 transform 2 shapes,
i want "knot values" of both the shapes, so i create 2 curveinfo nodes and connect cubeShape 1 and coneShape 2 to curveInfo 1 and curveInfo 2
query knot values with
cmds.getAttr("curveInfo1.knots")
cmds.getAttr("curveInfo2.knots")

if you see the results its different
12 knots for cone
18 knots for cube

 

There are workarounds but needed to bring to your notice,
it makes it difficult to use single curveinfo for multiple curves(during for loop, connect and disconnect to multiple curves), it might give wrong values
or i also might be wrong its purpose is to be used once
and for second curve we need new curveInfo, waiting for your feedback

 

tried attaching .ma file for ref but not able to, let me know the steps for uploading if needed

Tags (3)
Labels (2)
0 REPLIES 0

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report