Search - User list
Full Version: How to format hwatermark
Root » Technical Discussion » How to format hwatermark
chrbradley
Hi There,

Does anybody know how to edit the channel decimal precision of the hwatermark unix script?:

unix hwatermark -x 4 10 -m “$WEDGE” `chs(“vm_picture”)` `chs(“vm_picture”)` $HFS/houdini/fonts_texture/Fixed-Bold.24

It defaults to 6 decimal places which is overkill when I'm wedging values between 10 and 50.

Regards,
Chris
chrbradley
I found the answer on the mail list here: [sidefx.com]

“Rangi Sutton wrote:
Not the easy answer, and it's entirely untested.. but what I'd be doing..

Fork (copy as a new name) the wedge asset so you've got one of your own.
Crack open the Edit operator Type Properties, go to the Scripts tab.

In the PythonModule, find the lines that read like:

prefix = ”_%s_%f“ % (englishname, v)

And change them to

prefix = ”%s_%.2f“ % (englishname, v)


Excuse the silly typo…

prefix = ”_%s_%.2f“ % (englishname , v)

But you know… you can format that stuff prefix how you want now.

r.

Save the module and you should get the values to two decimal places…”
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB