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