Accessing rhino object attributes in Rhino Compute (via ObjectAttribute, ObjectUserData, or any other)

  1. File3dmObject.attributes().layerIndex; works on Rhino Compute.

  2. Similarly, I’d like to access object attributes that is attached to rhino objects either as read through 1) ObjectUserData or 2) ObjectAttribute

My question is: Is it possible to do 2? I have not been able to successfully print this in javascript console.

Thank you!