Chad Vernon
  • Home
  • Reel/Resume
  • Work
  • Resources
  • About
  • Contact
sideBar

Search

Categories

  • CG
  • cvxporter
  • Maya
    • API
    • Plug-ins
  • Personal

Archives

  • May 2012
  • March 2012
  • September 2011
  • June 2011
  • March 2011
  • December 2010
  • November 2010
  • September 2010
  • August 2010
  • July 2010
  • May 2010
  • April 2010
  • March 2010
  • December 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007

Rss

  • Main Entries RSS
  • Comments RSS
Home » Resources » Maya API Programming » The Maya Dependency Graph

The Maya Dependency Graph

When writing most Maya plug-ins, knowledge of the Maya Dependency Graph architecture is necessary.  Explanations of the Maya DG can be found in most Maya books and the documentation.  It is basically a node network that passes information from one node to the next.  The most important aspects for a developer to know about the DG are how and when Maya recalculates and propagates data through the graph.

Nodes have a set of inputs and outputs.  The outputs depend on the values of the inputs.  These outputs are said to be dependents of their corresponding inputs and the inputs are said to affect the corresponding outputs.   As an optimization, Maya’s DG is designed to only calculate data when it needs to.  It accomplishes this with a dirty flag on a node’s inputs and outputs.  When an input value is changed, any dependent output is marked dirty.  The output is not actually recalculated.  Any connection to this output is marked dirty and the dirty propagation continues until the end of the graph is reached.  No data recalculation has occurred yet; only the dirty flag has been pushed through the DG.  When Maya requests a DG reevaluation, such as in a screen refresh, Maya will check if a node output is dirty.  If it is, Maya tells the node to evaluate itself.   When that node evaluates, it sees that its inputs are dirty and so asks any connected input node to reevaluate.  This process occurs until the data in the graph is reevaluated and the inputs and outputs are marked clean.

This knowledge is useful when trying to figure out why your node is not being computed.  If a node is not being computed, its outputs are not being requested.

Since descriptions of the Maya DG architecture are already discussed in depth else where, I will not reproduce it here.  I recommend reading more about Maya’s dependency graph architecture in the documentation and in various other Maya books and white papers.

One Response to “The Maya Dependency Graph”

Subscribes to this topic Comment RSS or TrackBack URL

I wouldn’t size to be grateful on your effort to seeing that average ones would have a comprehensive knowledge on Maya.. Please, I Would be grateful if I would be recieving ebooks on Maya. Thanks for your understanding.

Ejike Okorie on October 8th, 2011 at 5:34 pm

Leave A Reply

Allowed tag : <blockquote>, <p>, <code>, <em>, <small>, <ul>, <li>, <ol>, <a href=>..

 Username

 Email Address

 Website

Sticky: Always double check your comment before posting Please Note: Comment Moderation Maybe Active So There Is No Need To Resubmit Your Comments
Home » Resources » Maya API Programming » The Maya Dependency Graph

© 2011 Chad Vernon