Wiki Clickable Clarification

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Wiki Clickable Clarification

Postby J'Kla » Wed Oct 15, 2008 10:57 pm

In the Wiki entry "How to make an object clickable" there is some sections of Python code it is not specifically mentioned but I am assuming these bits do NOT go in the AlcScript file but are entered in the Python Script Panel?

If this is true then I will need to export the Python code to my test copy of UruCC so what do I need to export and where to?

Or is this handled automatically when I export?
User avatar
J'Kla
 
Posts: 1003
Joined: Wed Feb 20, 2008 3:16 pm
Location: Geordieland UK

Re: Wiki Clickable Clarification

Postby Robert The Rebuilder » Thu Oct 16, 2008 4:17 pm

You're partially correct, J'kla. The Python code does not go into the AlcScript text object; in fact, it doesn't go into Blender at all. It goes into an external Python file. The Wiki doesn't really have a good description of creating Python files, so I'll attempt to describe the process here.

[EDIT: Moved it to a new Wiki topic 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

Re: Wiki Clickable Clarification

Postby J'Kla » Thu Oct 16, 2008 9:44 pm

Thanks I think that was going to be my next ask. :)

Ok I have had a quick look my only comment is in the line.

Before you do anything else, save this file. Choose File -> Save, then browse to the Python/src subdirectory of your URU installation and give it the same name as your class, e.g. MyAgeButton.py


At the moment my Uru installation has an empty src folder in the root of the Uru installation and no src sub directory in the Python folder so the line has two orders of confusion.
User avatar
J'Kla
 
Posts: 1003
Joined: Wed Feb 20, 2008 3:16 pm
Location: Geordieland UK

Re: Wiki Clickable Clarification

Postby D'Lanor » Fri Oct 17, 2008 5:35 am

The Python\src folder inside the Uru installation was probably chosen because it is a convenient location. In fact it does not matter where you put your Python source files because Uru does not use them. It only uses the compiled pak files.
"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: Wiki Clickable Clarification

Postby Robert The Rebuilder » Fri Oct 17, 2008 3:57 pm

J'Kla: part of installing PlasmaShop is to unpack your python.pak file - click here for instructions. This will create a src subdirectory of the Python directory, into which it will place all the Plasma python files you'll need for compiling your own Python file - it includes some of these files at the top.
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

Re: Wiki Clickable Clarification

Postby J'Kla » Sat Oct 18, 2008 1:39 am

I already have Python 2.5 installed to run blender do I still need to do the Python stuff I also already have Plasma shop installed I needed that to do the checksums for my Ahra Pahts Shell and the same goes for PRPTool
User avatar
J'Kla
 
Posts: 1003
Joined: Wed Feb 20, 2008 3:16 pm
Location: Geordieland UK

Re: Wiki Clickable Clarification

Postby D'Lanor » Sat Oct 18, 2008 6:30 am

Yes. And that is on of the reasons why I prefer UruPython, which does not need older Python versions installed like PlasmaShop does. A link for it can be found in the wiki.

On the other hand UruPython does not create a sample Python script for you (which PlasmaShop does wrong anyway, since it drops required commas). So you probably should install both.
"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: Wiki Clickable Clarification

Postby diafero » Sun Oct 19, 2008 11:18 am

One note for that "How to create a Python file" tutorial: Maybe it should state clearly that the name of every Python file should start with the name of the age it belongs to. Otherwise, we will get strange results with two ages having a "MyAgeButton.py"...
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2972
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: Wiki Clickable Clarification

Postby Paradox » Sun Oct 19, 2008 11:41 am

Please also note: the file name must match the Python class name. As simple as it sounds, I had issues for weeks due to this.
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Wiki Clickable Clarification

Postby Robert The Rebuilder » Mon Oct 20, 2008 9:16 am

J'Kla: you will need to install Python 2.2.3, since that's the version used by Uru's Plasma engine.

D'Lanor wrote:On the other hand UruPython does not create a sample Python script for you (which PlasmaShop does wrong anyway, since it drops required commas).


I haven't had this problem when creating Python files via PlasmaShop; each file has compiled fine with Python 2.2.3. Do you have the latest version of PlasmaShop?
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

Next

Return to Building

Who is online

Users browsing this forum: No registered users and 1 guest