Suppress output when using pyluxcore

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Post Reply
mick
Posts: 80
Joined: Mon May 21, 2018 7:57 pm

Suppress output when using pyluxcore

Post by mick »

pyluxcore write as lot of information (to stdout?). How can I suppress that logging?
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Suppress output when using pyluxcore

Post by Dade »

mick wrote: Sun May 27, 2018 6:43 pm pyluxcore write as lot of information (to stdout?). How can I suppress that logging?
Yes, the pyluxcore.Init() method takes an optional callback, the default function just print to the stdout:

Code: Select all

def PrintHandler(msg):
  print(msg)
 
pyluxcore.Init(PrintHandler)
Support LuxCoreRender project with salts and bounties
Post Reply