Click region layer?

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

Click region layer?

Post by D'Lanor »

It has been a long time since I worked with Blender and PyPRP but I finally decided to pick up this hate-hate relationship where I left off somewhere in 2005 and do some work on my age Prad. I had to import my age because the old Prad Blender files from 2005 were lost.

The import went well, I made a few small changes and tried to export. Then there was an error:
[Visual Object Journal]
=> Clickable object (uses 'PradBookGUI.py') <=
Traceback (most recent call last):
File "<string>", line 171, in open_file
File "<string>", line 86, in export_age
File "D:\Blender\.blender\scripts\alcresmanager.py", line 787, in export_all
raise RuntimeError, "Clickable object %s is not inside any click region" % n
ame
RuntimeError: Clickable object Journal is not inside any click region

However the clickable IS inside a click region in layer 4. PyPRP found it there and imported it fine. Why is it unable to see it there now?

Edit: btw, I am using the latest stable 0.5 release and Blender 2.45.

Edit 2: I moved it to layer 2 which seems to be the current default but still the same error. :?
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
Trylon
Posts: 1446
Joined: Fri Sep 28, 2007 11:08 pm
MOULa KI#: 0
Location: Gone from Uru

Re: Click region layer?

Post by Trylon »

check that the center of the clickable object is inside the clickregions bounds.

(Note that the next pyprp won't use clickregions or cameraregions in the way that you need them to encompass the clickable object or the cameras)
One day I ran through the cleft for the fiftieth time, and found that uru held no peace for me anymore.
User avatar
Chacal
Posts: 2515
Joined: Tue Nov 06, 2007 2:45 pm
MOULa KI#: 0
Location: Quebec, Canada

Re: Click region layer?

Post by Chacal »

BTW I had the same error importing some Cyan prp files. That wasn't the stable version nor the pre-release.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
D'Lanor
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Click region layer?

Post by D'Lanor »

Well, visually it seems to be. But how do I tell where the center is? Can the object center be outside of the object itself?
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
Trylon
Posts: 1446
Joined: Fri Sep 28, 2007 11:08 pm
MOULa KI#: 0
Location: Gone from Uru

Re: Click region layer?

Post by Trylon »

it can be, as it is not really the object's center, but more accurately its origin. Look for a magenta dot when you have the object setected.
One day I ran through the cleft for the fiftieth time, and found that uru held no peace for me anymore.
D'Lanor
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Click region layer?

Post by D'Lanor »

Ok, that seems to be the problem then. And you probably saw this one coming: How do I correct it? If I drag and drop that dot the whole object moves...

Edit: Yay! Found it. The Center New option did the trick.
"It is in self-limitation that a master first shows himself." - Goethe
Post Reply

Return to “Building”