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

Access property of viewer object #135

Open
nizartaha opened this issue Apr 8, 2022 · 1 comment
Open

Access property of viewer object #135

nizartaha opened this issue Apr 8, 2022 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@nizartaha
Copy link

How do i access a property of a viewer object to update it?
for example, i could update pt cloud points with pointcloudobj._data = pt_cloud.points . how do i access the colors (or pointsize) and update them?

  pt_cloud, colors = load_point_cloud()
  pointcloudobj._data = pt_cloud.points
  # pointcloudobj._data['color'] = colors  # does not work
  pointcloudobj.update()
  viewer.view.update()

i have compas_view2 0.5.0
Thanks

@nizartaha
Copy link
Author

I could find the solution in bufferobject init definition here: src/compas_view2/objects/bufferobject.py . its pointcloudobj.pointcolors = colors
i will close the issue , but compas_view2 would need eventually better Documentation

@tomvanmele tomvanmele reopened this Apr 28, 2022
@tomvanmele tomvanmele added the documentation Improvements or additions to documentation label Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants