Announcement

Collapse
No announcement yet.

How to set output by vantage_console(vantage 2.0)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to set output by vantage_console(vantage 2.0)

    Hey guys,

    There were output and frames options in the previous version, but they are gone now. How can I set the output through command line in vantage 2.0?

    Thanks

  • #2
    I found HTTP api is work.
    Code:
    import requests
    import json
    
    
    source_attr = {
    'command': 'startLiveLinkSequence',
    'path': 'c:\\1.png',
    'width': '1024',
    'height': '1024',
    'samples': '100',
    'startFrame': '1',
    'endFrame': '1',
    'fps': '30',
    'lightCache': 'true',
    'denoiser': 'true',
    'pngAlpha': 'true',
    'denoiserForIntermediate': '1',
    'temporal': '1',
    'motionBlur': '1',
    'autoExposure': '1',
    
    }
    req_json = json.dumps(source_attr)
    
    a = requests.post(r'http://localhost:20702/command', data=req_json)
    print(a.json())

    didaxr

    Comment


    • #3
      Thank you @didaxr ,

      I am not familiar with the API. Can you (or any other digital-samaritan) explain how to use that script?

      Thank you very much
      Last edited by Galeon; 09-11-2023, 08:49 AM.

      Comment

      Working...
      X