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
How to format hwatermark
1783 1 0-
- chrbradley
- Member
- 15 posts
- Joined: Sept. 2010
- Offline
-
- chrbradley
- Member
- 15 posts
- Joined: Sept. 2010
- Offline
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…”
“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…”
-
- Quick Links