[Closed] why the words automatic missing?
i make a simple script for company’s workflow,but it has a strange things. when i finish the script. it runs well.but when i save and exit the 3dsmax,and next time i open it .it happen . the word “function” is automatic missing.so the script output error.i add it again, it runs well again. and the missing one everytime is that one. i change that function to another place. but still happen again and again.why this ? can some one help me ?thanks a lot.
Can you give us more info? Can you post the function? Are you using callback scripts?
It could be that you declare your functions in the ‘wrong’ order.
So when you developing your script it executes all functions and your script works.
After closing and reloading max and your script max doesn’t know anything about your functions and stops working.
Put (not But) the functions on top of your script in the order they call each other.
This was something I struggled a long time and even today sometimes.
Hope this helps
Georg
had the same problem today. script i worked on yesterday didnt work today and all because i didnt declare my variables at the top.
Put the functions on top of script works. but still have happen sometime.this is very strange.it still happen at same script same place
Post the script and people will be able to help you. This is just an issue of scope but no body can tell you what you need to do without seeing what is happening.
i know that is 3dsmax bug .try this