Great video series. Thank you!! Not sure but I think "obj.rotation_euler.x" returns radians, so you have to also "import math" and then convert with "math.degrees(obj.rotation_euler.x)".
@renderbucket2 жыл бұрын
This is a very good point. You are right, rotation euler will return radians. I was transferring over my code from Maya for this so I think I overlooked that in Blender. Thank you for the correction!
@espen990 Жыл бұрын
I got into the same issue, but I solved it by adding three "radians to degrees" nodes in the rotation connections between the "break" and "make transform" nodes in the UE5 construction script (shown in the next video).
@allisonainsworth407211 ай бұрын
import bpy import csv selection = [obj for obj in bpy.context.selected_objects if obj.type == 'MESH'] col = ['', 'id', 'tx', 'ty', 'tz', 'rx', 'ry', 'rz', 'sx', 'sy', 'sz'] with open('C:\ISMExporter\data.csv', 'w', newline='') as f: writer = csv.writer(f) writer.writerow(col) for idx, obj in enumerate(selection): data = [] data.append(idx) data.append(idx) data.append(obj.location.x) data.append(obj.location.y) data.append(obj.location.z) data.append(obj.rotation_euler.x) data.append(obj.rotation_euler.y) data.append(obj.rotation_euler.z) data.append(obj.scale.x) data.append(obj.scale.y) data.append(obj.scale.z) writer.writerow(data) del data
@sailochan12032 ай бұрын
thank you
@GSProjects122 жыл бұрын
yay, I'm the first to comment! Anyway, thanks for this scripting tutorial. It opened up a whole new world of possibilities for me. Seriously!
@richardmetellus2336 Жыл бұрын
hmm could i hypothetically do this for a light sources? as in using this method to have unreal place lights that i have in my blender scene
@chadyonfire7878 Жыл бұрын
hey great work bud , can we get the exporter ready from u , would help a lot
@GG-James-E Жыл бұрын
Great video!
@sinonimos17902 жыл бұрын
Thank you very much, it's awesome. Very useful👌
@学习之旅 Жыл бұрын
Thank you for the sharing🙂
@hanneswerner5 ай бұрын
Great video, However I was wondering, does this also work for Instances created with Geometry Nodes in Blender? And could it work for animated instances? Any idea how to do that?
@freakygreenfish2 ай бұрын
i´m trying it rn and am failing hardcore:D
@jamaalsineke24056 ай бұрын
Hi Mr Bucket, amazing tutorial. I'm really new to Unreal and coding in general. my question is this Python export function version reliant? Can I write this for blender 4 or was this coded with Blender 3 in mind?
@Fingle6 ай бұрын
That would depend on whether the blender python syntaxes has changed at all. For something as simple as this (just grabbing the selection, and copying basic metadata) I highly doubt there will be any issues. But if there are any issues, it's nothing chatgpt won't fix in a few seconds 😅
@jamaalsineke24056 ай бұрын
@@Fingle Thanks for your prompt reply I appreciate you taking the time to get back to me
@Fingle6 ай бұрын
@@jamaalsineke2405 baaah, Im just passing through and saw it was a recent comment. Good luck with your Unreal and coding journey!