Skip to content

new-synth-one does not run in python 3+ #3

@8ude

Description

@8ude

testing in wwise 2021.1.13, python 3.11

I attempted to run the New Random Synth One x10 command, and noticed that it displayed an empty console window but did nothing else. There was no debug information

when attempting to manually run new-synth-one\\__main__.py in a text editor (VSCode) I received the error

TypeError: object of type 'map' has no len()
object of type 'map' has no len()

A brief search suggests that map no longer has the len() function in python 3.x

There is also syntax at line 260 of this script that could be trying to call a map item using indexing --

ancestors = client.call("ak.wwise.core.object.get", {"waql": f'$ "{selected[0]}" select this, ancestors where type : "container" or type : "folder" or type : "workunit" and category = "actor-mixer hierarchy"'})["return"]

where selected is potentially declared as a map in line 252

Is this outdated python code, or is there a way to make this work with python 3.x? Please advise, and thank you for providing this example!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions