hazlin on Nostr: I blame lisp for this... #macro """ for name in ...
I blame lisp for this...
#macro
"""
for name in "c_foot_ik.r,c_foot_ik.l,c_hand_ik.r,c_hand_ik.l,c_root_master.x,c_spine_03.x,c_head.x,c_arms_pole.r,c_arms_pole.l".split(","):
var_name = name.replace(".","_")
print(f"{var_name} = Bone(\"{name}\")")
"""
c_foot_ik_r = Bone("c_foot_ik.r")
c_foot_ik_l = Bone("c_foot_ik.l")
c_hand_ik_r = Bone("c_hand_ik.r")
c_hand_ik_l = Bone("c_hand_ik.l")
c_root_master_x = Bone("c_root_master.x")
c_spine_03_x = Bone("c_spine_03.x")
c_head_x = Bone("c_head.x")
c_arms_pole_r = Bone("c_arms_pole.r")
c_arms_pole_l = Bone("c_arms_pole.l")
Published at
2023-05-16 21:44:25Event JSON
{
"id": "8802bb52ac5df53e1f803535175a766ca84af7648bc7fde34a3bee291f1be81c",
"pubkey": "9e8a3ee2cfda5a10c16c1f23084d1073062010510083f02ef5553430090f0a63",
"created_at": 1684273465,
"kind": 1,
"tags": [
[
"t",
"macro"
],
[
"mostr",
"https://poa.st/objects/e49987b0-d792-4cc7-8255-12bfbc0382da"
]
],
"content": "I blame lisp for this...\n\n#macro\n\"\"\"\nfor name in \"c_foot_ik.r,c_foot_ik.l,c_hand_ik.r,c_hand_ik.l,c_root_master.x,c_spine_03.x,c_head.x,c_arms_pole.r,c_arms_pole.l\".split(\",\"):\n var_name = name.replace(\".\",\"_\")\n print(f\"{var_name} = Bone(\\\"{name}\\\")\")\n\"\"\"\n\nc_foot_ik_r = Bone(\"c_foot_ik.r\")\nc_foot_ik_l = Bone(\"c_foot_ik.l\")\nc_hand_ik_r = Bone(\"c_hand_ik.r\")\nc_hand_ik_l = Bone(\"c_hand_ik.l\")\nc_root_master_x = Bone(\"c_root_master.x\")\nc_spine_03_x = Bone(\"c_spine_03.x\")\nc_head_x = Bone(\"c_head.x\")\nc_arms_pole_r = Bone(\"c_arms_pole.r\")\nc_arms_pole_l = Bone(\"c_arms_pole.l\")",
"sig": "d5dde6df3b9d2beea9da74a73bd7e5b32ced48080ca20ddfbe1aec73445c30415c0b349b636bdc6568cdc91f97f208d1fced1bae8e2a8519947401f20c00eb49"
}