Commit 5e26292e authored by Adrien Vigné's avatar Adrien Vigné
Browse files

script export over object ref ok

parent f1f2c885
import bpy
for collection in bpy.data.collections:
print(collection.name)
for obj in collection.all_objects:
print("obj: ", obj.name)
"{\"cubes\": [{\"name\": \"dt_cube_BBRG\", \"x\": 3.983139991760254, \"y\": 7.468329906463623, \"z\": 0.8466429710388184, \"rotation\": 0.0}, {\"name\": \"dt_cube_GBRB\", \"x\": 4.505199909210205, \"y\": 7.468329906463623, \"z\": 0.8467490077018738, \"rotation\": 0.0}, {\"name\": \"dt_cube_GBTB\", \"x\": 3.7968199253082275, \"y\": 7.468329906463623, \"z\": 1.0823899507522583, \"rotation\": 0.0}, {\"name\": \"dt_cube_GGTG\", \"x\": 3.6324100494384766, \"y\": 7.468329906463623, \"z\": 1.317430019378662, \"rotation\": 0.0}], \"box\": [{\"name\": \"case11\", \"x\": 3.5284101963043213, \"y\": 7.495507717132568, \"z\": 1.112392783164978, \"rotation\": 0.0}, {\"name\": \"case11.001\", \"x\": 3.729015588760376, \"y\": 7.495507717132568, \"z\": 0.8768070340156555, \"rotation\": 0.0}, {\"name\": \"case11.002\", \"x\": 4.577854633331299, \"y\": 7.495507717132568, \"z\": 1.1119394302368164, \"rotation\": 0.0}, {\"name\": \"case11.003\", \"x\": 4.22829008102417, \"y\": 7.495507717132568, \"z\": 0.8766393661499023, \"rotation\": 0.0}, {\"name\": \"case11.004\", \"x\": 3.985034942626953, \"y\": 7.495507717132568, \"z\": 0.8766393661499023, \"rotation\": 0.0}, {\"name\": \"case11.005\", \"x\": 3.7985873222351074, \"y\": 7.495507717132568, \"z\": 1.1120879650115967, \"rotation\": 0.0}, {\"name\": \"case11.006\", \"x\": 3.635371208190918, \"y\": 7.495507717132568, \"z\": 1.3473174571990967, \"rotation\": 0.0}, {\"name\": \"case11.007\", \"x\": 4.311739444732666, \"y\": 7.495507717132568, \"z\": 1.1119019985198975, \"rotation\": 3.1415929794311523}, {\"name\": \"case11.008\", \"x\": 3.4680190086364746, \"y\": 7.495507717132568, \"z\": 0.8768914341926575, \"rotation\": 6.283185958862305}, {\"name\": \"case11.009\", \"x\": 3.5467052459716797, \"y\": 7.495507717132568, \"z\": 1.1121630668640137, \"rotation\": 9.424778938293457}, {\"name\": \"case11.010\", \"x\": 4.506997585296631, \"y\": 7.495507717132568, \"z\": 0.8767914772033691, \"rotation\": 6.283185958862305}, {\"name\": \"DT_box_hidden\", \"x\": 4.747014999389648, \"y\": 7.518306732177734, \"z\": 0.8675570487976074, \"rotation\": 3.1415929794311523}, {\"name\": \"DT_boxe_wire_mesh\", \"x\": 4.050873279571533, \"y\": 7.501073360443115, \"z\": 1.1021335124969482, \"rotation\": 1.3435884227419592e-07}]}"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment