This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from specklepy.objects import Base | |
from specklepy.api import operations | |
from specklepy.api.wrapper import StreamWrapper | |
from specklepy.transports.memory import MemoryTransport | |
def copy_object_to_stream( | |
obj_url: str, | |
target_stream_url: str = None, | |
commit_msg: str = None, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import c4d | |
import requests | |
import c4d.documents as doc | |
from specklepy.api.wrapper import StreamWrapper | |
from specklepy.logging.exceptions import SpeckleException | |
# the url to the stream or branch you want to send to (if not a branch url, it will default to the main branch) | |
STREAM_URL = "https://speckle.xyz/streams/<STREAM_ID>/branches/<BRANCH_NAME>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import streamlit as st | |
from typing import List | |
import pandas as pd | |
import plotly.express as px | |
from specklepy.objects import Base | |
def simplify_joints(joints: List[Base]) -> dict: | |
"""Takes a list of joint objects and returns a list of dicts that can be used to construct dataframe rows""" | |
return [ |