Hey Chad, Thanks for your reply! I thought so that it was not possible because i tried every possibility :P.
Just one more thing, in arrays we have "Add New Item" button, is there a preset way of adding it in my AETemplate or by using "AEnewNonNumericMultiAddNewItem". Thanks. D. On Thursday, March 3, 2016 at 10:31:31 PM UTC+1, Chad Vernon wrote: > > 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/9923ca34-e8a3-4560-99c8-89380394d9fb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
