Hello,
I have set the capabilities for all my nodes and node components before
I added the branch to my live scenegraph. But when I try to get the
coloring attributes of my Appearance object it gives me can error saying
no capability to get or set Coloring Attributes. This is what I did , can
someone please tell me what is going wrong. What I really dont understand
is if I am able to get my Appearance() from Shape3D then whey I am not
able to get its Coloring Attributes which I am doing the same way.
-------------- before it is made live
Shape3D childShape3D = (Shape3D)childObject;
childShape3D.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
childShape3D.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
Appearance appear = childShape3D.getAppearance();
appear.setCapability(Appearance.ALLOW_COLORING_ATTRIBUTES_READ);
appear.setCapability(Appearance.ALLOW_COLORING_ATTRIBUTES_WRITE);
------------------- while it is live
Shape3D childShape3D = (Shape3D) child;
Appearance childAppear = childShape3D.getAppearance();
ColoringAttributes childAttrib = childAppear.getColoringAttributes();
--------But here it gives me an error!!
Please help me
thanks
Tina
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".