It is nice to isolate the relevant code, it is nicer to make it able to be run...
Anyway, when I look at the reference you link to, I see beginRaw() used only in a 3D context. Otherwise, the examples use beginRecord().
Anyway, when I look at the reference you link to, I see beginRaw() used only in a 3D context. Otherwise, the examples use beginRecord().