LFShade
09-08-2002, 05:28 AM
the problem is likely in a different part of your script. if you could provide the whole script, that might help us troubleshoot this for you. Otherwise it's difficult to say what might be causing the object to be deselected.
one thing you might do, though, is put the selection into a variable (let's say 'foo'), and use select foo as the last action your script takes. There are better ways, but this is the best I can do without seeing your script.
Transform Gizmo
09-08-2002, 05:30 AM
whew
--***************** Position Buttons ******************
button poxyz "Position XYZ" width:100 height:30 pos: [20,35]
button bebo "Bezier Postion" width:100 height:30 pos: [20,65]
button lipo "Linear Postion" width:100 height:30 pos: [20,95]
button nopo "Noise Postion" width:100 height:30 pos: [20,125]
button papo "Path Constraint" width:100 height:30 pos: [20,155]
button pocon "Position Constraint" width:100 height:30 pos: [20,185]
button audpo "Audio Position" width:100 height:30 pos: [20,215]
button poreac "Postion Reactor" width:100 height:30 pos: [20,245]
button polist "Position List" width:100 height:30 pos: [20,275]
button poex "Position Expression" width:100 height:30 pos: [20,305]
button att "Attachment" width:100 height:30 pos: [20,335]
--***************** Rotation Buttons ******************
button eu "Euler XYZ" width:100 height:30 pos: [148,35]
button rotcb "TCB Rotation" width:100 height:30 pos: [148,65]
button auro "Audio Rotation" width:100 height:30 pos: [148,95]
button liro "Linear Rotation" width:100 height:30 pos: [148,125]
button la "Look At" width:100 height:30 pos: [148,155]
button mcro "MoClip SlaveRot" width:100 height:30 pos: [148,185]
button ori "Orien. Constraint" width:100 height:30 pos: [148,215]
button sm "Smooth Rotation" width:100 height:30 pos: [148,245]
button mocapro "Rotation MoCap" width:100 height:30 pos: [148,275]
button slro "Slave Rotation" width:100 height:30 pos: [148,305]
button reac "Rotation Reactor" width:100 height:30 pos: [148,335]
--***************** Scale Buttons **********************
button scxtzz "Scale XYZ" width:100 height:30 pos: [275,35]
button tcbsc "TCB Scale" width:100 height:30 pos: [275,65]
button lisc "Linear Scale" width:100 height:30 pos: [275,95]
button screac "Scale Reactor" width:100 height:30 pos: [275,125]
button noscale "Noise Scale" width:100 height:30 pos: [275,155]
button moclipsc "MoClip SlaveScale" width:100 height:30 pos: [275,185]
button slsc "Slace Scale" width:100 height:30 pos: [275,215]
button ScLi "Scale List" width:100 height:30 pos: [275,245]
button audsc "AudioScale" width:100 height:30 pos: [275,275]
button scex "Scale Expression" width:100 height:30 pos: [275,305]
button scsc "Scale Script" width:100 height:30 pos: [275,335]
--***************** Transform Controllers*****************
button linkcon "Link Constraint" width:100 height:30 pos: [400,35]
button prs "Pos/Rot/Scale" width:100 height:30 pos: [400,65]
button transc "Transform Script" width:100 height:30 pos: [400,95]
--***************** Position *********************
on poxyz pressed do $.pos.controller = Position_XYZ ()
on bebo pressed do $.pos.controller = Bezier_Position ()
on lipo pressed do $.pos.controller = Linear_Position ()
on nopo pressed do $.pos.controller = Noise_Position ()
on papo pressed do $.pos.controller = Path_Constraint ()
on pocon pressed do $.pos.controller = Position_Constraint ()
on audpo pressed do $.pos.controller = AudioPosition ()
)
CreateDialog ControlFreak height:400 Width:515
Transform Gizmo
09-08-2002, 05:32 AM
its messy, and only my second script, so its probably not laid out correctly, but it is what it is
LFShade
09-08-2002, 05:50 AM
Okay, the object is only being deselected if you happen to already have the controllers panel active when you press a button. I've attached a file that should fix this, along with some other recommended changes (added support for operating on multiple-object selections). Here ya go:
CGTalk Moderation
01-13-2006, 03:00 PM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.