chunkGet returns “None”

Viewing 2 posts - 1 through 2 (of 2 total)
  • 31st March 2016 at 9:03 pm #14569

    I’ve been trying to create a python script to extend muster and do some things in the chunk view…

    I was starting to play around by using the basic example provided in the documentation:

    import MConsoleAPI
    err , chunk = MConsoleAPI.chunkGet(1,1) # Get the first chunk of job ID 1
    if (err.getErrorCode() != 0): sys.exit(err.getDescription())
    print (“Job first chunk starts at frame : ” + str(chunk.getStartFrame()))

    It doesn’t work because chunkGet always returns None for the chunk no matter what the jobId and ChunkId is set to.

    This example also fails for the same reason:

    import MConsoleAPI
    err, jobId, list = MConsoleAPI.getChunksViewSelection()
    if (err.getErrorCode() != 0): sys.exit(err.getDescription())
    for chunkId in list:
    err, chunk = MConsoleAPI.chunkGet(jobId,chunkId)
    if (err.getErrorCode() ==0): print(“Selected chunk frame: ” + chunk.getStartFrame())

    I am 100% positive there is a valid jobId and chunkId either specified or selected. This seems so basic that I’m sure i’m doing something wrong, but I can’t figure it out. I can work with all the other functions with no issues.

    19th February 2018 at 1:35 pm #16656

    chunkGet had a bug where the database ID was expected instead of the chunk progressive ID. It has been fixed in 8.6.19

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.