Skip to content

Commit

Permalink
mod used in get_attr_only_str
Browse files Browse the repository at this point in the history
  • Loading branch information
ruaridhg committed Oct 2, 2023
1 parent 4ea8084 commit f3f0145
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions randomiser/define_prop/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,20 @@ def attr_get_type(obj, path):
except Exception:
# print("Property does not exist")
action = "dummy"
prop = "dummy"
path_attr = "dummy"
print(action, prop, path_attr)
print(type(action))
# action = getattr(prop, path_attr)

return type(action), action, prop, path_attr
# setattr(prop, path_attr, value)


def get_attr_only_str(full_str):
if "[" in full_str:
if "data" in full_str:
mod = 0
elif "[" in full_str:
mod = 1
else:
mod = 0
Expand Down Expand Up @@ -592,7 +598,7 @@ def draw(self, context):
# )[1]
# != "dummy"
# ]
# print("list_all_UD_props ====== ", list_all_UD_props)
print("list_all_UD_props ====== ", list_all_UD_props)
# print(
# "bpy.context.scene.custom_index == ",
# bpy.context.scene.custom_index,
Expand Down

0 comments on commit f3f0145

Please sign in to comment.