Actually you can cut out most of that gumpf! (I'm still getting to grips
with Python)


xsi = Application
xsi.TranslatePivot(xsi.Selection, x, y, z)

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Gareth
Bell
Sent: 17 May 2012 17:36
To: [email protected]
Subject: RE: Match Center via scripting

do you mean centre or pivot?

for pivot try this:

import win32com
xsi = Application

oColl = (xsi.Selection)

for oObjs in oColl:
        xsi.TranslatePivot(oObjs , x, y, z)             #put in your
coordinates at x, y and z

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dwayne
Elahie
Sent: 17 May 2012 17:05
To: [email protected]
Subject: Match Center via scripting

Hi,

I was wondering how do you match object centers via scripting. Softimage

script editor does not reveal the code. When I try to repeat what the 
script editor gave me, the object itself moves instead of the center.

Thanks,

Dwayne



Reply via email to