i tried to use the array builder but it didn't work (but may be i didn't understand how to do )
i obtain the input value (i've another array attr for the input) with this code (and that's work):
MArrayDataHandle arrayinDataHandle = block.inputArrayValue(aInColor);
arrayinDataHandle.jumpToElement(plug.logicalIndex());
MDataHandle incolor = arrayinDataHandle.inputValue();
MFloatVector& inCol = incolor.asFloatVector();
so i tried to do same thing for the output:
MArrayDataHandle arrayOutDataHandle = block.outputArrayValue(aOutColor);
arrayOutDataHandle.jumpToElement(plug.logicalIndex());
MDataHandle outColor = arrayOutDataHandle.inputValue();
outColor.set(resultColor);
and here the shader connected to the output is always black and my node doesn't work.
if you think that databuilder is a solution can you send me exemple of code to do output attr please?!
thanks in advance.