Notifications
Clear all
[Closed] Referencing other scripts
Nov 09, 2015 5:54 am
Hi Brains trust , whats best practice to reference scripts within other scripts. ie
rollout rolloutDemo "Setup Render" width:200 height:300
(
button btn3 "set blah materials" pos:[25,20] width:132 height:58
on btn3 pressed do
(
"PATH TO SOME SCRIPT ON DISK"
)
I have a simple pop up with a rollout here , when the button is pressed I want to action a script that lives on disk somewhere.
B
3 Replies
Nov 09, 2015 5:54 am
Use filein command like this
rollout rolloutDemo “Setup Render” width:200 height:300
(
button btn3 “set blah materials” pos:[25,20] width:132 height:58
on btn3 pressed do
(
filein “xxxxxx.ms”
)
But with this you need to have the scripts in the same directory, else you need to specify the location of the script you want to run, like
fileIn (“C:\MYSCRIPT\xxxxxx.ms”)
You can also run a macroscript that is installed in your system with this command:
macros.run