Hello! I recently made a Roblox Lighting Exporter for blender and Roblox!
The Roblox Side: Zens Light Exporter - Roblox
The Blender side: Zens Light Reader - Pastebin.com
Here’s a tutorial on how to use it!:
-
First, make sure you are logged into your Roblox account.
-
Once you have clicked on the Roblox link, On the plugin’s page, click on the “Get” button to purchase the plugin.
-
Once the purchase is complete, click on the “My Purchases” tab in the top menu to view your purchased items.
-
Find the plugin you just purchased in the list of your purchases and click on the “Try In Studio” button.
To run the plugin, you will need to have Roblox Studio installed on your computer. Once you have Roblox Studio installed, follow these steps:
-
Open Roblox Studio and create a new game or open an existing game.
-
The plugin will be imported into your game and you can use it by clicking on the “Plugins” tab and selecting the plugin from the list.
Exporting the lights
-
In the Explorer window on the right side of the screen, expand the “Workspace” folder and find the “Lights” folder.
-
Right-click on the “Lights” folder and select “Export Selection” from the context menu.
-
In the “Export Selection” window that appears, select the location where you want to save the .obj file and click the “Export” button.
How to import Lights into blender
-
In Blender, go to the “File” menu and select “Import” from the dropdown menu.
-
In the “Import” window that appears, select “Wavefront (.obj)” from the list of options.
-
Click the “Browse” button and navigate to the location where you saved the .obj file.
-
Select the .obj file and click the “Import OBJ” button.
The .obj file will be imported into Blender.
It is important to note that you should enable the “Split by Group” option when importing an .obj file. This will ensure that the objects in the .obj file are imported as separate objects in Blender, rather than being imported as a single object.
To enable the “Split by Group” option, follow these steps:
-
In the “Import” window, go to the “Import OBJ” panel on the right side of the screen.
-
Scroll down and check the “Split by Groups” checkbox.
With the “Split by Group” option enabled, the “Lights” .obj file will be imported with each light as a separate object in Blender.
-
In Blender, press “A” on your keyboard to select all objects in the scene.
-
With all objects selected, go to the “Object” menu in the top menu and select “Set Origin” from the dropdown menu.
-
In the “Set Origin” menu, select “Origin to Geometry” from the list of options.
Running the Reader
-
In the top menu bar, go to “Text > Open Text Block” and select the “Zens Light Reader” script, Or go to the scripting tab and paste the code in. This will open the script in a new window within Blender.
-
To run the script, you can either press “Run Script” in the Text Editor menu or use the shortcut Ctrl + P.
-
The script will now be executed and you should see the results in the Blender viewport.
How to link all lights together in a Blender scene and change the power and radius:
-
In Blender, select all of the lights in the scene by pressing “A” on your keyboard.
-
With all of the lights selected, press “Ctrl+L” to bring up the “Make Links” menu.
-
In the “Make Links” menu, select “Object Data” from the list of options.
-
This will link all of the selected lights together, so that any changes made to one light will be applied to all of the linked lights.
-
To change the power of the lights, select one of the linked lights and go to the “Properties” panel on the right side of the screen.
-
To change the radius of the light, select one of the linked lights and go to the “Properties” panel on the right side of the screen.
Using the same steps as importing the Lights you can export the map and import it into blender
If there are any issues let me know!
For texturing issues, refer to this Post: Blender Roblox Map Fixer
Have a great day!
Edit:
I thought i should explain how this works so if you don’t care I don’t mind but this is how it works!
First the Roblox side plugin runs through all of the lights in a scene, placing a small block at the same position as the light. After it sets the color of the part to the light color
Second on the blender side, the script reads all of the cubes and texture colors and places lights based on that! then moves the lights to the cubes.
Hope that explains how this works! I do hope to use the scale to add different things like power and what type of light it is but we will see what comes out! Enjoy your day!