Galleon
12-23-2010, 06:09 AM
Hi,everyone
I would like to place a button in material plugin,
and change the button text when pressed it.
The problem is that while i leave the rollout ,The text will
turn back againt.
It's necessary defines a set of parameters?
Any ideas, how to fix this?
Thanks a lot
code:
--------------------------------------------------
plugin material Test
name:"Test"
classID:#(695425,446581)
extends:Standard
replaceUI:true
(
parameters main rollout:params
(
)
rollout params "Test Parameters"
(
button theButton "Old name"
on theButton pressed do theButton.text="New name"
)
on create do
(
)
)
------------------------------------------------
I would like to place a button in material plugin,
and change the button text when pressed it.
The problem is that while i leave the rollout ,The text will
turn back againt.
It's necessary defines a set of parameters?
Any ideas, how to fix this?
Thanks a lot
code:
--------------------------------------------------
plugin material Test
name:"Test"
classID:#(695425,446581)
extends:Standard
replaceUI:true
(
parameters main rollout:params
(
)
rollout params "Test Parameters"
(
button theButton "Old name"
on theButton pressed do theButton.text="New name"
)
on create do
(
)
)
------------------------------------------------
