Custom mat attribute

Currently I am diving deep in to the scriptSOP.
Right now I am looking for a way to attach a custom mat attribute to my primitive.
Following the documentation on attribs with the following information

mat index 1 Material Material SOP

This attribute consists of an ordered list of character strings. The attribute stored with the element is an integer representing the offset into the array of strings. A value outside the bounds of the array is considered to be “not assigned”.

i came up with the following lines

scriptOp.primAttribs.create("mat", ["/abs/path/to/material"])
my_poly = scriptOp.appendPoly( 4 )
my_poly.mat = 0

But this does nothing. The attribute appears and all is fine, but no rendering is happening.
On another note, using the materialSOP does not seem to create any attribute. At least trying to access the mat-attribute or using the SopTo Operators does not show any information, which makes it hard to understand what I am doing wrong.