Although I see my colored cube in speckle.xyz (commited through blender),
I do not see where this information is stored in the json file. I want to exploit it in Unreal for coloring meshes.
I see only roughness, metalic, emissive.
The reference Id of “colors” does not have anything inside
"colors": [
{
"referencedId": "6910a263613cfd2373a8f9d711d98e94",
"speckle_type": "reference"
}
]
Where is color information ? Check below “MyMaterial”
query{
stream(id:"98fa53b0a6"){
object(id:"13cc003b9be7345d32b0b0e09eb9d321"){
speckleType
data
}
}
}
{
"data": {
"stream": {
"object": {
"speckleType": "Base",
"data": {
"id": "13cc003b9be7345d32b0b0e09eb9d321",
"units": "m",
"objects": [
{
"id": "5b5cb182d8e07d498fa81a6b4cd4e489",
"bbox": {
"id": "290c7bd4faad73938a625fc3df09bb44",
"area": 0,
"units": "m",
"xSize": {
"id": "0de9a0611f92d953116293cdede9e486",
"end": 0,
"start": 0,
"units": "m",
"speckle_type": "Objects.Primitive.Interval",
"totalChildrenCount": 0
},
"ySize": {
"id": "0de9a0611f92d953116293cdede9e486",
"end": 0,
"start": 0,
"units": "m",
"speckle_type": "Objects.Primitive.Interval",
"totalChildrenCount": 0
},
"zSize": {
"id": "0de9a0611f92d953116293cdede9e486",
"end": 0,
"start": 0,
"units": "m",
"speckle_type": "Objects.Primitive.Interval",
"totalChildrenCount": 0
},
"volume": 0,
"basePlane": {
"id": "1904023c0a418e0e352b2c7d1db0392d",
"xdir": {
"x": 0,
"y": 0,
"z": 0,
"id": "93cb376d58d4dc5775859b8f16766152",
"units": "m",
"speckle_type": "Objects.Geometry.Vector",
"totalChildrenCount": 0
},
"ydir": {
"x": 0,
"y": 0,
"z": 0,
"id": "93cb376d58d4dc5775859b8f16766152",
"units": "m",
"speckle_type": "Objects.Geometry.Vector",
"totalChildrenCount": 0
},
"units": "m",
"normal": {
"x": 0,
"y": 0,
"z": 0,
"id": "93cb376d58d4dc5775859b8f16766152",
"units": "m",
"speckle_type": "Objects.Geometry.Vector",
"totalChildrenCount": 0
},
"origin": {
"x": 0,
"y": 0,
"z": 0,
"id": "bf66d65c96b4276cc4ad6ef484fd2a1f",
"units": "m",
"speckle_type": "Objects.Geometry.Point",
"totalChildrenCount": 0
},
"speckle_type": "Objects.Geometry.Plane",
"totalChildrenCount": 0
},
"speckle_type": "Objects.Geometry.Box",
"totalChildrenCount": 0
},
"name": "Cube",
"faces": [
{
"referencedId": "882b36dfe506e2e47a314ef35cda51c9",
"speckle_type": "reference"
}
],
"units": "m",
"colors": [
{
"referencedId": "6910a263613cfd2373a8f9d711d98e94",
"speckle_type": "reference"
}
],
"vertices": [
{
"referencedId": "53863af5bcc8c7f8f9a884756b0fd03f",
"speckle_type": "reference"
}
],
"__closure": {
"53863af5bcc8c7f8f9a884756b0fd03f": 1,
"6910a263613cfd2373a8f9d711d98e94": 1,
"882b36dfe506e2e47a314ef35cda51c9": 1
},
"properties": {
"transform": [
0.31774580478668213,
0,
0,
0.46742820739746094,
0,
0.31774580478668213,
0,
-0.1604529619216919,
0,
0,
0.31774580478668213,
-0.01614813320338726,
0,
0,
0,
1
]
},
"speckle_type": "Objects.Geometry.Mesh",
"renderMaterial": {
"id": "362051e49632edc8f117589b82c79cc2",
"name": "MyMaterial",
"units": "m",
"diffuse": -3407611,
"opacity": 0.8654344081878662,
"emissive": -16185324,
"metalness": 1,
"roughness": 0,
"speckle_type": "Objects.Other.RenderMaterial",
"totalChildrenCount": 0
},
"totalChildrenCount": 3
}
],
"__closure": {
"53863af5bcc8c7f8f9a884756b0fd03f": 2,
"6910a263613cfd2373a8f9d711d98e94": 2,
"882b36dfe506e2e47a314ef35cda51c9": 2
},
"speckle_type": "Base",
"totalChildrenCount": 3
}
}
}
}
}