Activity
Mon
Wed
Fri
Sun
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
What is this?
Less
More

Memberships

CG Python Academy (Free)

908 members • Free

3 contributions to CG Python Academy (Free)
Exporter Script
This is an export script I wrote for some game assets, specifically it lets me keep rigged buildings in a single blend file, and animate them relative to each other, and then export with the armature translation zeroed out, culls out specific actions(animations) based on naming, then puts everything back where they were before the export. A pretty specific use case, but it made it a lot easier to animate 25 different buildings each with unique animations, and keep the exports as lean as possible. I used Copilot to help with some of the code, I found it helped in some areas, in others, not much help at all.
1 like • Mar 14
@Victor Stepanov thanks! This script probably won't be used again, but I will revisit it and see If I can get that running, it seems like it will work better for me than all the commenting I was doing.
Hi, I'm Lucas
I am a game artist, I use Blender a lot, and am looking to use blender python as a way to become proficient with coding.
0 likes • Feb 27
thanks for the welcome, the next things I may be looking at would be something to create an armature based on a hierarchical animation (converting links to bones). there may already be something that does that though. haven't researched it yet.
Affecting Geo Nodes modifier from script
Hi, I am trying to use a script to modify values of an object with a geometry nodes modifier on it, if I use these examples, it sort of works, but it doesn't update the UI or 3d viewport. Is there a better method or approach to this? bpy.data.objects['Object'].modifiers["GeoNodes"]["Socket_0"] = 3 (if the object is active selected) bpy.context.object.modifiers["GN_Trophy"]["Socket_0"] = 1
1 like • Jan 14
to answer my own question, looks like bpy.context.object.modifiers.update() bpy.context.object.update_tag() will refresh the viewport and UI, but my approach still may not be the best.
0 likes • Jan 15
I can't share it, as it's a work project, but it's basically using your 1000 thumbnails script as a base, but in addition to modifying the colors from a JSON, I want it to also modify a GeoNodes script. I have a trophy object that creates roman numerals on itself via a geo nodes script. The idea is to make like 50 variations of a trophy and render them automatically (and eventually endless variations for in game rewards).
1-3 of 3
Lucas Feld
2
7points to level up
@lucas-feld-6751
game artist

Active 65d ago
Joined Jan 2, 2025
Baltimore, MD, USA
Powered by