I have the following code that declares a variable on existing objects:
scapula_proxy = doc.SearchObject("scapula_proxy") shoulder_proxy = doc.SearchObject("shoulder_proxy") elbow_proxy = doc.SearchObject("elbow_proxy") wrist_proxy = doc.SearchObject("wrist_proxy")
As you can see, the scapula_proxy is redundant. Is there a way to streamline it like that one below (hypothetical):
scapula_proxy = doc.SearchObject(*Variable Name*)
Not sure if this is possible, but would be happy if it is as I have several lines with this format.
I also tried with the stackoverflow but the examples they have is a bit complicated and I ended up in a rabbit hole.
Is there a way around this?
Thank you for looking at my problem.