Re: Animtion Offset plugin

Date : Fri, 07 Sep 2007 11:51:30 +0200
To : XSI(at)Softimage.COM
From : André Adam <a_adam(at)49games.de>
Subject : Re: Animtion Offset plugin
Oh, and store your PPG Values into variables before you move on with looping through the parameters; XSI is amazingly slow at navigating the scene graph, and your script currently digs up the same PPG values for each and every iteration.

Something like this should speed up your script considerably, even without using any OM hooks...

oFOffset = PPG.FrameOffset.Value
oEndFrame = PPG.EndFrame.Value

<BLA_BLA_BLA_LOOP_LOOP_LOOP>

xsi.ScaleAndOffset(xsi.Selection(i).Name + ".kine.local.pos*","siInputParameters", oFOffset * i, "", "", oEndFrame, 0, 0, "siFCurvesAnimationSources", "", 1, "")

<BLA_BLA_BLA>

   -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

--
__________________________________________
Pixel Abuser (at) http://www.swiss.se/
Blog (at) http://sanders3d.blogspot.com/
work e.mail: stefan [at] swiss.se




--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.