Friday, September 10th 2010, 5:23am UTC+2

You are not logged in.

  • Login
  • Register

Seppel97

Trainee

Posts: 106

Location: Bremen

Occupation: 3d Artist

1

Saturday, February 6th 2010, 10:30pm

input nodes "collapsen"

Moin Moin,
gibbet ne möglichkeit eine auswahl an input nodes zu "collapsen"?

gruß
sebastian
  • Go to the top of the page

sciloop

Professional

Posts: 774

Location: Hamburg

Occupation: freelancer

2

Sunday, February 7th 2010, 9:42am

Dafür musst Du ein parent attribute in der ::initialize erstellen und dann die betroffenen attribute als childs ausweisen.
Gugg unter MFnCompoundAttribute.
Beim ::addAttribute dann aber nicht mehr alle attribute angeben, sondern nur noch das parent attribute.
Beim ::attributeAffects aber weiter, je nach Sinn, jedes einzelne attribute verwenden. Das parent attribute kann auch das dirty bit tragen.
Aufpassen: wenn man z.B. mit dem Manipulator z.B. die Translationswerte verändert, dann wird nur das parent translate attribute dirty gemacht. Also, alle Fälle beachten!

Das collapsen geht aber nicht in der channel box...
  • Go to the top of the page