If you are interested by this function you could  use the API to detect 
when object are created( more precisely when they are added to the graph ) 
and then add ( if the attribute is not here) a string attribute with the 
creation time . On macaronikazoo you can find a piece a code to extend : 
http://www.macaronikazoo.com/?p=730

Le vendredi 29 juin 2012 03:45:04 UTC+2, Justin Israel a écrit :
>
> I don't see where they store the timestamps for nodes within the API, but 
> looking at what the HyperShade is doing, it is running an lsThroughFilter() 
> command. You could use this same approach, using the current selection:
>
> # first select some nodes
>
> # then create a pass through filter that basically does nothing
> objFilter = cmds.createNode("objectFilter")
> sorted_nodes = cmds.lsThroughFilter(objFilter, na=True, sort="byTime", 
> sl=True)
>
>
>
> On Jun 28, 2012, at 11:26 AM, ynedelin wrote:
>
> hey Guys
>
> I just noticed that in Hypershade i can sort nodes by time....
>
> Does that mean Maya stores the creation time stamp per node somewhere?
>
> That would be useful.
>
> yury
>
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe
>
>
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to