-
Notifications
You must be signed in to change notification settings - Fork 269
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
Tutorial for mesh distortion in Blender Python #1401
Conversation
Signed-off-by: Mabel Zhang <[email protected]>
Signed-off-by: Mabel Zhang <[email protected]>
Signed-off-by: Mabel Zhang <[email protected]>
Signed-off-by: Mabel Zhang <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #1401 +/- ##
==========================================
+ Coverage 62.22% 63.52% +1.30%
==========================================
Files 316 317 +1
Lines 24317 25253 +936
==========================================
+ Hits 15131 16043 +912
- Misses 9186 9210 +24
Continue to review full report at Codecov.
|
Signed-off-by: Mabel Zhang <[email protected]>
Works as expected! imho I would personally prefer if we didn't have to use scripting inside blender or blender GUI at all to produce results, like instead of writing file_path = '/path/to/file.dae'
object_prefix = 'Cube'
distort_extent = 0.1 # float in range [0, 1]
method = 'deform' # method of distortion
sys.argv = ['distort_mesh.py', file_path, object_prefix, distort_extent, method]
exec(open('/path/to/distort_mesh.py').read()); inside the blender console, having them as a part of the script, plus a |
@mabelzhang friendly ping :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Mabel Zhang <[email protected]>
Thanks! I didn't know you could invoke Blender from the regular command line 😅 I had looked into it before but landed on something that didn't work 😅 |
Signed-off-by: Mabel Zhang <[email protected]>
Signed-off-by: Mabel Zhang <[email protected]>
Thank you for catching that. Yeah I adjusted the |
@mayman99 Sorry for the long delay, and thank you for pressing charge. We have an active budget for the supporting project again, so I can spend time on this again :) Ready for another pass. |
Codecov Report
@@ Coverage Diff @@
## main #1401 +/- ##
==========================================
+ Coverage 63.57% 63.59% +0.02%
==========================================
Files 330 330
Lines 25926 25925 -1
==========================================
+ Hits 16482 16487 +5
+ Misses 9444 9438 -6
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the command line usage!
lgtm 👍
🎉 New feature
Blender Python script and tutorial for programmatically distorting 3D meshes.
Upstreaming from Project DAVE.
Summary
See tutorial Markdown file.
Test it
Blender 2.92 (newer might work too) is required - I'm not sure who's the best to review this?
Follow instructions in tutorial.
Check that the tutorial renders correctly by compiling and then navigating in a browser to
ign/build/ignition-gazebo7/doxygen/html/blender_distort_meshes.html
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.