feat(rcf): expose all connexion parameters again

This commit is contained in:
Swann Martinez
2019-04-18 11:34:16 +02:00
parent 6583905c92
commit 2a9931dc0c
3 changed files with 19 additions and 9 deletions

View File

@ -18,6 +18,7 @@ def get_selected_objects(scene):
selected_objects.append(obj.name)
return selected_objects
# LOAD HELPERS
def load(key, value):
target = resolve_bpy_path(key)
@ -369,12 +370,13 @@ def dump_datablock_attibute(datablock, attributes, depth=1):
def init_client(key=None):
client_dict = {}
client_dict['location'] = [[0,0,0],[0,0,0],[0,0,0],[0,0,0]]
client_dict['color'] = [0,1,1,1]
C = bpy.context
Net = C.scene.session_settings
client_dict['location'] = [[0,0,0],[0,0,0],[0,0,0],[0,0,0]]
client_dict['color'] = [Net.client_color.r,Net.client_color.g,Net.client_color.b,1]
# for o in bpy.context.selected_objects:
# print("TOTO {}".format(o.name))
client_dict['active_objects'] = get_selected_objects(C.view_layer)
print(client_dict['active_objects'])
return client_dict