ID 399577 - Modo gets a LookupError due to the ChannelRead in the following script.

Follow

Problem summary
Modo gets a LookupError due to the ChannelRead in the following script.

This seems to occur after overwriting the Action names.

Customer reported version
modo.13.0v1

 

Customer reported platform
windows10

 

Steps to reproduce

 

1) Open Modo and select Layout>Palettes>Scripting.

2) Put the following python script into the Script Editor.


 

#pyton

import modo

lx.eval('script.run "macro.scriptservice:32235733333:macro"')

lx.eval('group.create TestActor actr selItems')

lx.eval('group.layer name:TestAction grpType:actr')

scene = modo.scene.current()

actor = modo.Actor('TestActor')

action = actor.actions[0]

ch_read = scene.Channels(action.name, 0) # succeed

action.name = action.name # Overwrite with same name.

ch_read = scene.Channels(action.name, 0) # LookupError exception on MODO 13

3) Run the script and notice that you get the following error:

 

Expected behaviour
The script shouldn't encounter any errors.

 

Actual behaviour

The script encounters a LookupError.

 

Workaround
Unknown.

 

Reproduced by support

 

This bug has been reproduced in:
Modo 13.0v1 - Windows 10 - Centos 7 - MacOS 10.13

 

Unable to reproduce bug in:

Modo 12.2v2 - Windows 10 - Centos 7 - MacOS 10.13 -regression

 

Earliest version tested

Modo 12.2v2 - This issue no longer appears in this version and has regressed.
 

 

 

    We're sorry to hear that

    Please tell us why