#6 -W option does not work with render.py

Bug
closed
nobody
None
5
2006-02-15
2006-02-11
Chris Foster
No

Running the command

render.py -W1024 test.py

results in a render of the default width (640). The -H
option is also broken. At least, I may have
misunderstood the intention of the -W and -H commands,
(should I be using -O ?)

Looking at the code, it seems that the width option is
making it's way into

Tool.option.width

but ribexport.py uses the global value from the scene:

res = scene.getGlobal("resolution", (640,480))

when calling RiFormat. I've "fixed" the problem, but
not knowing the architecture very well I'm not sure if
the fix should be in render.py or in tool.py??

Anyhow, I've attached the trivial diff... it may be
useful in indicating what to do to fix the problem.

Discussion

  • Chris Foster
    Chris Foster
    2006-02-11

    Kludge(?) to fix -W and -H options for render.py

     
    Attachments
  • Matthias Baas
    Matthias Baas
    2006-02-15

    • status: open --> closed
     
  • Matthias Baas
    Matthias Baas
    2006-02-15

    Logged In: YES
    user_id=211477

    The fix is in cvs. Basically, I used the approach you were
    suggesting but put the code in a different place so that the
    command line overrides settings in the scene file.

    - Matthias -