PDA

View Full Version : Maxscript: label from string?


[DTZ]
02-09-2003, 04:31 PM
Hi !

Real quick maxscript Q..

how do i create a label from a string value?

Can I do this?

Thanks

[DTZ]

magicm
02-09-2003, 06:18 PM
AFAIK, this cannot be done directly. but the following should work:

rollout testRollout "test"
(
    local testString = "i'm a caption!"

    label testLabel

    on testRollout open do ( testLabel.caption = testString )
)

createdialog testRollout

CGTalk Moderation
01-14-2006, 09:00 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.