2. I type this little string variable in the Script Editor:
string $selectedObject = `ls -sl`;
3. I execute the command and I get this error;
----// Error: Invalid redeclaration of variable "$selectedObject" as a different type. //
4. Then , I type exactly the same string variable except for the small "s" letter in front of the name of my variable, which is "selectedObject"...
string $SelectedObject =`ls -sl`;
I get this.... I am about to go crazy!
----// Result: pSphere3 pSphere4 //
what is going on man!?!?! ıf there is a rule indicatin us that we should only use capital "s" letters while naming our variables, please fill me in about that rule. I tried many letters and all of them worked.
Do you know anything?
NOtE: wait a second wait a second fox!! I relized that Maya always keeps in minde till It is closed by the user.. I restart Maya and small s worked fine... So, What should ı do to fix this without restarting the application?
now, you can answer this basic question I think.. :)