prman-pixar / RenderManForBlender

RenderMan for Blender render addon
MIT License
808 stars 134 forks source link

Unable to load Delayed RIB Archive to Blender after it is saved and loaded back in #686

Closed animate1978 closed 1 year ago

animate1978 commented 1 year ago

So I have a pretty massive set and am having issues loading in my various RIB Archives into a single RIB Archive. The idea is to reduce file sizes in exported RIB files as frames by using the RIB Archives workflow. However when I save my set after importing all the RIB Archive files in, close Blender, restart Blender and then attempt to load another RIB Archive I get hit with this error. Every time. The only way to fully create my set with RIB Archives is to do it at once and then export the RIB Archive, otherwise if I save and come back to it later I get the error.

Python: Traceback (most recent call last): File "/home/xxxxx/.config/blender/3.0/scripts/addons/RenderManForBlender/rman_operators/rman_operators_view3d.py", line 117, in execute with open(rm.path_archive) as f: FileNotFoundError: [Errno 2] No such file or directory: '//RIBArchive/AIR_VENT_RUBBLE.rib'

location: :-1

Using Ubuntu 20.04, Blender 3.0 to 3.6, RenderMan 25.2 and the dev branch of RenderMan for Blender...

prman-pixar commented 1 year ago

@animate1978

Can you try downloading the attached file and see if that fixes the issue?

Unzip the ZIP file and copy it to RenderManForBlender/rman_operators/rman_operators_view3d.py

Be sure to make a backup of the original in case something goes wrong.

rman_operators_view3d.zip

animate1978 commented 1 year ago

That seemed to work. I also tested on a previously saved file and that too allowed me to load RIB Archives.

prman-pixar commented 1 year ago

Thanks, I've committed the fix.