Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / Melscript command to write to text file with headers pos using fwrite?
  RSS 2.0 ATOM  

Melscript command to write to text file with headers pos using fwrite?
Rate this thread
 
51167
 
Permlink of this thread  
avatar
  • TimAM
  • Posted: 10 January 2011 02:47 AM
  • Location: GB
  • Total Posts: 16
  • Joined: 24 October 2008 02:21 PM

Hi there

I’m looking for a way to write to a text file, similar to the xwrite example but using headers for reference.  For example I have “Header A” which then has five values attached to it say “1,2,3,4,5” and I then want to create “Header B” in the same text file with another five values attached.

So the text file would look like

[Header A]
1
2
3
4
5

[Header B]
1
2
3
4
5

It would then be useful to reference the header and the attached values.

I hope this makes sense.  Any help is greatly appreciated.

Thanks

Tim



Replies: 0