ProgressLogConsumer

class omni.kit.converter.common.ProgressLogConsumer(channel: str)

Bases: object

Class to extract progress/step updates from HOOPS/DGN/JT backend converters

Methods

__init__(channel)

ProgressLogConsumer initialization and sets log level to INFO

destroy()

extract_line(msg)

Extract message into step/progress info

on_log(channel, level, msg)

Extract progress and step updates

set_enabled(enabled)

Enable/disable the log consumer

set_progress_changed_callback(cb)

Set change in progress

set_step_changed_callback(cb)

Set change in step

__init__(channel: str)

ProgressLogConsumer initialization and sets log level to INFO

Args

channel (str): The name of the progress channel

static extract_line(msg: str)

Extract message into step/progress info

on_log(channel, level, msg)

Extract progress and step updates

set_enabled(enabled)

Enable/disable the log consumer

set_progress_changed_callback(cb)

Set change in progress

set_step_changed_callback(cb)

Set change in step