Hi Java3D people
I have a problem here. I a trying to change the appearance of a shape3d
object.
when i set the appearance to a new appearance it works fine. but when i try
to get the old appearance and modify it, it gives me the error
javax.media.j3d.RestrictedAccessException: Cannot modify capability bits on
a live or compiled object
Any clue how i can overcome this.
here is the code


Appearance a3 = new Appearance(); a3 = shape.getAppearance();

a3.setCapability(Appearance.ALLOW_RENDERING_ATTRIBUTES_WRITE);
a3.setCapability(Appearance.ALLOW_RENDERING_ATTRIBUTES_READ);
a3.setCapability(shape1.ALLOW_APPEARANCE_READ);
a3.setCapability(shape1.ALLOW_APPEARANCE_WRITE);
r= new RenderingAttributes();
r.setVisible(false);
a4.setRenderingAttributes(r);
shape.setAppearance(a4);

thanks
venu

_________________________________________________________________
Make glass paintings? Are you a good artist?
http://server1.msn.co.in/features/general/diwali.asp Sell your Diwlai
creations online.

===========================================================================
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".

Reply via email to