The online racing simulator
Searching in All forums
(2 results)
Leon___H
S3 licensed
Quote from Leon___H :Hi Vritrasura and NENE87...

I asked AI for help, and it told me to add deg += 90 to the code. Then it worked.

deg = math.degrees(obj.rotation_euler[2])
while(deg < 0):
deg += 360
rotation = round((deg + 180) * 256 / 360)
while(rotation > 255):
rotation -= 256

deg = math.degrees(obj.rotation_euler[2])
deg += 90 # Added
while(deg < 0):
deg += 360
rotation = round((deg + 180) * 256 / 360)
while(rotation > 255):
rotation -= 256

The finished layout doesn't match what I see in Blender
Leon___H
S3 licensed
Hi Vritrasura and NENE87,

Hope you’re both doing well! I wanted to start by saying a huge thank you for your work.

However, I just encountered a minor problem, and I'm hoping you might offer some advice. The finished layout doesn't match what I see in Blender when I use wall models in Blender and export them for usage in LFS.

Blende:V4.5.3
LFS:0.7G
LFS_Layout_Editor_Blender_Tool_v10

Again, thank you both so much for all you’ve built—it’s made LFS layout creation feel manageable,

Best regards,

Leon


Last edited by Leon___H, .
FGED GREDG RDFGDR GSFDG