the3dadvantage / modeling-cloth Goto Github PK
View Code? Open in Web Editor NEWCreate real-time cloth-like behavior in meshes in Blender
License: MIT License
Create real-time cloth-like behavior in meshes in Blender
License: MIT License
@the3dadvantage
I tried it and it worked really well, except for the grab tool. I tried clicking around and pulling but it just didn't work. I really love the addon, it really speeds up cloth stuff. Thanks :)
btw is there a feature to collide with other objects? that would be amazing ;)
There is a bug in the collision system when the collider object has shape keys. I'm using: me = ob.to_mesh() to get the location of the vertices with modifiers applied, for armatures and stuff. When I do bpy.data.meshes.remove(me), the shape keys from the duplicate mesh are still in bpy.data.shape_keys. They keep piling up until I run out of ram. I can't figure out a way around this. If anyone has a suggestion please let me know.
Thanks!
Hello,
Sorry about this noob question. Where I put this in the blender? Directory/Folder?
Thanks a Lot,
Moacir Jr.
Hello
I use this great addon on blender 2.79 very well,
but on blender 2.79.4 get this error
Traceback (most recent call last):
File "/home/bm/.config/blender/2.79/scripts/addons/UVShape.py", line 395, in execute
create_uv_shape()
File "/home/bm/.config/blender/2.79/scripts/addons/UVShape.py", line 341, in create_uv_shape
uv_to_shape_key()
File "/home/bm/.config/blender/2.79/scripts/addons/UVShape.py", line 238, in uv_to_shape_key
divide_garment(ob, dict)
File "/home/bm/.config/blender/2.79/scripts/addons/UVShape.py", line 210, in divide_garment
linked = find_linked(ob, vert, v_list)
File "/home/bm/.config/blender/2.79/scripts/addons/UVShape.py", line 189, in find_linked
vert = new_verts[-cull]
TypeError: The numpy boolean negative, the `-` operator, is not supported, use the `~` operator or the logical_not function instead.
location: <unknown location>:-1
Please, update it.
Thank you for this super addon!
I just downloaded the latest version (28-jan) of the addon.
When clicking "Select Pins" while in edit mode, the following error is thrown:
Traceback (most recent call last):
File "/Users/robw/Library/Application Support/Blender/2.79/scripts/addons/Modeling-Cloth-master/ModelingCloth.py", line 1295, in execute
bpy.ops.object.select_all(action='DESELECT')
File "/private/var/folders/41/lg3yp2gn7652vfg5m5fmg0dr0000gn/T/AppTranslocation/F8C9C582-44C4-42E7-9FC0-24E7FA27D743/d/blender-2.79.0.app/Contents/Resources/2.79/scripts/modules/bpy/ops.py", line 189, in __call__
ret = op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.select_all.poll() failed, context is incorrect
location: <unknown location>:-1
Clicking the Select Pins button in Object mode works fine.
To reproduce on Blender 2.79: take default cube, mark as Modeling Cloth, hit TAB to go to edit mode, click "Select Pins".
I cannot produce on the daily build (MacOS, 2.79.2), as the addon doesn't seem to work at all in that version.
Hi! I love this addon, so first of all, THANK YOU for making it available!
I have an issue with sharp corner colliders and tried some workarounds, with no success. Unfortunately I know no python, even though your plugin certainly is very inspiring as a reason to start studying it.
On this case, the cube, what I've tried so far is this:
adding some collide margin to the collider object seems to help a bit, because of the distance, but I have to use extremely high value that leave a big gap & the cloth seems to get more slippery on it (?)
I attached some gifs of what happens depending on the cloth subdivision. It seems to happen when the faces don't fall flat against the collider. Again, I don't know python and I apologize if this doesn't help much.
Hope this can be useful to anyone willing to check this out, or if there's a workaround I'm very interested in knowing it. Thanks!
Planning to add a new vertex group that would control the mass at each vertex. Having trouble accessing vertex weights quickly because of python api limitations. Looking for a way around this... For now I can include a button that updates them once.
https://imgur.com/a/suSt8rM - what the file currently looks like
I have sew force at max, continous update enabled. No idea what's wrong with it, it's just no doing anything. It's worked sporadically, but right now it is just plain refusing.
I'm using Blender 2.79 on MacOs.
As per you demo on youtube, I created a cube, subdivided it went back to Object mode, marked it Modeling Cloth and hit Play. When setting Inflate to a positive value, the cube inflates.
So far, everything works fine.
When I click Create Pins, I get an error:
Traceback (most recent call last):
File "/Users/robw/Library/Application Support/Blender/2.79/scripts/addons/Modeling-Cloth-master/ModelingCloth.py", line 921, in modal
pos = queryMousePosition()
NameError: name 'queryMousePosition' is not defined
location: <unknown location>:-1
Traceback (most recent call last):
File "/Users/robw/Library/Application Support/Blender/2.79/scripts/addons/Modeling-Cloth-master/ModelingCloth.py", line 921, in modal
pos = queryMousePosition()
NameError: name 'queryMousePosition' is not defined
location: <unknown location>:-1
Would you know how to fix this?
TIA,
Rob van Wees.
Blender 2.79 with macOS Sierra and with High Sierra crashing, minimal re-create is activate modeling_cloth to plane and attempt default collada export.
I just heard about this yesterday and watched your video tutorial.. this looks amazing!
Is there any chance that this addon will be updated for 2.8?
Using Grab on meshes with Array, Bevel, Mirror or Solidify modifiers gives a following error:
Trackback (most recent call last):
File "...\ModelingCloth.py", line 2020, in modal main_drag(context, event)
File "...\ModelingCloth.py, line 1979, in main_drag vidx = [v for v in obj.data.polygons[face_index].vertices]
IndexError: bpy_prop_collection[index]: index 512 out of range, size 256
location: :-1
The error is reproducible 100% of the time and appears when trying to Grab vertices generated by mentioned modifiers (no error when grabbing base vertices). Subdivision Surface, Multiresolution and other modifiers that also generate mesh work just fine. Weird.
Also it would be cool to set a radius and curve falloff for Grab. Just sayin'.
Big shout out to @RichColburn. Thanks for making this addon available. Amazing work!
Just been taking it for a first spin (so way to go). Looking at various sites on the Internet gather this glitch is no new but still thought some feedback could be helpful. I'm Running Blender 2.83 (Win 10). If I add a mesh plane and don’t transform it, then grab works fine. If however I add a mesh plane, transform it (e.g. scale along the X or Y axis), then use grab, then it doesn’t work. Can see that hand Icon but it won’t perform an action.
Hope this issue can be sorted as so far the addon gets a big vote and thanks. : )
Update: Just commenting as I go. Have been able to replicate issue a number of times so not a one-off. Also may be worth noting that if I use grab with the default mesh plane (which works), then transform it and go back to grab I run into the same issue.
I've tried this addon with several versions of Blender and I can't get it to work at all. I've tried to follow the exact steps in the video tutorial, but nothing happens... nothing at all. Grabbing the cloth doesn't make it move, continuous updates does nothing, adding sew line force has no effect. Is this broken or should I keep trying?
Adjustable threshold for stretch. above threshold use bmesh module to split appropriate edges and recalculate mesh data. Reset will have to take original mesh into consideration.
User can choose vertex locations to intentionally create weak spots so a tear can be modeled in advance. Imagine tearing the blender logo out of a flat piece of fabric
Need to explore which properties and setting get saved with the blend file. Might need to use persistent handlers and move custom dictionaries to blender collection properties.
i can't do anything with this add on, i try again and again but there is no way out, please help. i can't even create a cloth simulation with this add on
@the3dadvantage
When I undo something, the cloth goes crazy, if I have pins or something. This is really annoying if I'm trying to do clothing or something complex like that, because I will have to start over again. Re doing won't help, so I'm asking if there is any way it could be fixed. If there is I will be really happy. The addon is amazing, and thanks to it cloth modeling has become fun. Thanks you! :)
Its not a bug, but is it possible to have control over the influence on the pins?
Hi Rich,
The gravity vector seems to be along object-Z, not world-Z. This is a bit confusing. I would expect gravity to follow world-Z.
To reproduce: take the default cube, rotate x*45, mark as Modeling Cloth, set gravity, hit Play.
Is it possible to set the gravity vector to world-Z, or even better: set a custom vector?
Regards,
Rob.
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.