depends, if the scripts file name is cloud that would load the script into memory allowing access to all of its functions. if the script is called cloud and has a function named cloud than simply running. cloud(); would be enough. if you want a script to run on maya startup, just put the same command in the userSetup.mel…
Thanks for the answer, Have i understood this correctly: 1. Create a file called userSetup.mel in my Maya script folder. 2. If the ordinary command for launching the script is "cloud;" Then i simply write in: source cloud; in the mel file?
source wants a filename that will then be executed/loaded, so depending on where the cloud-function is defined, you need to source that file. This is all in the case of MEL scripts btw, for Python you have to do it differently - either use the python() function in the userSetup.mel or make a userSetup.py as passerby…