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?
You can create a userSetup.mel in your default scripts directory and run all sorts of stuff from it, including loading other scripts using the "source" command. http://download.autodesk.com/global/docs/maya2013/en_us/index.html?url=files/PC_Run_MEL_commands_whenever_Maya_starts_up.htm,topicNumber=d30e57434
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…