Galaxy Littlepaws

@galaxylittlepaws.com

#SecondLife | Artist | Programmer | Adult | Cat https://galaxylittlepaws.com

Should be a common knowledge type thing tbh #secondlife #SL Blender is a migraine. Takes so very long to get hang of it. After 5-7 years or however long it takes to master it, you gotta spend 12 hours+ in rigging for each body out there. Be nice to real creators that don't cheap out using g-ai

Been meaning to make some tutorial videos for @blender.org's Python API (or even a detailed walkthrough of how I used bpy to create my #SecondLife terrain models). In the meantime, a quick example of how to turn a mesh grid into a sine wave, in just two lines of code. More info in the alt text. #b3d

A screenshot of the "Layout" workspace in Blender 5.2.0, showing a mesh grid and how to create it (using Add -> Mesh -> Grid). Also shown are the "Add Grid" parameters, where the X and Y Subdivisions have each been changed to 100 and the Size has been set to 10 meters.

Note: You can increase or decrease the subdivisions in order to change how smooth the wave will be. Changing the mesh's size here will affect how many times the wave will repeat across the mesh (how many cycles, in other words).A screenshot of the "Scripting" workspace in Blender 5.2.0, showing the interactive Python Console, where the following two lines of code were just run:

for vertex in bpy.data.objects['Grid'].data.vertices:
    vertex.co.z = sin(vertex.co.x)

Note: You can also combine functions and/or use different coordinates (multiplying the sin of the x coordinates by the cos of the y coordinates, for example). Have fun and experiment!

Below the Console is a 3D Viewport where the mesh grid now resembles a sine wave; to the right is the Text Editor, displaying the following text and code examples:

# Don't forget to 'import bpy' and any other necessary modules (like math) if running scripts from Blender's Text Editor or when using Blender from the command line. If using its interactive Python Console, the bpy module is already available.

# Also, because of the Console's "Convenience Variables" for bpy's context and data hierarchies, the code to the left could also be written there as follows:

for vertex in D.objects['Grid'].data.vertices:
    vertex.co.z = sin(vertex.co.x)

# Again, keep in mind that the 'C' and 'D' variables are just shortcuts. If you want to use them in scripts outside of Blender's Python Console, you have to define them yourself.



# Extra Credit:

# An object is not the same as its mesh. A mesh technically lives in its own branch of the bpy.data hierarchy; each mesh can be linked to one or more objects. In this case, the 'Grid' object and the 'Grid' mesh happen to share the same name, but they don't necessarily have to.

# In the code example(s) shown here, the '.data' of the 'Grid' object refers to the mesh data that it's linked to (different object types have different kinds of data), and the vertices belong to the mesh. We could therefore also have written the code this way instead, addressing the mesh directly:

for vertex in bpy.data.meshes['Grid'].vertices:
    vertex.co.z = sin(vertex.co.x)
Erik Mondrian@rainstormsky.com · last yr.

Did some personal "art therapy" today with @blender.org and its #Python API, repositioning the vertices of a mesh grid using trigonometric functions like sine and cosine. The results are quite abstract, but I like how they turned out. They work pretty well as desktop backgrounds too. #b3d #VisualArt

An abstract image made in Blender, showing a curved plane that resembles part of a sine wave. There is also a checkerboard pattern of raised and lowered tiles, tinted purple, that alternate between light and shadow.

Happy Disability Pride Month to all my friends, and individuals who have a form of disability whether it be physical, neurological, etc. There is a lot going on with the disability community at this very moment in our country & the world. But know that you are absolutely worth it.

Disability Pride Flag description 

Black: Mourning & rage for those mistreated & killed by ableist violence

Green: Sensory Disabilities
Blue: Psychiatric disabilities/mental health
White: Undiagnosed & invisible disabilities
Yellow: Intellectual disabilities (neurodiversity)
Red: Physical Disabilities

Gumroad changed the minimum payout from $10 to $100 a few months ago and I didn't know until I opened it wondering why I wasn't getting payouts :/ Once I get a payout I'm exiting Gumroad, KoFi treats me way better anyway.

Any artist that "doesn't do politics" I ask that you put that aside. If this passes and Trump signs it it will DRASTICALLY change the internet and affect your job. Especially if you're an nsfw artist or activist. This bill includes gutting section 230. Please call your senators before it's too late

Dieselbrain@dieselbrain.bsky.social · last mo.

The KIDS Act [containing KOSA] has passed the House This sucks, but its not the end. It still has to pass through the Senate committee and then be voted on by the Senate itself Please continue contactimg your Senators and demanding they oppose the KIDS Act & KOSA www.congress.gov/members/find...

Please follow the instructions to contact your representative and tell them to vote NO on the KIDS Act. The US House will vote on it at 6:30 PM on Monday. There is no time to waste. The free internet is at stake. See replies for how to look up your representative.

Bild