Non GlobalAnimations test age

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.
D'Lanor
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Non GlobalAnimations test age

Post by D'Lanor »

Code: Select all

<region>:
    quickscript:
        selfanimation:
            animation: <animation name>
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
Grogyan
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am
MOULa KI#: 0

Re: Non GlobalAnimations test age

Post by Grogyan »

Would you believe that, that doesn't work on my machine.

You said that there isn't any debug output for the building of the script, how would I add that to the quickscripts.py?

Edit:
More proof that i'm an idiot, somehow all the scripts were no longer in the AlcScript file, but in another, so they were being forgotten, the quickscript is working
Better to have loved and lost than never to have loved at all
D'Lanor
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Non GlobalAnimations test age

Post by D'Lanor »

So where does the seekpoint go?
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
Grogyan
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am
MOULa KI#: 0

Re: Non GlobalAnimations test age

Post by Grogyan »

The seek point is the ObData centre, which makes it annoying tricky to place if you have complex geometry for the region, have to go into edit mode and select all vertices, then move the vertices without relation to the ObData centre, then go to Object mode to move the ObData centre to the right place, repeat and rinse.

Which is why i'd like to stick with using Empties as seek points, if I can
Better to have loved and lost than never to have loved at all
Tsar Hoikas
Councilor of Technical Direction
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
MOULa KI#: 23335
Location: South Georgia
Contact:

Re: Non GlobalAnimations test age

Post by Tsar Hoikas »

Grogyan wrote:The seek point is the ObData centre, which makes it annoying tricky to place if you have complex geometry for the region, have to go into edit mode and select all vertices, then move the vertices without relation to the ObData centre, then go to Object mode to move the ObData centre to the right place, repeat and rinse.

Which is why i'd like to stick with using Empties as seek points, if I can


You know, you can snap the center to the cursor, right?

It's one of those millions of options :ugeek:
Image
D'Lanor
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Non GlobalAnimations test age

Post by D'Lanor »

Grogyan wrote:Which is why i'd like to stick with using Empties as seek points, if I can

And now you can. ;) If you use this version of prp_QuickScripts.py from my contrib folder the following quickscript will work:

Code: Select all

<region>:
    quickscript:
        selfanimation:
            animation: <animation name>
            animtarget: <seekpoint empty>
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
Grogyan
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am
MOULa KI#: 0

Re: Non GlobalAnimations test age

Post by Grogyan »

Gee, thanks much D'Lanor
Better to have loved and lost than never to have loved at all
User avatar
Robert The Rebuilder
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
MOULa KI#: 1299
Location: Virginia, US

Re: Non GlobalAnimations test age

Post by Robert The Rebuilder »

D'Lanor wrote:Even more simple... add this to the fni file of the age:

Nav.PageInHold FemaleSwimDockExit
Nav.PageInHold MaleSwimDockExit



Just a follow-up on this post. The above code, added to the fni file (or to the 'init' page in Blender) will allow the non-global animation to work in your age. HOWEVER - when you attempt to link to the age that you 'borrowed' the animation from, URU will freeze at the 75% loading point. The problem is that this shortcut does nothing to unload that animation page when you leave the age, leaving it still in memory. When you visit the age that the page belongs to, there's a conflict.

To date, the safest way to borrow an animation is through Python, as described here.
Can we rebuild it? Yes, we can - here's how.

MOULagain KI# 1299

Myst Movie coming soon - spread the word!
Post Reply

Return to “Scripting”