Maya wont let me execute any script!!!

Maya wont let me execute any script!!!

hitecom8172
Enthusiast Enthusiast
3,400 Views
4 Replies
Message 1 of 5

Maya wont let me execute any script!!!

hitecom8172
Enthusiast
Enthusiast

Hello,

I am trying to execute a mel script but i cant the moment i execute a script nothing shows up in my scene.

https://www.highend3d.com/maya/script/v-ray-tuner-for-maya-for-maya

I am trying to execute this but nothing happens when i execute. Pls help me ASAP.

0 Likes
Accepted solutions (1)
3,401 Views
4 Replies
Replies (4)
Message 2 of 5

sean.heasley
Alumni
Alumni

Hi @hitecom8172 

 

This script is very old so it may be having compatibility issues.

 

That said, did you paste the file into the proper scripts folder? Also, when you run the code is it giving any errors? If so what errors are showing?

 

 

 

Message 3 of 5

sean.heasley
Alumni
Alumni
Accepted solution

Hi @hitecom8172 

 

I just tried this on 2019 and had no issues.

 

Make sure to paste the script and the python file into the scripts folder usually found at Documents\maya\2019\prefs\scripts

 

Once in Maya, open the script editor and run the name of the script which is:
vraytuner

 

If one or more of these posts helped answer your question, please click Accept as Solution on the posts that helped you so others in the community can find them easily.

 

 

 

Kudos are greatly appreciated. Everyone likes a thumbs up!

 

 

Message 4 of 5

hitecom8172
Enthusiast
Enthusiast

Hi there,

 

I tried doing what you said and placed the script in the scripts folder but nothing happened.

// Warning: Line 7793.35 : Redeclaration of variable "$myDC" shadows previous declaration at line 7450. Previous value will be overwritten by explicit initializer.

nothing shows up maya 2018.5 i don't know what's wrong here.

 

0 Likes
Message 5 of 5

hitecom8172
Enthusiast
Enthusiast

Oh god i am such a huge idiot!!!!!!

This is  what I was doing wrong :-

 

1. not place the scripts in the scripts folder.

2. Open the script editor and try executing the open script

 

All i had to do to fix this was :

Open a new mel tab and type the name of the script.

 

How can i be so freaking dumb!!!!!

Thank you sean for helping me recollect on how to do such a simple thing.