The usual thing is to write a general use command in Python, then just call that command in vb in the synoptic.
On 8 March 2013 18:19, Kris Rivel <[email protected]> wrote: > Wow Raff...you really don't like FK chains...lol! Thanks guys for the > tips. I'll have to figure it out for vbs as its in a pretty big synoptic > page already that I won't have time to recode in something else....unless > there's a way to insert a flag so that some things in the synoptic can be > run in something other than vbs :-/ > > Kris > > > On Thu, Mar 7, 2013 at 8:40 PM, Eric Thivierge <[email protected]>wrote: > >> Takes obj1's rotation and puts it on obj2's while keeping it's position: >> >> # Python >> xsi = Application >> collSel = xsi.Selection >> >> obj1 = collSel(0) >> obj2 = collSel(1) >> >> xformTemp = XSIMath.CreateTransform() >> xform1 = obj1.Kinematics.Local.GetTransform2(None) >> xform2 = obj2.Kinematics.Local.GetTransform2(None) >> >> xformTemp.SetTranslation(xform2.Translation) >> xformTemp.SetRotation(xform1.Rotation) >> >> obj2.Kinematics.Local.PutTransform2(None, xformTemp) >> >> -------------------------------------------- >> Eric Thivierge >> http://www.ethivierge.com >> >> >> On Thu, Mar 7, 2013 at 8:37 PM, Raffaele Fragapane < >> [email protected]> wrote: >> >>> Application.Selection(0).Kinematics.Global.Transform = >>> Application.Selection(1).Kinematics.Global.Transform >>> >>> Will match one object in the selection to the other. >>> >> >> >

