make_bucket_volume_from_obj - jaybgager/tracertools GitHub Wiki

This function converts a locally-stored OBJ file into a neuroglancer volume on a remote bucket.

[!NOTE] This function is experimental and may not work properly with datastacks other than brain_and_nerve_cord. If you created a mesh from scratch, you need to ensure that the coordinates line up with those of your chosen datastack or it will appear distorted and/or in the wrong location.

Arguments:

  • datastack (string, mandatory)
    • the name of the datastack the OBJ file is set up for
  • obj_path (string, mandatory)
    • the absolute path to the OBJ file on your local machine
  • bucket_path (string, mandatory)
    • the absolute path to the folder where you want the NG volume on the bucket
    • last folder in the path will be the top-level folder of the mesh volume
    • e.g. "server://bucket/ng_volumes/volume_01" will fill the volume_01 folder
    • will create new folders where none exist

Returns:

  • creates a mesh volume on the requested bucket using the specified OBJ file

Example

Coming soon.