[Closed] Pickbutton get the name but
Hi
This is a simple CA with pickbutton, when you pick an object with the pickbutton it takes objects’ name.but the name will not exist if you selec another object go back to the object cotaining CA
pickbutton has the default name
thanks in advance
—-================================
def=attributes nodeStore
(
rollout nodesR “Nodes” width:162 height:193
(
pickbutton linkObject “Get_Object” pos:[9,14] width:104 height:21 autodisplay:True
button bclr “Clr” pos:[130,14] width:20 height:21
local obj01 = undefined
on bclr pressed do
(
linkObject.text = "None"
)
on linkObject picked obj do
(
linkObject.text =obj.name
)
)
)
ah=(EmptyModifier())
addModifier $ ah
custAttributes.add ah def
—==================================
There are no parameters in your code that would be linked to the pickbutton:
parameters params rollout:nodesR
(
theObject type:#node ui:linkObject animatable:false
)
Read the Scripted Plug-in Clauses topic in maxscript reference, it’s all there.