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

open3d.visualization.Visualizer.get_render_option() return NoneType Object #6763

Open
3 tasks done
data-hound opened this issue Apr 22, 2024 · 0 comments
Open
3 tasks done
Labels
bug Not a build issue, this is likely a bug.

Comments

@data-hound
Copy link

Checklist

Describe the issue

I have been trying to reproduce the example custom_draw_geometry_with_camera_trajectory in the docs. But, I keep getting error:
AttributeError: 'NoneType' object has no attribute 'load_from_json'

Steps to reproduce the bug

import open3d as o3d 
import numpy as np 
import matplotlib.pyplot as plt
import os

ply_point_cloud = o3d.data.PLYPointCloud()
pcd = o3d.io.read_point_cloud(ply_point_cloud.path)

cus_viz_demo = o3d.data.DemoCustomVisualization()

my_viz = o3d.visualization.Visualizer()
pcd.paint_uniform_color([0.5, 0.5, 0.5])
my_viz.add_geometry(pcd)

my_viz.get_render_option().load_from_json(cus_viz_demo.render_option_path)

Error message

Cell 10 line 5
3 my_viz.add_geometry(pcd)
4 # ro = my_viz.get_render_option()
----> 5 my_viz.get_render_option().load_from_json(cus_viz_demo.render_option_path)

AttributeError: 'NoneType' object has no attribute 'load_from_json'

Expected behavior

open3d.visualization.RenderOption object should be returned

Open3D, Python and System information

- Operating system: Ubuntu 20.04 
- Python version: Python 3.9
- Open3D version: output from python: 0.18
- System architecture: x86 
- Is this a remote workstation?: yes
- How did you install Open3D?: pip 
- Compiler version (if built from source): gcc 7.5 / clang 7.0

Additional information

No response

@data-hound data-hound added the bug Not a build issue, this is likely a bug. label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not a build issue, this is likely a bug.
Projects
None yet
Development

No branches or pull requests

1 participant