| Author |
String -> MFString
|
|
| nunomartins01 2005-06-30, 7:22 am |
| Hi
I'm trying to change a object texure, but the instruction
textura.setValue(im01);
doesn't work...
The setValue worked well with float to SFColor, but not with String to
MFString...
How can i associate a Sring to a MFString??
private void Clicar(java.awt.event.MouseEvent evt) {
textField1.setText("Textura Mudada");
mat = mainScene.getNamedNode("MAT");
textura = (MFString) mat.getField("url");
String im01 = "im.jpg";
textura.setValue(im01); <----- error
}
Tnaks
Nuno
| |
| Rex Melton 2005-06-30, 8:06 pm |
|
Try:
textura.setValue( new String[]{ im01 } );
nunomartins01 wrote:
> Hi
>
> I'm trying to change a object texure, but the instruction
> textura.setValue(im01);
> doesn't work...
>
> The setValue worked well with float to SFColor, but not with String to
> MFString...
>
> How can i associate a Sring to a MFString??
>
> private void Clicar(java.awt.event.MouseEvent evt) {
>
> textField1.setText("Textura Mudada");
> mat = mainScene.getNamedNode("MAT");
> textura = (MFString) mat.getField("url");
> String im01 = "im.jpg";
> textura.setValue(im01); <----- error
> }
>
> Tnaks
>
> Nuno
| |
|
| nunomartins01 a pensé très fort :
> String im01 = "im.jpg";
> textura.setValue(im01); <----- error
Try :
MFString im01 = new MFString("im.jpg");
textura.setValue(im01);
Bye
O.L.
--
Ceci est une signature automatique de MesNews.
Site : http://mesnews.no-ip.com
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |