I would need a Python function that sends an obj-file to a Speckle stream and wonder if there are an example available?
Hey @MaxT
i can’t find a good example for obj upload in python right now, but we can piece it together.
The file upload api is the same mechanism, that we use for blobs. We have an example of that in the automate skd here.
The important bit you’d need to modify there, is the api route, you send the obj to. To trigger a file import job, you have to use the /api/file/:fileType/:streamId/:branchName?
route.
LMK if you need more help here
Thanks a lot, just as useful would be to have a python script that creates OBJ from a stream.
Working on it