  | | | AW: mr shader interface | AW: mr shader interface 2004-12-14 - By xsi@(protected)
Back Why does the value flag not work in the parameter definition of the spdl? value = "expression"; If I set a default with value the parameter it just empty in the interface. I want to set a default in the spdl.
--- Urspr�ngliche Nachricht --- Datum: 14.12.2004 09:19 Von: XSI@(protected) An: XSI@(protected) Betreff: Re: mr shader interface
> Thanks, Guy, it helped! > > Guy Rabiller wrote: > > >In your spdl: > > Parameter "myfile" input > > { > > title = "File"; > > guid = "{########-####-####-####-############}"; > > type = string; > > flags = 0; > > texturable = off; > > writable = on; > > persistable = on; > > readable = on; > > inspectable = on; > > } > > > >This gives you a parameter of type 'miTag' in your header: > >../.. > >miTag m_myfile; > >../.. > > > >Then: > >miTag tagFile = *mi_eval_tag(¶ms->m_myfile); > >char* charFile = (char*)mi_db_access(tagFile); > > > >Hope this helps. > >-- > >guy rabiller | 3d technical director @ LaMaison > > > > > >-- -- Original Message -- -- > >From: "Sascha Robitzki" <xsi@(protected)> > >To: <XSI@(protected)> > >Sent: Monday, December 13, 2004 9:17 PM > >Subject: Re: mr shader interface > > > > > > > > > >>No answers so far? > >>I know there is a string type parameter but I had no luck so far to get > >>access to it in my shader, the parameter seems to be empty. There must > >>be a way to retrieve a string and I'm confident it's quite simple. > >> > >>xsi@(protected) wrote: > >> > >> > >> > >>>How can I define a file path parameter in a spdl and how can I access it > >>> > >>> > >in > > > > > >>>C? > >>>--- > >>>Unsubscribe? Mail Majordomo@(protected) with the following text in > >>> > >>> > >body: > > > > > >>>unsubscribe xsi > >>> > >>> > >>> > >>> > >>> > >>--- > >>Unsubscribe? Mail Majordomo@(protected) with the following text in body: > >>unsubscribe xsi > >> > >> > >> > >> > > > > > >--- > >Unsubscribe? Mail Majordomo@(protected) with the following text in body: > >unsubscribe xsi > > > > > > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |