Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to_cn_string (implemented in this issue) #94

Open
dmarx opened this issue Jun 3, 2023 · 1 comment
Open

to_cn_string (implemented in this issue) #94

dmarx opened this issue Jun 3, 2023 · 1 comment

Comments

@dmarx
Copy link
Owner

dmarx commented Jun 3, 2023

def kf_to_cn_string(curve):
    return ','.join(
        [f"{kf['t']}:({kf['value']})" 
         for kf in curve.to_dict()['curve'].values()
        ])

# vktrs
kf_to_cn_string(driving_signal_kf)
@dmarx
Copy link
Owner Author

dmarx commented Jun 16, 2023

^ assumes linear interpolation, need to tweak to check if that's what's being used and iterate over intermediate keyframes if yes. also would be nice if i had a way of incorporating evaluatable math strings in this whole thing..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant