Non GlobalAnimations test age

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

Re: Non GlobalAnimations test age

Postby D'Lanor » Fri Jan 09, 2009 6:18 pm

Code: Select all
<region>:
    quickscript:
        selfanimation:
            animation: <animation name>
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Non GlobalAnimations test age

Postby Grogyan » Fri Jan 09, 2009 7:26 pm

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
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Non GlobalAnimations test age

Postby D'Lanor » Sat Jan 10, 2009 5:44 am

So where does the seekpoint go?
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Non GlobalAnimations test age

Postby Grogyan » Mon Jan 12, 2009 12:30 am

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
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Non GlobalAnimations test age

Postby Tsar Hoikas » Mon Jan 12, 2009 3:28 am

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
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: Non GlobalAnimations test age

Postby D'Lanor » Mon Jan 12, 2009 11:52 am

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
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Non GlobalAnimations test age

Postby Grogyan » Mon Jan 12, 2009 11:24 pm

Gee, thanks much D'Lanor
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Non GlobalAnimations test age

Postby Robert The Rebuilder » Sat Jun 13, 2009 7:27 pm

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!
User avatar
Robert The Rebuilder
 
Posts: 1383
Joined: Sat Sep 29, 2007 7:24 am
Location: Virginia, US

Previous

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron