Scatter3D - specifying marker color and size from the input data

Greetings everyone,

I am new to plotly.js and still getting a feel for it. I’d appreciate any help regarding how within a scatter3d plot I can set both the marker color and size derived from rgb data that is already inherent in the csv file that is the input.

I have attempted to create an array of colors by using the unpack() function that is used in several samples and essentially doing:

var colors_ = { r:unpack(rows, 'r'), g:unpack(rows,'g'), b:unpack(rows,'b'), a:1.0 }

And later on within the marker section apply

marker: {
color: colors_
}

Finally, sizing of the marker based on a function() is eluding me.

If anyone could shed light on how to do this I’d appreciate.