hazlin on Nostr: hmmmm, when the target is a different language, other than experience I don't seem to ...
hmmmm, when the target is a different language, other than experience I don't seem to gain anything for simple operations...
"""#Python expansion
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}\")")
"""
""";;;CL expansion
(loop for x in (uiop:split-string "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" :separator ",")
do (format t "~a = Bone(\"~a\")~%" (substitute #\. #\_ x) x))
"""
Published at
2023-05-16 22:40:48Event JSON
{
"id": "4f3fdc3ec5d6f2598f09ef217b0b65e3c6f4b9f9c842081530766f2de1037e09",
"pubkey": "9e8a3ee2cfda5a10c16c1f23084d1073062010510083f02ef5553430090f0a63",
"created_at": 1684276848,
"kind": 1,
"tags": [
[
"p",
"9e8a3ee2cfda5a10c16c1f23084d1073062010510083f02ef5553430090f0a63",
"wss://relay.mostr.pub"
],
[
"e",
"8802bb52ac5df53e1f803535175a766ca84af7648bc7fde34a3bee291f1be81c",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://poa.st/objects/f5cba8a4-4585-422c-86bd-9d5233925be6"
]
],
"content": "hmmmm, when the target is a different language, other than experience I don't seem to gain anything for simple operations...\n\n\"\"\"#Python expansion\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 \n\"\"\";;;CL expansion\n(loop for x in (uiop:split-string \"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\" :separator \",\")\n do (format t \"~a = Bone(\\\"~a\\\")~%\" (substitute #\\. #\\_ x) x))\n\"\"\"",
"sig": "4bbffec90291736f6fd08bedc67d465a79222bd64d94d9566f45b5ee2fd2ec44d63c97895565b2026d4fa0613c160f3d8d4818f05de245f38612a506925c550c"
}