Page 1 of 1

Click region layer?

Posted: Tue Jan 08, 2008 2:26 pm
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. :?

Re: Click region layer?

Posted: Tue Jan 08, 2008 2:55 pm
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)

Re: Click region layer?

Posted: Tue Jan 08, 2008 3:11 pm
by Chacal
BTW I had the same error importing some Cyan prp files. That wasn't the stable version nor the pre-release.

Re: Click region layer?

Posted: Tue Jan 08, 2008 3:15 pm
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?

Re: Click region layer?

Posted: Tue Jan 08, 2008 3:32 pm
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.

Re: Click region layer?

Posted: Tue Jan 08, 2008 3:36 pm
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.