Skip to content

AttributeError: 'ThreeDCamera' object has no attribute 'extract_mobject_family_members' #669

@BrendanMartin

Description

@BrendanMartin

Tried running the example:

# To see the text in the traditional form:
class Text3D3(ThreeDScene):
    def construct(self):
        axes = ThreeDAxes()
        self.set_camera_orientation(phi=75 * DEGREES,theta=-45*DEGREES)
        text3d=TextMobject("This is a 3D text")

        self.add_fixed_in_frame_mobjects(text3d) #<----- Add this
        text3d.to_corner(UL)

        self.add(axes)
        self.begin_ambient_camera_rotation()
        self.play(Write(text3d))

        sphere = ParametricSurface(
            lambda u, v: np.array([
                1.5*np.cos(u)*np.cos(v),
                1.5*np.cos(u)*np.sin(v),
                1.5*np.sin(u)
            ]),v_min=0,v_max=TAU,u_min=-PI/2,u_max=PI/2,checkerboard_colors=[RED_D, RED_E],
            resolution=(15, 32)).scale(2)

        self.play(LaggedStart(ShowCreation,sphere))
        self.wait(2)

And got the error:

Traceback (most recent call last):
  File "c:\users\brendan\appdata\local\programs\python\python38\lib\site-packages\manim\__main__.py", line 75, in main
    scene.render()
  File "c:\users\brendan\appdata\local\programs\python\python38\lib\site-packages\manim\scene\scene.py", line 88, in render
    self.construct()
  File "test.py", line 141, in construct
    self.add_fixed_in_frame_mobjects(text3d) #<----- Add this
  File "c:\users\brendan\appdata\local\programs\python\python38\lib\site-packages\manim\scene\three_d_scene.py", line 223, in add_fixed_in_frame_mobjects
    self.renderer.camera.add_fixed_in_frame_mobjects(*mobjects)
  File "c:\users\brendan\appdata\local\programs\python\python38\lib\site-packages\manim\camera\three_d_camera.py", line 370, in add_fixed_in_frame_mobjects
    for mobject in self.extract_mobject_family_members(mobjects):
AttributeError: 'ThreeDCamera' object has no attribute 'extract_mobject_family_members'

System Specifications

System Details
  • OS: Windows 10
  • Python version (python/py/python3 --version): 3.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    pr:bugfixBug fix for use in PRs solving a specific issue:bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions