Naming an object "view"

If you make a clip, name it “view,” and click play, Wick just brakes the same second you press the play button.

My editor broke 4 times before I realized that this was the issue, so I thought it might be useful if I report it. I think “view” should be a reserved word (I mean, this.project.view is a thing, right? So naming a clip, “view,” and having the editor brake makes sense).

Yes, I did answer all the bug reporting questions

Has this bug been reported already?
I don’t think so

Describe the bug
Name an object “view” then click play, and Wick Editor breaks

To Reproduce
Steps to reproduce the bug, if you have them:

  1. Make a clip
  2. Name the clip “view”
  3. Play the project
  4. See error

Expected behavior
The editor should either notify the user that the word “view” is a reserved one, or just not break.

Screenshots
Name an object “view”
Screenshot 2021-02-18 at 7.07.50 PM
Play the project

*Computer Information

  • OS: [e.g. Windows, MacOS, iOS, Android, Linux]
  • Device Type: Desktop , Tablet, Mobile
  • Browser [e.g. Chrome , Firefox, Safari, Edge]

Do you have a suggested solution to this issue?
view should be a reserved name

1 Like

It probably is. For like the view of the project

1 Like

yes, this.project.view refers to the overall view on the canvas from the editor (I think, I don’t use it that much). I think having a clip named view makes the view of the project refer to that clip, therefore breaking the editor (am not sure though).

this.project.view is also used in the built-in vcam

What I meant when I said it should be reserved is that the editor shouldn’t allow a clip to be named “view” (and show you a little note that says “Identifier must be a valid variable name”)

Thanks for the reply :slight_smile:

1 Like