Notifications
Clear all
[Closed] MAXAKey values inside list controller
Jan 13, 2012 12:19 am
Could please someone explain me why I can not get MAXAKey values for attachment controller inside list controller?
A=Plane length:50 width:50 pos:[0,0,0]
B=GeoSphere pos:[0,0,0] radius:5
B.pos.controller = Position_List()
B.pos.controller.available.controller = attachment()
B.pos.controller[2].node = A
B.pos.controller[2].align = true
AAAAAA = B.pos.controller[2]
AttachCtrl.addNewKey AAAAAA 0f
AttachCtrl.getKey AAAAAA 1
All I could get is
#ReferenceTarget <deleted key>
4 Replies
Jan 13, 2012 12:19 am
Sorry for late answer (work work)
I tried it but it is not a way to get to key info (just assignet node , align and manual update)
Looks like attatchment is not compatible with list controller. U can put manualy face and bary pos to attachment under list controller, And it will work. But If U tray to add another key to it attachment just stops working.
Jan 13, 2012 12:19 am
My suggestion works ok here max 2010 and 2012
a=plane length:50 width:50 pos:[0,0,0]
b=geosphere pos:[0,0,0] radius:5
b.pos.controller = position_list()
b.pos.controller.available.controller = attachment()
b.pos.controller[2].node = a
b.pos.controller[2].align = true
attachcontroller = b.pos.controller[2].controller
attachctrl.addnewkey attachcontroller 0f
attachctrl.addnewkey attachcontroller 10f
key1 = attachctrl.getkey attachcontroller 1
key2 = attachctrl.getkey attachcontroller 2
key1.face = 2
key2.face = 4
-Johan