AgeScripting
From Alcugs
Note: Anything extracted from any Plasma Resource Files is property of Cyan Worlds, Inc. You may not use these assets without recieving written permission from Cyan Worlds, Inc.
Please read this Notice from Cyan about Age Creation before continuing.
|
Contents |
Python Scripts
There are three options for adding an AgeSDLHook property to your age (i.e. linking your age to an age-level Python script).
All of these methods will add a hook to a Python script file named after your age, e.g. for an age named MyL33tAge.age, the Python file should be named MyL33tAge.py.
For more details on using an age-level script, see Dustin's 6th Tutorial.
For an example of an age that uses an age-level script, see the PRP Blender Plugin Functionality Check age.
Using Blender To Add An AgeSDLHook
NOTE: You will need the plugin version dated 8/12/06 or later.
Adding the hook to a new age
2. Go to layer 3 and then right click on the "book" object. Then bring up the book's properties using the Logic button (with the Pac Man on it). Alternatively, press F4.
3. There will be a boolean ("Bool") property named AgeSDLHook, currently set to false. Click on True.
4. Save your blend file, then export your age.
Adding the hook to an existing age
- Load your BLEND file into Blender.
- Go to layer 3 and then right click on the "book" object. Then bring up the book's properties using the Logic button (with the Pac Man on it). Alternatively, press F4.
- Click on "ADD property". Change the new property's type to Bool. Set the name to AgeSDLHook. Click on True.
- Save your blend file, then export your age.
|


