On Tue, 17 Mar 2015 5:31 AM Marcus Ottosson <[email protected]> wrote:

Well if it is indeed Linux, then /dev/shm probably already exists depending
on your distro.


Ah, yes there it is, useful!

Just so I got this right, because I’m not in a position to test Maya on
Linux at the moment, you’re saying that even if you export to /dev/shm via
cmds.file it will still not work? Because it writes to this temporary
directory first? Or are you saying it *did* work, in which case the file
never enters the hard-disk and can still be accessed like a normal file?

Sorry for the confusion, I’m half-way lost.

 It did work as you wanted, because the operations still take place in a
virtual file system, and it doesn't matter that Maya wants to write a new
file. As long as you give it a path to that tmpfs file system, all of the
scene save stuff should be in memory.
The file will be written and is accessible like a normal file, but is
backed by shared memory.
There is still some other business that I see taking place in the system
temp location, but it is small and doesn't seem to be the scene file. Maybe
some kind of small scratch work or a lock file. It happens before any of
the scene file writes and is removed before that as well.

 At that point, you are basically free to do it however you want, be it a
memory mapped file, a pipe, tempfs, or writing nothing at all and updating
your Facebook status.


Can you imagine?

<img src="
https://ci5.googleusercontent.com/proxy/oYx7MqnRqf1rCMVTGaJFnEiCe0BgJ8j_E0SPyprNZI7QFurrbNP373GOMH0SpARjh7qY2xJMdnwfRzLt-7hU9TWazxvZxfh0rDGGO1E9OcNXmvr_86i_0nBcYEZyI4YmNcs6R-FmjyrJ9lfcYIvoJM8oa-HwdcF_dQ=s0-d-e1-ft#https://cloud.githubusercontent.com/assets/2152766/6665185/5ae6c4c4-cbce-11e4-953a-b2ada5cfb538.png
">

Win!

​


Makes sense. We pretty much post everything from our lives to social
networks now. Why not Maya scene file status? It's like the next
Foursquare. "Marcus has just exported a Maya scene file at 123 Happy
Street"

-- 
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBepramdkFEgh4P4BgFi0-qAg7d%3DMXzojivk7RHiYHxVg%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBepramdkFEgh4P4BgFi0-qAg7d%3DMXzojivk7RHiYHxVg%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1E466xCqf95DqRMV2uPEXBqry6UPhh%3Dxo%2BX4%3DoszMmmw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to