Тёмный

Unreal Engine 5 Tutorial - Blender Exporter - Instanced Static Mesh Exporter [2/4] 

renderBucket
Подписаться 23 тыс.
Просмотров 9 тыс.
50% 1

This multi-part video will also go over how to create a instance/object position exporter from Maya or Blender with Python. And how to write a Loader in Unreal 5 with Blueprints to read in those exported files from Blender or Maya.
Corrections:
rotate_euler.x y z will return radians and should be converted to degrees. This is done below in the following code adjustments.
1. Add "import math" at the top of the code.
2. Change data.append(obj.rotation_euler.x) to data.append(math.degrees(obj.rotation_euler.x))
3. Repeat that change for y and z as well.
Thank you to the viewers for catching this error in the comments below.
Patreon:
/ renderbucket
Discord:
/ discord

Опубликовано:

 

7 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@GSProjects12
@GSProjects12 Год назад
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!
@nijq
@nijq Год назад
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)".
@renderbucket
@renderbucket Год назад
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
@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).
@allisonainsworth4072
@allisonainsworth4072 7 месяцев назад
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
@embacherjames
@embacherjames 9 месяцев назад
Great video!
@sinonimos1790
@sinonimos1790 Год назад
Thank you very much, it's awesome. Very useful👌
@学习之旅
@学习之旅 Год назад
Thank you for the sharing🙂
@chadyonfire7878
@chadyonfire7878 Год назад
hey great work bud , can we get the exporter ready from u , would help a lot
@in2fractalout
@in2fractalout Год назад
instant lvl-up scroll detected! 📜✨
@hanneswerner
@hanneswerner Месяц назад
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?
@richardmetellus2336
@richardmetellus2336 10 месяцев назад
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
@jamaalsineke2405
@jamaalsineke2405 2 месяца назад
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?
@Fingle
@Fingle 2 месяца назад
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 😅
@jamaalsineke2405
@jamaalsineke2405 2 месяца назад
@@Fingle Thanks for your prompt reply I appreciate you taking the time to get back to me
@Fingle
@Fingle 2 месяца назад
@@jamaalsineke2405 baaah, Im just passing through and saw it was a recent comment. Good luck with your Unreal and coding journey!
Далее
Blue vs Green Emoji Eating Challenge
00:33
Просмотров 8 млн
The ONLY texture a game NEEDS [UE4, valid for UE5]
18:56
I Made My First Game in Godot in 3 Weeks...
26:21
Просмотров 379 тыс.