-
Notifications
You must be signed in to change notification settings - Fork 52
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
Is that possible to create a mesh sequence from Python script, i.e. without loading from a file? #104
Comments
That's an interesting idea. I think it's entirely possible. How would your mesh data be formatted? According to this stack exchange post, Blender can create a mesh from an array of vertex positions (formatted like this: |
Exactly! I will create the meshes first according to that post, and fed the meshes to the API here. |
Ok, I'll see what I can do. I can't promise a timeline, though. |
And what's more, can we use the streaming mechanism, to only generate a frame when requested? Something like: def on_request_frame(frame):
mesh = ... # generate a mesh via Taichi
return mesh
object.mesh_sequence_settings.set_frame_callback(on_request_frame, mode='streaming') |
That sounds a little more tricky but still probably possible.
…On Thu, Aug 20, 2020 at 8:44 PM 彭于斌 ***@***.***> wrote:
And what's more, can we use the *streaming* mechanism, to only generate a
frame when requested? Something like:
def my_frame_generator(frame):
mesh = ...
return mesh
object.mesh_sequence_settings.hook_streaming(my_frame_generator)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABDGYARMOSX3H4UIR3MZUALSBXNRXANCNFSM4QGA3BAA>
.
--
Justin
|
@archibate Are you still working on TaiChi-Blender integration? I'm finally getting around to some Stop Motion OBJ development. I'm working on a feature that lets you create an empty mesh sequence then add new frames to the sequence on-the-fly. Did you still want to integrate with this addon or have you taken a different route? |
Yes, thank for the great project! I studied your addon source code carefully and succeed to support mesh sequence on my own by hooking |
Is your feature request related to a problem? Please describe.
Hi, I'm freshman to both Blender and Stop-motion-OBJ.
Recently I'm working on integrating Taichi into Blender. So that people could make use their own physics engines based on Taichi in Blender.
And it's usually the case that Taichi + Blender users don't want to import a mesh sequence from disk, but generate a mesh sequence via Taichi instead.
So I'd like to add a possibility to create a mesh sequence from Python scripting module.
Describe the solution you'd like
Add an API like this:
Describe alternatives you've considered
We may do them in pure end-user Python script manipulating
mesh_sequence_settings
members.Additional context
For now I use an external script to generate a series of PLY file for creating empty meshes:
and import them into Blender for creating a mesh sequence of length 250.
The text was updated successfully, but these errors were encountered: