Load modelΒΆ

In [6]:
from brayns import Client
brayns = Client('localhost:8200')
In [7]:
import os
brayns.add_model(os.getcwd() + '/../../../tests/files/monkey.xyz')
Out[7]:
{u'bounding_box': False,
 u'bounds': {u'max': [6.835937976837158, 4.257812023162842, 4.921875],
  u'min': [-6.835937976837158, -4.257812023162842, -4.921875]},
 u'id': 2,
 u'metadata': {},
 u'name': u'monkey',
 u'path': u'/home/nachbaur/dev/viz.stable/Brayns/python/doc/source/../../../tests/files/monkey.xyz',
 u'transformation': {u'rotation': [0.0, 0.0, 0.0, 1.0],
  u'scale': [1.0, 1.0, 1.0],
  u'translation': [0.0, 0.0, 0.0]},
 u'visible': True}
In [8]:
brayns.show()
SW1hZ2UodmFsdWU9J1x4ZmZceGQ4XHhmZlx4ZTBceDAwXHgxMEpGSUZceDAwXHgwMVx4MDFceDAxXHgwMEhceDAwSFx4MDBceDAwXHhmZlx4ZGJceDAwQ1x4MDBceDAzXHgwMlx4MDJceDAzXHjigKY=