zizekslorg
When we talk about 'new' support, are we looking at 3.5, 3.6, or something in the 4.0+ range?
Modders discuss the release of Blender 4.1 and the breaking API changes affecting Jedi Academy plugins, specifically the removal of auto-smooth mesh properties. maui.94 introduces an updated skeleton tool with vehicle support and code optimizations.
[2024-03-25 22:39] <zizekslorg> new as in, 3.5 support? 3.6? some other 3.X? 4.0? (edited)
[2024-03-25 22:58] <.somaz> 4.1 should be released in the next 24 hours :x (edited)
[2024-03-25 23:02] <mrwonko> What a great time to be fiddling with the plug-in (edited)
[2024-03-25 23:03] <mrwonko> New as in "came out today"
[2024-03-25 23:03] <mrwonko> 4.0 support has been there for years, as far as I can tell
[2024-03-25 23:09] <.somaz> pretty sure that 4.1 support is as easy as removing/guarding two things / mesh.use_auto_smooth = ..... / mesh.calc_normals_split()
[2024-03-25 23:10] <.somaz> at least thats all I had to do
[2024-03-25 23:15] <i_am_noodle> I can't keep up with so many blender updates
[2024-03-25 23:15] <i_am_noodle> Still using 3.2
[2024-03-26 10:01] <maui.94> Thanks
[2024-03-26 14:01] <maui.94> lol
[2024-03-26 17:43] <cir.ca> https://www.deviantart.com/entar0178/art/Jedi-Academy-Kel-Dor-Jedi-Commission-832134071
[2024-03-26 18:45] <gustavopredador> ok
[2024-03-26 18:56] <mrwonko> https://b3d.interplanety.org/en/showing-indices-for-mesh-vertices-in-blender/
[2024-03-26 18:58] <.somaz> @mrwonko 4.1 is out. 🙃
[2024-03-26 18:58] <mrwonko> So am I
[2024-03-26 18:59] <mrwonko> I'm out and about
[2024-03-26 22:33] <minilogoguy18> It's hard to keep up with all the blender versions (edited)
[2024-03-26 23:50] <maui.94> MrWonko, blender 4.1 is out
[2024-03-26 23:50] <maui.94> No more use_auto_smooth
[2024-03-27 02:47] <zander_nao> https://youtu.be/2UX-d_LrwGA?si=cL75zZvcNL9xXhLG
[2024-03-27 07:12] <mrwonko> I was already made aware less than one page earlier https://discord.com/channels/200934142278369281/1103343134160728144/1222258376864567398
[2024-03-27 07:12] <mrwonko> I don't know what that means
[2024-03-27 08:32] <.somaz> means that: https://discord.com/channels/200934142278369281/1103343134160728144/1221959198510944266
[2024-03-27 12:38] <maui.94> What it means that mesh.use_auto_smooth = True causes an error (JAG2GLM.py)
[2024-03-27 12:39] <maui.94> It now automatically does all that apparently, so I commented that part out of the code and it works for me. (edited)
[2024-03-27 12:39] <maui.94> My skeleton_tool now has extra functions and old code is optimised.
[2024-03-27 12:40] <maui.94> It now supports vehicles aswell. You can parent every object, cap and tag with 1 click and gives you the option to unparent everything aswell whether it be a playermodel or vehicle.
[2024-03-27 12:41] <maui.94> For the ones who'd like to see it while I'm waiting for approval on jkhub: / https://github.com/Mauii/skeleton_tool/tree/main
[2024-03-27 14:08] <.somaz> @Maui why are you importing BVHTree? / https://github.com/Mauii/skeleton_tool/blob/main/__init__.py#L4
[2024-03-27 16:48] <maui.94> I believe that was something from an article I read. I was trying some stuff and that import was part of it apparently. Thanks for the headsup.
[2024-03-27 16:48] <maui.94> What do you think about the code itself though?
[2024-03-27 17:11] <.somaz> Had a quick glance over it and its alright I'd say. Not sure if you wanted to check names for * at the beginning or if its actually ok to be everywhere in the name of the object. But if you wanted to check the first character for it, you should probably use name.startswith('*') instead. The only thing I was wondering about
[2024-03-27 17:17] <maui.94> Yeah I just wanted to check for the * in the name since nobody uses that other than tags.
[2024-03-27 17:18] <maui.94> I appreciate your time and feedback. Do you have other tips or pointers I could use to learn coding on a more advanced level?
[2024-03-27 17:19] <maui.94> The reason why I used "*" is to keep it short but perhaps .startswith might be better
[2024-03-27 17:20] <.somaz> Well, I don't know. Not a professional programmer myself.
[2024-03-27 17:21] <.somaz> ¯\_(ツ)_/¯
[2024-03-27 17:21] <maui.94> Oh, what is your "expertise" then?
[2024-03-27 17:21] <.somaz> Learning by doing is my credo
[2024-03-27 17:21] <maui.94> Fair, mine is: there's always a way to improve yourself
[2024-03-27 17:22] <.somaz> Actually I'm a media technology consultant. With "some" IT experience.
[2024-03-27 17:22] <maui.94> Sounds coolWhen we talk about 'new' support, are we looking at 3.5, 3.6, or something in the 4.0+ range?
4.1 should be released in the next 24 hours. From what I've seen, 4.1 support is as easy as removing or guarding two things: mesh.use_auto_smooth = ... and mesh.calc_normals_split(). At least that's all I had to do to get my environment working.
New as in 'came out today'. 4.0 support has been there for years as far as I can tell, but 4.1 is the immediate change. What a great time to be fiddling with the plug-in. https://b3d.interplanety.org/en/showing-indices-for-mesh-vertices-in-blender/
I can't keep up with so many Blender updates. I'm still using 3.2. It's hard to keep up with the versioning lately.
Blender 4.1 is out and mesh.use_auto_smooth = True definitely causes an error in JAG2GLM.py now. It seems Blender handles that automatically now, so I commented that part out of the code and it works for me.
On that note, my skeleton_tool now has extra functions and the old code is optimized. It supports vehicles as well; you can parent every object, cap, and tag with one click, and it gives you the option to unparent everything whether it's a playermodel or a vehicle. For those who want to see it while I'm waiting for approval on JKHub: https://github.com/Mauii/skeleton_tool/tree/main
I had a quick glance over the code and it looks alright. One thing: why are you importing BVHTree? Also, if you wanted to check names for the * prefix (since only tags use that), you should probably use name.startswith('*') instead of just checking if it exists in the string. Just a cleaner way to handle it.
I believe the BVHTree import was something from an article I read while I was trying some stuff out. Thanks for the heads up. I used * to keep it short, but .startswith might be better. I'm not a professional programmer, but I'm always looking for ways to improve. Learning by doing is the credo.