Ramps don't work in compound attributes.  You have to do a workaround where 
you have a dummy ramp attribute that's not a compound attribute and connect 
whatever ramp you are working with the dummy ramp. Also the ramp evaluation 
methods don't work with ramps in compound attributes so to evaluate the 
data you need to copy the ramp data into another dummy ramp and use the 
evaluate methods on that one.


On Thursday, March 3, 2016 at 5:26:47 AM UTC-8, Dilen Shah wrote:
>
> Hey guys,
>
> Is there a way to create ramp attribute for compound array attributes.
>
> For example: this works AEaddRampControl($nodeName + ".falloff")
>
> But how can i achieve this: AEaddRampControl($nodeName + 
> ".layers[i].falloff")
> always give me error: Error: file: 
> /servers/Software/Autodesk/Maya/2014_ext_sp1/scripts/AETemplates/AEaddRampControl.mel
>  
> line 281: No object matches name: customNode.customNode.layers[0].falloff
>
> i tried this method also string $falloffAttr = "layers["+$i+"].falloff";
> AEaddRampControl ($falloffAttr);
>
> i get this error: Error: file: 
> /servers/Software/Autodesk/Maya/2014_ext_sp1/scripts/AETemplates/AEaddRampControl.mel
>  
> line 487: Found no attribute match for "layers[0].falloff"
>
>
> Any ideas?
>
> Thanks.
>
> Dilen.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/f61fdb95-e94b-47b5-a7b1-b62d9b443374%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to