Skip to main content
Participant
October 14, 2021
Answered

4-Line PS Script Error (Changing PaintingCursor)

  • October 14, 2021
  • 1 reply
  • 280 views

Hi, does anyone know what's wrong with this code?

if (app.preferences.paintingCursors == PaintingCursors.STANDARD){ 
    app.prefences.paintingCursors = PaintingCursors.BRUSHSIZE; } 
else if (app.preferences.paintingCursors == PaintingCursors.BRUSHSIZE){ 
    app.prefences.paintingCursors = PaintingCursors.STANDARD; } 

 I get "undefined is not an object" in line 2 (and therefore in 4 aswell)..

Any Ideas?

 

Regards, Jakob

This topic has been closed for replies.
Correct answer Kukurykus

You made mistakes in this word: preferences

1 reply

Kukurykus
KukurykusCorrect answer
Legend
October 14, 2021

You made mistakes in this word: preferences

Participant
October 14, 2021

oh noo! xD thank you!

Walter_H
Legend
October 14, 2021

Jacob, Kukurykus is correct! You have wrong spelling in line 2 & 4. app.prefences.paintingCursors should be app.preferences.paintingCursors.

 

 

--Walter in Davie, FL