aws-deadline / deadline-cloud-for-houdini

AWS Deadline Cloud for Houdini
Apache License 2.0
12 stars 10 forks source link

Bug: parse scene files includes possibly unnecessary files #122

Closed lucaseck closed 5 months ago

lucaseck commented 5 months ago

Expected Behaviour

Parsing the scene for input files doesn't include unnecessary files or references that aren't actually files

Current Behaviour

There are cases where files like voptype.h voplib.h are included in the Input Filenames after clicking Parse Files. These files don't appear to be needed for rendering and are skipped during submission as missing files.

There are other cases where op: references to other nodes are included in the input files and are also evaluated and skipped as missing files during upload.

Reproduction Steps

To get the header files to be included:

The parsed files included: voptype.h voplib.h

To get the op: references being included:

The parsed files include: strcat("op:", opfullpath("sky_env_net/sky_env_map"))

When submitted this evaluates to - 'op:' in the asset manifest and the upload is skipped as the file doesn't exist.

Code Snippet

Some filtering on files to include vs not is already present here

for parm, ref in hou.fileReferences():
        if parm:
            if parm.node() == rop_node:
                continue
            if ref.startswith(IGNORE_REF_VALUES):
                continue
            if parm.name() in IGNORE_REF_PARMS:
                continue
        if os.path.isdir(ref):
            continue
        input_filenames.add(ref)

Things like opdef:", "oplib:", "temp:" are already being skipped, but not op: if it should be skipped.

crowecawcaw commented 5 months ago

op: references were fixed/excluded in https://github.com/aws-deadline/deadline-cloud-for-houdini/pull/132. The other unnecessary files still need to be investigated.

crowecawcaw commented 5 months ago

Confirmed that other unnecessary files are also filtered out as a result of https://github.com/aws-deadline/deadline-cloud-for-houdini/pull/132.