[Papervision3D] Collada name (collada custom user vars)
don
donhaupt at web.de
Fri Oct 26 14:19:24 PDT 2007
Thanks for the help so far! I think I basically sorted everything out so
far, also using right repo, etc.
and basically Im back at the beginning with a bit of a better understanding
though
;-)
Well, I still cannot get user custom properties onto the collada file, i.e.
read them when an event is fired.
The extra property works fine for a primitive, but not for the collada. And
there is no differences whether I
rap the collada within a rootNode-displayObject3D or not. I always get the
following error:
TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode
eines null-Objektverweises ist nicht möglich.
at Main/::onObjectPress()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFun
ction()
at flash.events::EventDispatcher/dispatchEvent()
at
org.papervision3d.utils::InteractiveSceneManager/org.papervision3d.utils:Int
eractiveSceneManager::dispatchObjectEvent()
at
org.papervision3d.utils::InteractiveSceneManager/org.papervision3d.utils:Int
eractiveSceneManager::handleMouseClick()
Maybe Im missing a class, maybe I do a wrong object assignment, maybe I
have to set some other property or even use a different
reference in the event-handler
. I just dont know! Im lost! I know the
error means that there is no extra object in collada, but I
dont know how to solve it.
I have attached the code just in case someone has the time and is nice
enough to help me out thanks !! There are various code-lines
commented out none worked or made a difference
.
don
_____
Von: papervision3d-bounces at osflash.org
[mailto:papervision3d-bounces at osflash.org] Im Auftrag von Trevor Burton
Gesendet: Donnerstag, 25. Oktober 2007 22:16
An: papervision3d at osflash.org
Betreff: Re: [Papervision3D] Collada name - sorry, another newbie
wrong repo
you want
http <http://papervision3d.googlecode.com/svn/trunk>
://papervision3d.googlecode.com/svn/trunk
On 10/25/07, don <donhaupt at web.de> wrote:
Hi Thomas,
Thanks for making me aware of the property can be of use and I have
completely overlooked it.
Anyway, that is not really part of the main problem. I have been testing a
bit more and almost come
to the conclusion that I simply don't know which version I use or should
use. I seem to be missing
something in the source because the error the trace event throws is as
follows:
ReferenceError: Error #1069: Eigenschaft displayObject3D für
org.papervision3d.utils.InteractiveSceneManager nicht gefunden und es ist
kein Standardwert vorhanden.
at ColladaTest2/::onObjectPress()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFun
ction()
at flash.events::EventDispatcher/dispatchEvent()
at
org.papervision3d.utils::InteractiveSceneManager/org.papervision3d.utils:Int
eractiveSceneManager::dispatchObjectEvent ()
at
org.papervision3d.utils::InteractiveSceneManager/org.papervision3d.utils:Int
eractiveSceneManager::handleMouseClick ()
So, basically the property "displayObject3D" cannot be found in
org.papervision3d.utils.InteractiveSceneManager .
Maybe I'm using the wrong version, maybe something is missing, maybe
As I'm using the TortoisSVN I don't see what's wrong. The update always
tells me it has Revision337 (but some folders do have a red exclamation
mark).
If I use what I thought is the latest version (rev91??) from
http://svn1.cvsdude.com/osflash/papervision3d I always get those "override
error messages" and
there does not seem to be an ism anymore.
I just guess one of the problems is my versioning.
_____
Von: papervision3d-bounces at osflash.org
[mailto:papervision3d-bounces at osflash.org] Im Auftrag von Thomas Saunders
Gesendet: Donnerstag, 25. Oktober 2007 03:10
An: papervision3d at osflash.org
Betreff: [Papervision3D] Collada name - sorry, another newbie
Hi don,
I use the extra property of pv3d objects to store information I will need
later. try:
//after collada.y = whatever
collada.extra = the unique value you each collada
in the ism event function:
trace("event coming from "+event.displayObject3d.extra)
thomas
http://www.modern-carpentry.com/talk
_______________________________________________
Papervision3D mailing list
Papervision3D at osflash.org
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
<http://osflash.org/mailman/listinfo/papervision3d_osflash.org>
--
Trevor Burton
http://www.paperworld3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20071026/7e35eafe/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.as
Type: application/octet-stream
Size: 3966 bytes
Desc: not available
Url : http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20071026/7e35eafe/attachment-0001.obj
More information about the Papervision3D
mailing list