PDA

View Full Version : How to get control name from include file?


loverice
02-25-2009, 05:50 AM
I want to separate ui and script part by include<"file_name"> function(s),but I don't know how to get control names from other files.

Example:
--layerout.ms
utility uiPart "someTools"
(
--Use visual maxscript editor generat these code
button btnSayHi "Rename" pos:[87,256] width:64 height:22
--I want to running it only add these code,but how can I get button name from main.ms?
on uiPart open do
(
include "main.ms"
)
)

--main.ms
on btnSayHi pressed do
(
messageBox "Hi!"
)

Sorry for my English...

CGTalk Moderation
02-25-2009, 05:50 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.