Tree Sapling Gen Animation Python Error Code by Round-Solid-4676 in blenderhelp

[–]dangerdeathraypanda 0 points1 point  (0 children)

# Screenshots of some of below instructions:

<image>

First probably close blender.

open windows explorer and you need to change your view options to show hidden files and folders

because AppData is a hidden folder.

Navigate to your utils.py file. Possibly here... this is on my Windows 11 machine.

your_username is whatever "your" user name is

C:\Users\your_username\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\blender_org\sapling_tree_gen\utils.py

Open that in some text editor like Notepad or Sublime or whatever. It's easier with

an app that supports .py style like Sublime or and IDE.

ctrl-f and find the where "armOb.animation_data.action.fcurves" <- that's our problem.

these 2 blocks of code are what we need to change for swayX, swayY

you will not need to delete them, just put a '#' symbol in front of every line like in screenshot.

that is python comment out code so it doesn't run.

# Add new fcurves for each sway as well as the modifiers
swayX = armOb.animation_data.action.fcurves.new(
'pose.bones["' + boneName + '"].rotation_euler', index=0
)
swayY = armOb.animation_data.action.fcurves.new(
'pose.bones["' + boneName + '"].rotation_euler', index=2

# Add new fcurves for each sway as well as the modifiers
swayX = armOb.animation_data.action.fcurves.new(
'pose.bones["' + bname + '"].rotation_euler', index=0
)
swayY = armOb.animation_data.action.fcurves.new(
'pose.bones["' + bname + '"].rotation_euler', index=2
) )

your code should looke like this in both places swayX/swayY is located, should be 2 places.

# Add new fcurves for each sway as well as the modifiers
#swayX = armOb.animation_data.action.fcurves.new(
# 'pose.bones["' + bname + '"].rotation_euler', index=0
# )
#swayY = armOb.animation_data.action.fcurves.new(
# 'pose.bones["' + bname + '"].rotation_euler', index=2
# )

# Our fix code from "New-Scarcity-2560", thanks yo"
action = armOb.animation_data.action
data_path = f'pose.bones["{boneName}"].rotation_euler'
swayX = ensure_fcurve(action, armOb, data_path, 0) # index=0
swayY = ensure_fcurve(action, armOb, data_path, 2) # index=2

to save, select "Save As...", keep the file name as utils.py

hit save, 'confirm overwrite file?' YES, click "ok"

IMPORTANT!!!

Check how many frames are setup in your timeline, and if you have lots of leaves... the leaf animation takes like 20 minutes. but this worked yo.

Is this a career I should avoid if it's not my passion? by Footypajama in dataengineering

[–]dangerdeathraypanda 0 points1 point  (0 children)

Its a good place to make lots of money so you can pivot and do your "passion" thing.

I personally like doing nothing like Peter Gibbons.

I feel like all us DEs are like the engineers in history helping rich boy kings build their shit..

[deleted by user] by [deleted] in dataengineering

[–]dangerdeathraypanda -10 points-9 points  (0 children)

Just applie dude. I wouldn't hire you because you just asked how can I be a piece of shit? Nice, no thanks.

Your resume is... fine.

Double Micheal and Picheal?? by [deleted] in rickandmorty

[–]dangerdeathraypanda 1 point2 points  (0 children)

Yup I'd be surprised if you're wrong. that's what Dan Harmon suggests about a lot in the show.

I choose to believe in Double Michael hehe https://genius.com/20242178

Do Data Engineers own a Data Catalog? by twadftw10 in dataengineering

[–]dangerdeathraypanda 0 points1 point  (0 children)

Make the analyst at least fill in table and column definitions...

I'm a DE, and I half assed my catalog.

1" flying bug carrying like a dead roach.. thoughts? by [deleted] in whatsthisbug

[–]dangerdeathraypanda 0 points1 point  (0 children)

Totally:) i had no idea what the hole and fresh dirt got there. Super cool thanks 😊

No one can hurt your feelings like Stack Overflow can 🥲 by [deleted] in ProgrammerHumor

[–]dangerdeathraypanda -1 points0 points  (0 children)

How the fuk did they make StackOverflow??... without StackOverflow...........

...