Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_object method missing #2

Open
ManuelTraub opened this issue Mar 16, 2022 · 0 comments
Open

add_object method missing #2

ManuelTraub opened this issue Mar 16, 2022 · 0 comments

Comments

@ManuelTraub
Copy link

In main.py an add_object method for the controller seems to be missing:

the following code fixed it for me:

def add_object(self, *args, **kwargs):
object_id = self.get_unique_id()
object = self.get_add_object(
*args,
object_id = object_id,
**kwargs
)
self.communicate(object)
return object_id

My setup:
Ubuntu 18.04.5 LTS
Python 3.9.7

Output for (python main.py --out-dir data --config-file configuration_files.json --config-start 0 --config-end 1 --scene-type scene_1):
Build version 1.9.10
Unity Engine 2020.3.24f1
Python tdw module version 1.9.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant