{"id":12100,"date":"2026-03-27T13:32:20","date_gmt":"2026-03-27T18:32:20","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=12100"},"modified":"2026-03-27T13:32:21","modified_gmt":"2026-03-27T18:32:21","slug":"blender-api-finding-the-orange-dot","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=12100","title":{"rendered":"Blender API: Finding The Orange Dot"},"content":{"rendered":"\n<p>A quick script to get each object and the location of the &#8220;orange dot&#8221; &#8230; the origin of the object<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# Get location of orange dot for each object in Blender\nimport bpy\n\nscene = bpy.context.scene\nus = scene.unit_settings\n\nunit_system = getattr(us, &quot;system&quot;, &quot;NONE&quot;)  # &#039;NONE&#039;, &#039;METRIC&#039;, &#039;IMPERIAL&#039;\n\nmeters_per_bu = us.scale_length if unit_system != &#039;NONE&#039; else 1.0\nmm_per_bu = meters_per_bu * 1000.0\n\nfor obj in bpy.data.objects:\n    if obj.type != &#039;MESH&#039;:\n        continue\n\n    origin_world = obj.matrix_world.translation          # in BU\n    origin_world_mm = origin_world * mm_per_bu           # in mm\n\n    print(f&quot;Object: {obj.name}&quot;)\n    print(f&quot;  origin_world (BU): {origin_world.x:.6f}, {origin_world.y:.6f}, {origin_world.z:.6f}&quot;)\n    print(f&quot;  origin_world (mm): {origin_world_mm.x:.3f}, {origin_world_mm.y:.3f}, {origin_world_mm.z:.3f}&quot;)\n    print(&quot;-&quot; * 30)\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>A quick script to get each object and the location of the &#8220;orange dot&#8221; &#8230; the origin of the object<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2163,1945],"tags":[2158,2182,664],"class_list":["post-12100","post","type-post","status-publish","format-standard","hentry","category-blender-3d-printing","category-python","tag-blender","tag-blender-api","tag-python"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/12100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12100"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/12100\/revisions"}],"predecessor-version":[{"id":12101,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/12100\/revisions\/12101"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}