TOPs trying to rename UDIM to add ACEScg into file name

   Views 548   Replies 2   Subscribers 1
User Avatar
Member
700 posts
Joined: Aug. 2013
Offline
Hi.

I am trying to make a tool for converting images to ACEScg.

During the conversion I want to rename the file. This is where I am having an issue. For example:

albedo.1001.exr

to

albedo.ACEScg.1001.exr

I think I need to create an attribute from string, split it and somehow put it back together again feeding that into the openimageio output path.

Has anyone managed to do this sort of thing before?. Best. Mark

Attachments:
ACEScg_conversion.hipnc (131.7 KB)
albedo.1001.exr (61.6 KB)
albedo.1002.exr (61.6 KB)
screengrab.jpg (78.7 KB)
screengrab2.jpg (85.9 KB)

User Avatar
Member
318 posts
Joined: Jan. 2013
Offline
You can use a dot delimiter and then use an array of values to substitute in the paths.

Attachments:
ACEScg_conversion_fix.hipnc (136.3 KB)

User Avatar
Member
700 posts
Joined: Aug. 2013
Offline
Hi. Wow. thanks for that super quick help!

Best
  • Quick Links