Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

282
Views
py file in blender wont show its line breaks

I ran into a strange issue and could need some help. A Javascript file writes a python file, that i can use in blender to setup and animate my scene. everything works fine, and as expected on Windows. Now it turns out that if i run the javascript on mac, then the python file, thats been written cannot be run in blender. Because the python file wont have line breaks. Strangely though it shows the Linebreaks of that exact file in all other text editors (Notepad, Wordpad, Chrome browser, sublime text, etc.) The javascriptfile is writing linebreaks with "\n", and from what i read this should be fine with linus and macOs.Is "\n" the proper code?

Now my workaround would be to use ";" at the end of each line, but how would i code the end of a for loop, without using unindents of a new line?

Another workaround would be to quit the for loop, and let each for cycle be written explicitly, (without the need of indents)

But i really would appreciate a solution that keeps the code simple. I really would like to understand why blender loses linebreaks "\n" when the py is created on macOS.

every Help is appreciated. heres a screenshot of the pythonfile in sublime text editor:

the py file in sublime text editor https://i.stack.imgur.com/rJibW.png

heres a screenshot of the same file in blender the same file in blender https://i.stack.imgur.com/ScLUq.png

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!