Notifications
Clear all

[Closed] change parenting by listbox and Pickbutton

Hi:
Trying changing parent this is my script
–====================

      rollout a "Link" 
(
    local obj01 = undefined
    local obj02 = undefined       
    pickbutton btn_01 "Pick_your_objecs"

    on btn_01 picked obj do
    (       
    obj01 = obj           
    btn_01.text = obj01.name
    $A.parent=obj01
        
    )

)   

rof=newrolloutfloater “Linking” 200 100
addrollout a rof
rof.size=[200,100]
—===========
I need help to put picked object in listbox and double click changes the parent

We have : 1_ a pickbutton and a listbox in attribute holder. 2_we have A and B an C objects in the Scene.
When i pick B and C object by pickbutton it appear in listbox’s list and when double click on it links A or C to B.

Thanks anyway