Animation sequence naming format problem, not recognized by importing into nuke.
Quote from XTT on 28. April 2021, 11:10Animation sequence naming format problem, not recognized by importing into nuke.
My naming: Main_AOV_Beauty0000.exr, Main_AOV_Beauty0001.exr
After importing into nuke via the 'import images'-'layout all passes' function, the names are recognised as Main_AOV_Beauty0000 .####.exrCan I change the config file to recognise my naming scheme or is there another way to fix this? Thanks to all of you.
Animation sequence naming format problem, not recognized by importing into nuke.
My naming: Main_AOV_Beauty0000.exr, Main_AOV_Beauty0001.exr
After importing into nuke via the 'import images'-'layout all passes' function, the names are recognised as Main_AOV_Beauty0000 .####.exr
Can I change the config file to recognise my naming scheme or is there another way to fix this? Thanks to all of you.
Quote from RichardF on 28. April 2021, 17:47Hey @xtt,
Prism expects the frame number separated by a "." and unfortunately there is no config too change that. You could either rename your images or modify the Prism python script.
If you locate this file in your local Prism installation you can edit it in a text editor:
https://github.com/RichardFrangenberg/Prism/blob/cab6e89da07db0291d974e3bbfb0e6f9bd6f00d4/Prism/Plugins/Apps/Nuke/Scripts/Prism_Nuke_Functions.py#L520
If you change the line:
curPassName = os.listdir(curPassPath)[0].split(".")[0]
to this:
curPassName = os.listdir(curPassPath)[0].split(".")[0][-4]
then you can save the script, restart Nuke and then it should detect your filenames correctly.
Cheers,
Richard
Hey @xtt,
Prism expects the frame number separated by a "." and unfortunately there is no config too change that. You could either rename your images or modify the Prism python script.
If you locate this file in your local Prism installation you can edit it in a text editor:
If you change the line:
curPassName = os.listdir(curPassPath)[0].split(".")[0]
to this:
curPassName = os.listdir(curPassPath)[0].split(".")[0][-4]
then you can save the script, restart Nuke and then it should detect your filenames correctly.
Cheers,
Richard
Quote from XTT on 1. May 2021, 11:42Quote from RichardF on 28. April 2021, 17:47Hey @xtt,
Prism expects the frame number separated by a "." and unfortunately there is no config too change that. You could either rename your images or modify the Prism python script.
If you locate this file in your local Prism installation you can edit it in a text editor:
https://github.com/RichardFrangenberg/Prism/blob/cab6e89da07db0291d974e3bbfb0e6f9bd6f00d4/Prism/Plugins/Apps/Nuke/Scripts/Prism_Nuke_Functions.py#L520
If you change the line:
curPassName = os.listdir(curPassPath)[0].split(".")[0]
curPassName = os.listdir(curPassPath)[0].split(".")[0]
to this:curPassName = os.listdir(curPassPath)[0].split(".")[0][-4]
curPassName = os.listdir(curPassPath)[0].split(".")[0][-4]
then you can save the script, restart Nuke and then it should detect your filenames correctly.Cheers,
Richard
After the modification, the path file I imported became 0.####.exr.
All channels are like this.
Quote from RichardF on 28. April 2021, 17:47Hey @xtt,
Prism expects the frame number separated by a "." and unfortunately there is no config too change that. You could either rename your images or modify the Prism python script.
If you locate this file in your local Prism installation you can edit it in a text editor:
If you change the line:
curPassName = os.listdir(curPassPath)[0].split(".")[0]
curPassName = os.listdir(curPassPath)[0].split(".")[0]
to this:curPassName = os.listdir(curPassPath)[0].split(".")[0][-4]
curPassName = os.listdir(curPassPath)[0].split(".")[0][-4]
then you can save the script, restart Nuke and then it should detect your filenames correctly.Cheers,
Richard
After the modification, the path file I imported became 0.####.exr.
All channels are like this.
Quote from RichardF on 3. May 2021, 23:30Sorry I forgot a colon. It should be like this:
curPassName = os.listdir(curPassPath)[0].split(".")[0][:-4]
However I noticed there's also a second line, which you have to modify:
https://github.com/RichardFrangenberg/Prism/blob/cab6e89da07db0291d974e3bbfb0e6f9bd6f00d4/Prism/Plugins/Apps/Nuke/Scripts/Prism_Nuke_Functions.py#L540
You have to change that from
".".join([curPassName, increment, curPassFormat]),
to this:
curPassName + increment + "." + curPassFormat,
Sorry I forgot a colon. It should be like this:
curPassName = os.listdir(curPassPath)[0].split(".")[0][:-4]
However I noticed there's also a second line, which you have to modify:
You have to change that from
".".join([curPassName, increment, curPassFormat]),
to this:
curPassName + increment + "." + curPassFormat,