NYU_Animation
Hi all,
I was following the SESI tutorial on wedging just fine until I entered the command for stamping the image with the wedge name. The help card lists the command as
unix hwatermark -x 4 10 -m “$WEDGE” `chs(“vm_picture”)` `chs(“vm_picture”)` $HFS/houdini/fonts_texture/Fixed-Bold.24
My renders failed every time this text was in the post-frame script box. I soon realized there's no “font_texture” folder any longer so I changed that to “font” would help but no go.
I tried using hwatermark independently on a simple .pic file on the C drive using many variations of
hwatermark -m “test text” -x 4 10 “C
wedge.pic” “C
wedge.pic” “C
Program Files/Side Effects Software/Houdini 12.5.562/houdini/fonts/Courier-Bold.24”
or
hwatermark -m “test text” -x 4 10 “C
wedge.pic” “C
wedge.pic” “C
Program Files/Side Effects Software/Houdini 12.5.562/houdini/fonts” Courier-Bold.24
… with quotes, without quotes, backwards and forwards slashes, etc., but it either shows me the options (which I take to mean I didn't enter the command correctly) or I get “Error: cannot open resource” . Not sure if “resource” means the file or hwatermark.
Any ideas?
BTW, I tried this in Houdini 12.5.562 and 13.0.198
hwatermark was changed to support TTF fonts. So you need to pass the path to a TTF font (and specify the size). The usage is now: Usage: hwatermark <srcimg> <dstimg> <fontfile> <fontsize>
Where the src.pic is the image to watermark, dst.pic the file to
save the result to, and fontfile the full path to the file to use as thefont.
Options:
-m text : Message to composite onto the image (required)
-c r g b : Specify color (0-255) for text. Default: 255 255 255
-a value : Specify alpha (0-255) for compositing text. Default: 255
-S offset : Shadow offset (in pixels). 0 to disable. Default: 0
-s r g b : The color (0-255) of the shadow Default: 0 0 0
-B r : The radius of the shadow blur Default: 2.0
-A alpha : Specify alpha of shadow (0-255) Default: 128
-x x y : Specify location of text in pixels. (0, 0) is bottom left
-j : Right justify the text
-o : Overwrite alpha on the destination image.
-q : Suppress all text output
So, for example, you might call it like this: hwatermark -m “Hello world” Mandril.pic Watermarked.pic $HH/fonts/DejaVuSans 12