question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ThreeDScene.move_camera() results in NotImplementedError

See original GitHub issue

Commit 62050bbb04a1f8e481972e1db36f2634dfbae425 changes the pass statements of some methods in Mobject() into NotImplementedError .

This causes the move_camera method in a ThreeDScene or SpecialThreeDScene to fail, throwing a NotImplementedError, as it uses the interpolate_color method of Mobject.

from manim import *

class TestScene(SpecialThreeDScene):
    def construct(self):
        self.move_camera(
            **self.default_angled_camera_position,
            run_time=1,
        )

The snippet above triggers the NotImplementedError in the interpolate_color method of Mobject()

This could be fixed by reverting the NotImplementedError of the interpolate_color method back into the pass statement that it originally was.

I think it would also prove fruitful if the methods become_partial and pointwise_become_partial also just had pass statements as they could also result in another method somewhere else not working properly.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
TonyCranecommented, Jun 3, 2020

Yes, become_partial is really useless because its function may be the same as pointwise_become_partial, and the latter is implemented by subclass.

0reactions
Aathish04commented, Jun 3, 2020

Oh, I see what you mean. That’s a better way.

Also, this is slightly unrelated, but I found that the method become_partial is not mentioned anywhere in the code other than as its definition in Mobject. Should it be removed outright?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ThreeDScene - Manim Community v0.17.1 - Docs
This method creates a 3D camera rotation illusion around the current camera orientation. begin_ambient_camera_rotation. This method begins an ambient rotation ...
Read more >
manim - ThreeDScene.move_camera () menghasilkan ...
Manim: ThreeDScene.move_camera () menghasilkan NotImplementedError. Dibuat pada 2 Jun 2020 · 9Komentar · Sumber: ManimCommunity/manim ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found