ID 267225 - [@timerange] argument on --render-node batch mode option causes error

Follow

Problem summary
According to the help text about batch render flags it should be possible to specify the time range to render on a particular render node in the --render-node flag:

--render-node=NodeName[@timerange][=path] or nodeRef:NodeName/ref.param.path


The node to render.  The optional "@timerange" limits the frames that this node renders on; the optional "=path" sets the output path this node will render to.      The nodeRef form allows you to specify the path to a string parameter that evaluates to the name of a node in the scene.


However, this option does not work as intended. Using it on its own without specifying a time range with the -t flag, the render stops and this is printed to the terminal:
Frame range required; please pass a -t argument.

When a frame range is specified using -t, then using this flag in a batch render still prints an error to the terminal:
[ERROR python.root]: An AttributeError occurred in "MainBatch.py": 'NoneType' object has no attribute 'setValue'
    Traceback (most recent call last):
      File "python/Main\Main.py", line 367, in <module>
      File "python/Main\Main.py", line 313, in __main
      File "bin\python\Main\MainBatch.py", line 96, in Main
      File "bin\python\Main\MainBatch.py", line 398, in __setupOutputs
    AttributeError: 'NoneType' object has no attribute 'setValue'

Customer reported version
Katana 2.5v3

Customer reported platform
CentOS7

Steps to reproduce

1) Create an ImageColor node and connect it to an ImageWrite node.
2) Specify an image output path on the ImageWrite under inputs.file.
3) Save and close the scene.
4) Run the following batch commands:

  • katana --batch --katana-file=/tmp/ImageWrite.katana --render-node=comp@1-5=/tmp/compOut.%3d.exr  
    Result: Image is not rendered and a message in the terminal asks for a frame range to be specified.

  • katana --batch --katana-file=/tmp/ImageWrite.katana --render-node=comp@1-5=/tmp/compOut.%3d.exr -t=1-5Result: Attribute error mentioned above.

  • katana --batch --katana-file=/tmp/ImageWrite.katana --render-node=comp=/tmp/compOut.%3d.exr -t=1-5 Result: Render works as expected

Workaround
Use the -t flag to specify the frame range in a batch render.

Reproduced by support
Katana 2.5v1, 2.5v5 Windows 7
Katana 1.6v3, 2.0v1, 2.0v5, 2.1v1, 2.1v5, 2.5v1, 2.5v5 RHEL 6.4

Expected behaviour
The [@timerange] option should work to set the render time range on the specified render node.

Actual behaviour
Only -t works to set the time range

    We're sorry to hear that

    Please tell us why