Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

SFString
 

Matt




quote this post edit post

IP Loged report this post

Old Post  12-20-04 - 12:16 AM  
I've tried passing an SFString into a prototype and using that to control
the name of a viewpoint created within the prototype, so that I don't end
with many different viewpoints all with the same name.

I've tried using the following code:

######################################### car.wrl
PROTO Car [
exposedField SFString  view_name  "Inside"
]
{
....
Transform {
rotation 0 1 0 -1.571
children [
Transform {
rotation 0 1 0 -1.541
translation -15 5 0
children [
Viewpoint {
description IS view_name              <------   IS statement:
category mismatch
orientation 0 0 0 0
position 0 0 0
}
]
}
]
}
....
}

######################################### main.wrl
EXTERNPROTO Car [
exposedField SFString  view_name
]"car.wrl#Car"
...
Transform {
rotation 0 1 0 3.142
children [
Car {
view_name "A"
}
]
}

Transform {
rotation 0 1 0 3.142
children [
Car {
view_name "B"
}
]
}


But it does not work and produces these errors:
Error in definition of PROTO Lego_Car
<file>...\car.wrl#car : IS statement: category mismatch



Does anyone have any ideas why this does not work?

Cheers.




Post Follow-Up to this message ]
Re: SFString
 

Josip Almasi




quote this post edit post

IP Loged report this post

Old Post  12-20-04 - 12:16 AM  
Matt wrote:

> I've tried passing an SFString into a prototype and using that to control
> the name of a viewpoint created within the prototype, so that I don't end
> with many different viewpoints all with the same name.
>
> I've tried using the following code:
>
> ######################################### car.wrl
> PROTO Car [
>  exposedField SFString  view_name  "Inside"
> ]
...
>        Viewpoint {
>         description IS view_name              <------   IS statement:

Description isn't exposedField.

Regards...


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 04:11 AM. Post New Thread   
  Previous Last Thread   Next Thread next
VRML archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top