MCurveAttribute in maya 2016

MCurveAttribute in maya 2016

Shkval3d
Participant Participant
562 Views
4 Replies
Message 1 of 5

MCurveAttribute in maya 2016

Shkval3d
Participant
Participant

Hi! is there a way to use MCurveAttribute in maya 2016? I haven't found it in my devkit... 

0 Likes
563 Views
4 Replies
Replies (4)
Message 2 of 5

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

It's a new API introduced since Maya 2016 Extension 2. You can't use it in Maya 2016. Here is a list for new APIs introduced in Maya 2016 Extension 2.

 

Yours,

Li

0 Likes
Message 3 of 5

Shkval3d
Participant
Participant

Thank you! 

is it a proper way to get it in Attribute Editor?

global proc AESplineSpineTemplate( string $nodeName )
{
editorTemplate -beginScrollLayout;

editorTemplate -beginLayout "SplineSpine Attributes" -collapse 0;
editorTemplate -addControl "segments";
editorTemplate -addControl "maxstretch";
editorTemplate -addControl "maxsquash";
editorTemplate -addControl "softness";
editorTemplate -addControl "position";

editorTemplate -endLayout;
editorTemplate -beginLayout "Ramp Attributes" -collapse 0;

falloffCurveAttr -at ($nodeName + ".scaleRamp");

editorTemplate -endLayout;

AEdependNodeTemplate $nodeName;

editorTemplate -addExtraControls;
editorTemplate -endScrollLayout;
}
0 Likes
Message 4 of 5

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

I am not very understand what do you mean by getting it into Attribute editor.

 

MCurveAttribute creates a compound array attribute with position and value float children. 

 

Yours,

Li

0 Likes
Message 5 of 5

Shkval3d
Participant
Participant

Hi. I mean, that I have to write attribute editor template script for my node, if I use a MRampAttribute attribute... 

0 Likes