Page 1 of 1

Guidance re Cickables please

PostPosted: Fri Jul 18, 2008 5:18 am
by ekimmai
Okay, so I'm a bit behind - only just now trying to introduce clickables to my ages - and getting very stuck very quickly! Please can someone point me in the right direction from here??

I've been following the tutorial at: http://guildofwriters.com/wiki/How_to_m ... _Clickable.
I've prepared some basic animation (turning wheel/lock), got a switch ready (to act as trigger to the animation), adding a clickable region around the switch/avatar. Got to the point in the tutorial about Python - and "ah errrrrmmmm.....". I have downloaded UruPython in case that helps but am clueless as to how to even go about starting a new Python file.

Do I edit a current file or start a fresh one somehow?
Is the code in the tutorial ALL you need to achieve some simple effects?
Do I need to create the avatar animation myself (eek)?
Oh, and can the current plugin handle animated rescaling of objects (as well as movement and rotation)?
Questions questions..... :?

I've searched the wiki but just find portions of advice which are not really getting me very far.
Any help would be greatly appreciated.

Ekimmai

Re: Guidance re Cickables please

PostPosted: Fri Jul 18, 2008 5:43 am
by Lontahv
Don't worry about having to make your own AvatarAnim. That's not implemented yet so even if you had to you couldn't. I know a bit about clickables and triggers etc. in alc-script but not that much. So, I'm going to leave the explaining to someone who can explain it better.

Scaling works as long as you don't try to parent the object you're animating to something.

No python is needed (GRR@Robert... what were you thinking with that tutorial... UH, maybe python-less stuff was unavailable back then).

Well the best thing you can do is ditch this tutorial (the one about making a clickable)(there are some good bits though) and examine Nadnerb's age:

http://uruexploration.googlepages.com/A ... Door.blend

Oh and here's the tutorial (i'm sure you've seen that one but it's good enough--and up to date enough to link to again ;) ):
http://guildofwriters.com/wiki/Animations


Well, from what it sounds like you're trying to do Python is not really needed. :)

Re: Guidance re Cickables please

PostPosted: Fri Jul 18, 2008 5:44 am
by D'Lanor
Since animations are a new feature they are not hooked up to the simpleclick quickscript.
So you will have to do your alcscript the hard way. If you want to use Python you need to pass the responder that starts the animation to the Python file. That can be done with a pythonfilemod alcscript.

However, if the animation just needs to run at a click you may not even need Python.

There is an animated door example in the animations tutorial that might show you something about triggering an animated object (but to be honest I have not looked at it).

I would like to be more specific but that will have to wait until I actually start doing anything with animations myself.

Re: Guidance re Cickables please

PostPosted: Wed Jul 23, 2008 3:52 pm
by ekimmai
Thanks guys for the advice - I'm making slow progress.....

Ekimmai

Re: Guidance re Cickables please

PostPosted: Wed Jul 23, 2008 4:06 pm
by D'Lanor
There is a new wiki tutorial that may help you here.