Closed antirotor closed 3 months ago
Ah, I just fixed this today in another test - by skipping any parm that returns any keyframes, e.g. if parm.keyframes(): continue
This was my added code:
if param.keyframes():
# Calling `.unexpandedString()` below fails if param has
# keyframes - so for now we will skip those params. These are
# e.g. present in `filecache` nodes.
continue
I can set up a PR later today if needed.
I actually hit this issue if there was a filecache
node anywhere in the scene. Which I think is due to sopoutput
parm on that node being driven by other parms.
Is there an existing issue for this?
Current Behavior:
Whenever scene contains nodes with file path parameter that has an expression on it, validate_workfile_paths crashes when trying to get unexpanded string. This can be replicated by loading alembic as Alembic Archive (where sub-nodes have file path constrainted by expression to common root node).
Expected Behavior:
Validator should be able to handle this case, probably by skipping parameter when there are keyframes or expression on it.
Version
1.0.0
What platform you are running on?
Windows
Steps To Reproduce:
Are there any labels you wish to add?
Relevant log output:
Additional context:
Note that there is OpenPype addon used in the traceback, but it applies even to latest avalon-core 0.3.x
[cuID:AY-5399]