Hi all,
Please ignore my previous message. I solved the problem.
I am trying to hide shape3d objects at run-time. I plan to do this by getting the 
renderingattributes from its appearance and then setting rendering attributes to 
invisible. But it does not work. Help me
Here is the code.
//shape  and appearance already created
shape1.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
shape1.setAppearance(a);
 
Appearance a3 = shape1.getAppearance();
RenderingAttributes r = a3.getRenderingAttributes();
r.setVisible(false);
shape1.setPickable(false);
 
it gives me null when i try to set the rendering attributes to fasle.
Any ideas why this is happening or alternative ideas how to hide objects except 
detaching objroot. it costs me lot of time if i detach.
 
thank-u
henu

Reply via email to