Hi Stefan,
this would be an OM approach, at least with only a few fcurves on my
testsetup it is pretty fast (four animated parameters, 2000 objects,
three seconds):
var oIn = 0;
var oOut = 1000;
var oTimeOffset = 100;
var eSel = new Enumerator(Selection);
while(!eSel.atEnd()){
var eAnimParams = new
Enumerator(eSel.item().NodeAnimatedParameters(siFCurveSource));
while(!eAnimParams.atEnd()){
var oFCurve = eAnimParams.item().Source;
oFCurve.OffsetKeys(oFCurve.GetKeysBetween(oIn, oOut), oTimeOffset);
eAnimParams.moveNext();
}
eSel.moveNext();
}
Hope that is of some help, cheers!
-André
Stefan Andersson wrote:
btw, I'm also going to do a scale version of this. And after that I
will write a little documentation and howtos.
And.... I was hoping that some scripting genious could take a look at
this, because right now I don't like how it selects the FCurves and
offset them. It's fine if you don't have that many objects, but when
you have a few thousands of objects it can take a really long time to
run it (though it will run, I've tested it on 2000 cubes... hehe).
I'm sure there is a object model or something I could use, but I'm
lost in the docs.
Suggestion and tips are most welcome.
regards
stefan andersson
On 9/7/07, Stefan Andersson <sanders3d(at)gmail.com> wrote:
Hello Eric,
yeah this is for XSI 6. Here is a simple "howto" with the usage
Remember, it takes the objects in the order that you picked them.
---------------------------------------------------------------------------------------------------------
ex.
1.) Make 10 cubes
2.) Animate them (translating them all in X=10)
3.) select them in the order of "first will be the leader, second will
be... etc"
4.) Run the plugin, select offset of 2, press DOIT and then CLOSE
---------------------------------------------------------------------------------------------------------
Do you have Python and Active Python installed?
what are the errors that you are getting?
regards
stefan andersson
On 9/7/07, Eric Thivierge <eric(at)xsidatabase.com> wrote:
Is this for xsi 6 > ????
What are the general steps to get it to work cause I'm getting errors.
Thanks,
Eric Thivierge, XSI Database Admin
www.xsidatabase.com
eric(at)xsidatabase.com
Forum Username: EricTRocks
Stefan Andersson wrote:
Hi All,
I finished writing the offset plugin. So if anyone is interested you
can download it and installed by extracting the python files in your
users folder.
ex:
C:\users\sanders\Softimage\XSI_6.02\Application\Plugins
http://sanders3d.googlepages.com/sanders3d_xsi_plugins.zip
Restart XSI and you should have a menu called Sanders3D (located
between "Display" and "Window" menu). I included my little rename
utility that I wrote to mimic the comet renamer plugin for maya.
They are all really basic but works "ok". Currently ONLY tested on:
WindowsXP 32bit
XSI 6.02 (foundation trial)
Python 2.4
The animation offset plugin supports Translate, Rotate, Scale and
visibility. Here is a small quicktime with a quick test
http://sanders3d.googlepages.com/animOffset.mov
Anyhow... enjoy :)
regards
stefan andersson
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi