Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Error: line 1: Cannot find procedure "look"

Error: line 1: Cannot find procedure "look"

Anonymous
Not applicable
36,145 Views
11 Replies
Message 1 of 12

Error: line 1: Cannot find procedure "look"

Anonymous
Not applicable

Hello, I have problem Error: line 1: Cannot find procedure "look" when click on object(anything) on outliner.

From this time, caused some error in arnold rendering. it's not solved after re-install maya 2019.
need help!

imgimg

0 Likes
36,146 Views
11 Replies
Replies (11)
Message 2 of 12

sean.heasley
Alumni
Alumni

Hi @Anonymous and welcome to the community!

 

Do you have any custom plugins or script that Maya could be looking for when doing that?

 

The quickest test for this is to try deleting your settings/preferences.

 

Please let me know if anything changes!

 

 

0 Likes
Message 3 of 12

sean.heasley
Alumni
Alumni

Hi @Anonymous 

 

Just wanted to check in to see how things were going. Are you still having this issue?

 

If your issue is resolved, please click Accept as Solution on the posts that helped you so others in the community can find them easily.

 

 

0 Likes
Message 4 of 12

Anonymous
Not applicable

It seems to come from the workspace itself!
If you open the workspace json, you can clearly see in the outliner widget the following command :

-selectCommand \"look\"

 We are currently having the same issue and I noticed it while reading the maya folder.
I will probably update you if we find a solution :)!

0 Likes
Message 5 of 12

Anonymous
Not applicable

So far, we found out that our scene had a selectCommand written in it for the outliner, and this line in the .ma gets written in the workspace's json once the scene has been saved.
So the steps we did to clean up this is to go in the scene and use this mel command  : 

outlinerEditor -edit -selectCommand "" "outlinerPanel1";

or python command : 

maya.mel.eval('outlinerEditor -edit -selectCommand "" "outlinerPanel1";') 

and we saved the scene.
We then cleaned our workspace json - it could by deleting the preferences and reopening maya, or it could be by just manually removing the selectCommand from the json file.

Have a nice day :)!

Message 6 of 12

Anonymous
Not applicable

But why we saved the scene?. What happending with this scene? 

0 Likes
Message 7 of 12

Anonymous
Not applicable

Hi, I have the same problem. Where as, when I click on the object in the outliner, that message come out : //Error line 1 : cannot find procedure "look" 

Can you help me with this? Thanks ! 

0 Likes
Message 8 of 12

vincentzhang420
Community Visitor
Community Visitor

I have the same problem.and You save me. I do appreciate it

0 Likes
Message 9 of 12

ldscowgorl411
Participant
Participant
i don't understand your fix? how do i find the scene and where do i put the command below? thanks

 

Post i am asking about...

So far, we found out that our scene had a selectCommand written in it for the outliner, and this line in the .ma gets written in the workspace's json once the scene has been saved.


So the steps we did to clean up this is to go in the scene and use this mel command:

outlinerEditor -edit -selectCommand "" "outlinerPanel1"

 

or python command : 

maya.mel.eval('outlinerEditor -edit -selectCommand "" "outlinerPanel1";') 

Message 10 of 12

Andy_vs
Explorer
Explorer

outlinerEditor -edit -selectCommand "" "outlinerPanel1"

worked for me! super weird. I had a scene where I just imported 2 OBJs. 
And when I'd switch between selecting meshes (in the outliner) I'd get that error. 

Message 11 of 12

chenyangjg
Explorer
Explorer
The reason for this problem is because of the "uiConfigurationScriptNode" in one or more of your Maya files (windows->Animation Editors->Expression Editor->select Filter-> By node Script name: "uiConfigurationScriptNode")
Line 531 in this script has "-selectCommand 'look'".

How to handle: 
1if your file suffix name is ".ma", open the file as text, search for "look", find "-selectCommand 'look'  ", delete it, and save it. 
2. If it is in the ".mb" format, open the file with Maya and save it as a file with the suffix ".ma" before starting with the first step.
3. open the Maya document folder, (C: users, Youname, Documents, maya, 2018, prefs, workspaces, delete the "Maya_Classic.json" fileor delete the "Maya_Classic.json" file in the "-selectCommand \'look'\\".
Message 12 of 12

1654226635
Community Visitor
Community Visitor
its done,thank you
0 Likes