July 13, 2017, 4:08 p.m.
Thanks guys for the help… and just to keep everyone posted on the issue and how it was done…
# Get the selection
selection = hou.selectedNodes()
if len(selection) > 0: # Check if the selection contains something
for object in selection: # Loop through the selected objects
if( object.type().name() == 'cam'): # Check if the selected object is a camera
if( object.isTimeDependent() ): # Check if there is animation in it
# Do something
print ( "You need to select something@)
July 12, 2017, 5:43 p.m.
Thank you so much, I must confess I expect the API to do the hard work for me in terms of analysing if there is animation on a node, ultimately I am sure many tools will do this kind of evaluation so seems pretty standard method to build. Anyway, I will crack on.
The tip to discover the methods I didn't know so thanks… good call.
regarding the node type, I did indeed find it but seemed to return something I was not expecting.. I am confused as in other packages you have some TAG/NUMBER returned that signals the type of object. I particularly like the Softimage way where you filter your selection but I guess it is just muscle memory.
thanks a lot.