newline character hscript

   2574   1   2
User Avatar
Member
57 posts
Joined: Feb. 2011
Offline
Is there a way to insert a newline character in an echo statement? like echo “first\nsecond”?

More specifically if I want to use hwatermark to label a render, how can I insert a newline character in the message?

this:
unix hwatermark -x 4 10 -m “test\ntest” `chs(“vm_picture”)` `chs(“vm_picture”)` $HFS/houdini/fonts_texture/Fixed-Bold.24

does not work, and just prints the literal string. Maybe if I do an echo -e and wrap that in the message? seems complicated and messy, and hopefully there is a simple newline syntax for this situation.

thanks!
z
User Avatar
Member
30 posts
Joined: May 2017
Offline
I was first looking for the answer to that too, but just came across the answer: As soon as you go into the expression editor (Alt+E) and hit enter there to create a new line it inserts this specific paragraph character: (This forum also evaluates it as a new char, but it then prints it in the hscript expression.

The parameter had to be turned into an expression by a keyframe first (green bg) and then the “Paragraph” Symbol inbewteen quotes.
Edited by martin-egger - Nov. 20, 2020 09:16:52
- Martin Egger
Student at Filmakademie BW
& Freelance FX TD
  • Quick Links