benjaminsauder / simplelattice Goto Github PK
View Code? Open in Web Editor NEWA small blender 2.8 addon to make working with lattices simpler.
License: GNU General Public License v3.0
A small blender 2.8 addon to make working with lattices simpler.
License: GNU General Public License v3.0
Hi Benjamin,
SimpleLattice seems to not be working anymore in the latest Blender 2.8 betas. There have been multiple changes to the API. Other add-ons have issues as well.
Thanks in advance for fixing it.
Kind regards,
Metin
This might be a blender bug, but if you apply a lattice to a flat object eg a newly created plane, the lattice won't deform the object. seems like the lattice doesn't like a scale of 0 in one dimension, if it's changed to a very small number instead it works
First of all, thank you for your work!
I tested this on Blender 3.1.2, 3.3.2, 3.4.1 and 3.5.0(alpha), using version 0.1.5 of the addon. It happens on all of them.
The issue is easy to replicate: create a cube primitive (any mesh primitive will do). Instance it using Alt-D. From object context menu choose "Simple Lattice Create". Blender throws the following error:
Python: Traceback (most recent call last):
File "D:\Grafica\Blender 3.4\3.4\scripts\addons_contrib\SimpleLattice\op_LatticeCreate.py", line 209, in execute
self.coords = self.get_coords_from_objects(objects)
File "D:\Grafica\Blender 3.4\3.4\scripts\addons_contrib\SimpleLattice\op_LatticeCreate.py", line 314, in get_coords_from_objects
bpy.ops.object.transform_apply(location=False, rotation=True, scale=False, properties=False)
File "D:\Grafica\Blender 3.4\3.4\scripts\modules\bpy\ops.py", line 113, in call
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Error: Cannot apply to a multi user: Object "Cube.001", Mesh "Cube.001", aborting
Before this I was using version 0.1.2 of the addon and I had no issues using it on instanced objects.
Hi, in Blender 3.5, Simple Lattice is not taking into account the modifier stack when calculating the bounding box. The toggle in the addon's preferences for ignoring modifiers does not make a difference, but is left unchecked.
Here is an example of a simple object with two array modifiers, and the simple lattice is created on top of the bounding box of the geometry prior to the modifiers
I tried using this addon for the last 2 weeks and in almost all instances it let me down. I first thought that modifiers were suspect in this, but nope. The glitchy results occur randomly. Sometimes the lattice is created with a zero scale on a random (not necessarily the active) component. Sometimes across a group of them and mostly the weight map associated with it is created with zero weights. I'm on the official release of Blender 2.8 (2.80.75)
I'm kind of surprised all this could escape your attention. I do hope you get to get it to work.
AJ
Hi Benjamin,
Many thanks for this very useful tool. This should be a default tool in Blender, in my humble opinion.
May I ask for BSpline to be the default interpolation type. This would save users a number of clicks to set all axes from Linear to BSpline interpolation.
Thank you.
Hi, apologies for adding another bug report after you've just updated! I just started using more thanks to update and found this issue-
create any type of curve eg. Add>Curve>Path , apply simple lattice - error message pops up
I also observed similar errors on nurbs surface and text.
Thanks again for the fantastic work!
This bug is not harmful. This bug will disappear when any object added into scene.
The reason why I frequently trigger this bug, is that I use an empty Blender file as my default Blender startup file.
Blender version: 3.3 (Can be reproduced on 3.3. But this bug I have experienced too much times in some old versions of Blender.)
Traceback:
Traceback (most recent call last):
File "E:\Blender\3.3\scripts\modules\bpy_types.py", line 904, in draw_ls
func(self, context)
File "E:\Blender\3.3\scripts\addons_contrib\SimpleLattice\__init__.py", line 152, in context_menu
show_create_op = op_LatticeCreate.Op_LatticeCreateOperator.poll(context)
File "E:\Blender\3.3\scripts\addons_contrib\SimpleLattice\op_LatticeCreate.py", line 128, in poll
if (context.active_object.type in util.allowed_object_types and
AttributeError: 'NoneType' object has no attribute 'type'
Add a None checker for context.active_object
in here:
SimpleLattice/op_LatticeCreate.py
Line 128 in d119c68
Hi BenjaminSauder,
I was really looking forward to having SimpleLattice available for Blender 2.8.
Unfortunately, SimpleLattice is not listed under the search function (F3).
I have also renamed the folder from SimpleLattice-master to simplelattice, without success...
Strangely enough, a SimpleLattice-Object is created when I call the normal Lattice command through the search function.
Win 7 Pro
Build from Today: blender-2.80-a91886e76ebd-win64
GTX 1070
Many Greetings
Hans
thanks for an amazing script by the way, would love to use it with grease pencil objects!
error reads:
Python: Traceback (most recent call last):
File "C:\Users\rich\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\SimpleLattice-master\op_LatticeCreate.py", line 198, in execute
self.add_ffd_modifier(objects, lattice, self.group_mapping)
File "C:\Users\rich\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\SimpleLattice-master\op_LatticeCreate.py", line 337, in add_ffd_modifier
obj.modifiers[ffd.name].show_in_editmode = True
AttributeError: 'NoneType' object has no attribute 'name'
location: :-1
Hi Benjamin,
in the version Dec 22, 2018 you will need several attempts to assign the latticce to an object.
When it finally works, the object has no modifier.
You have to "set Parent to" by hand.
The old version of Dec 19, 2018 works perfectly.
Blender Build from Yesterday: dafaa6f22881
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.