Maya setAttr ed

262 views Asked by At

Sorry guys maybe the question is stupid or even I ask in a wrong way. But I'm totally new with Maya. So hope can get some help here. Thank you so much! The question is: I have a .ma file, and it has something like

setAttr ".ed[6474:6639]" 8053 8052 1 8053 8052 0 ...

  1. what's the meaning of [6474:6639]? Is that the edge sequential number, from edge 6575 to 6639?
  2. Does 8053 8052 8053 8052 mean 8053th point, and so on?
  3. What is meaning of 1 and 0?

Thank you again!!

1

There are 1 answers

0
kartikg3 On

To answer your question:

  1. ".ed[6474:6639]" signifies the edges of the model from indices 6474 to 6639 in sequential order.
  2. Yes. 8053 8052 8053 8052 mean the corresponding vertex indices that would have been set using a previous setAttr call. eg. setAttr ".v[8011:9024]" 0.5 -0.5 0.5 ....
  3. 0 denotes "Hard" and 1 denotes "Smooth" edge.

You can find more information in the setAttr docs here. On that page just look for -type mesh, and you'll find more information.

Hope that was useful.