XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

Getting File Name From Within Custom Processor?

Last post 07-01-2007 7:48 PM by Shawn Hargreaves. 1 replies.
  • 06-30-2007 2:53 AM

    Getting File Name From Within Custom Processor?

     Is it possible to get the file name or directory from within a custom processor? I'm trying to use the skinned animation sample, but I want to be able to move the fx file. I would like to have it simply find it next to whatever file it's loading, but I can't seem to find out how. Is it possible? Thanks in advance.


    Nick Gravelyn -- Microsoft XNA MVP
    Blog | Metacreature Games | Super Gravelyn Bros | Bloc | Next-Gen
  • 07-01-2007 7:48 PM In reply to

    Re: Getting File Name From Within Custom Processor?

    You can get the location of a source asset file through the ContentIdentity type: that has a SourceLocation property (I believe that's what it is called, anyway). There will be ContentIdentity attached to your root NodeContent after importing a model.
    XNA Framework Developer - blog - homepage
Page 1 of 1 (2 items) Previous Next