I'm trying to set a file path property by referencing another property in the scene.
So I have PropertyA which has this file name:
"D:/vf/Library/Tech/Fusion/FusionComplexSetup/FramesFusion/a/vfx_complex_01a_12x11_F132.$F4.exr"
Then I have a File node that references this property.
But it never works. It says cannot find the file. I think that it is the $F4 that causes the problem.
If I link to the file manually it says exactly the same as the file above so the spelling is 100% correct.
Any idea what I can do to make it work?
Cannot set file path by python property script
1712 4 0- AndreasOberg
- Member
- 117 posts
- Joined: Feb. 2015
- Offline
- Enivob
- Member
- 2629 posts
- Joined: June 2008
- Offline
- AndreasOberg
- Member
- 117 posts
- Joined: Feb. 2015
- Offline
Enivob
Show us what the filenames look like. Does your file contain four zero padded digits?
vfx_complex_01a_12x11_F132.0001.exr
I can make it read the file if I point only at the first so I have 0001.exr in the end. But the second I try to use $F4 then it stops working and it complains that the file cannot be found.
So just to iterate. If I would type this exact string in the file node then it works.
However if I have another node with a string/file property and I copy and paste relative, then it does NOT work.
This is in the img file node, that I try to load for compositing.
Cheers,
Andreas
- AndreasOberg
- Member
- 117 posts
- Joined: Feb. 2015
- Offline
- SWest
- Member
- 313 posts
- Joined: Oct. 2016
- Offline
Could you please provide a simple file including the Python you have so we could take a closer look?
Edit: or try something like this and see if it helps in your case
Edit: or try something like this and see if it helps in your case
hou.hscript('echo -n vfx_complex_01a_12x11_F132.$F4.exr')[0]
Edited by SWest - Jan. 29, 2023 10:28:14
Interested in character concepts, modeling, rigging, and animation. Related tool dev with Py and VEX.
-
- Quick Links