Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / useful 2.8 Blender scripts - reset selected Objects loc and Rot then export individually to FBX to a specified folder and export Obj data to text file

Author
Message
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 19th Aug 2019 01:13 Edited at: 19th Aug 2019 20:55
Two scripts.

The first will go through each object you have selected move it to (0,0,0), set the rotation to (0,0,0), export to FBX and then put the object back in its original loc/rot. It drops the duplicate indication(.001 etc), and only saves if the file does not exist.

I scoured the internet and pieced it together, so I can't take credit for it. I ended up posting this on some Blender forum as I was seeking help, but got it working before I got any replies.


This just creates a text file with the object data info. Found it on stackoverflow. Lost the source. This will also tell you what collection your object is in. I find it useful for merging certain objects together. Or knowing where to place lights, etc.



Really makes me appreciate Python. I have never put in any effort until today.

Don't forget in Blender the y and z are transposed.
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 19th Aug 2019 20:53
I updated it to include the scale value, since I found out that is important, haha. Also, I had to make the rotations negative when importing into AGK. I never noticed that.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Aug 2019 01:39 Edited at: 20th Aug 2019 04:38
Wow! That looks awesome!

Couple of suggestions.
These could be added to the object name like so
object_name:options

Options
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 26th Aug 2019 17:10 Edited at: 26th Aug 2019 17:10
blink0K,

Do you know if there is any way to add Notes to an object?

I'd like to add special instructions. One example would be something telling me which shader to use or if the object needs transparency.

Thanks!
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 27th Aug 2019 00:17
I just add flags on the end of the object name as above (object_name:flags)
I know it's not perfect but i think the object names can be as long as you want them to be
so for transparency and a sphere physics shape
object_name:transparent, shape(sphere)
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 11th Sep 2019 20:59
Thanks!

Login to post a reply

Server time is: 2024-03-29 06:47:00
Your offset time is: 2024-03-29 06:47:00