Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / How to get new animCurve name?
  RSS 2.0 ATOM  

How to get new animCurve name?
Rate this thread
 
38531
 
Permlink of this thread  
avatar
  • JojanPM
  • Posted: 09 January 2010 05:52 AM
  • Total Posts: 4
  • Joined: 09 January 2010 01:45 PM

Hi,

Created animCurve node by using setDrivenKeyframe command. It returns only the number of keyframes set. But I need the name of newly created animCurve node. Is there a simpler way to get this name, other than by making use of some listConnections commands?



Replies: 0
avatar
  • THNKR
  • Posted: 09 January 2010 08:04 AM

Use listConnections `setDrivenKeyframe -q -driven`



Replies: 1
/img/forum/dark/default_avatar.png

No sir.
Suppose i created 3 keys from ‘c.tx’ to ‘b.ry’ like:

setDrivenKeyframe -cd c.tx -dv 0 -v 0 b.ry;
setDrivenKeyframe -cd c.tx -dv 90 -v 90 b.ry;
setDrivenKeyframe -cd c.tx -dv -90 -v -90 b.ry;
(Dint chk in maya; Neglect errors if any!)

Now i need the name of animCurve node (may be something like ‘b_ry’ or ‘animCurveUA1’) connecting ‘c.tx’ and ‘b.ry’. How can i get this? I ve written a general procedure of a dozen lines to find it using ‘listConnections’, skipping blendWeighted and unitConversion nodes. My Qn is: is there any simpler method - say 1 or 2 line code - to find the name of animCurve node connecting ‘c.tx’ and ‘b.ry’ ?

Author: JojanPM

Replied: 09 January 2010 04:50 PM