Found the solution here it is for anyone else who needs it or will need it
in future:
initialize()
cAttr = OpenMaya.MFnCompoundAttribute()
cAttr.create("compoundArray", "cArray")
cAttr.setArray(True)
cAttr.setUsesArrayDataBuilder(True) // gives the main functionality for the
array of compound array
compute()
inputArray = dataBlock.inputArrayValue(cArray)
outBuild = inputArray.builder()
for i in range(0, n):
outBuild.addElement(i)
inputArray.set(outBuild)
--
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/6cbd3104-9065-4cc7-8d51-2b571204a135%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.