示例#1
0
def currentTime(*args, **kwargs):
    """
    Modifications:
        - if no args are provided, the command returns the current time
    """
    if not args and not kwargs:
        return cmds.currentTime(q=1)
    else:
        return cmds.currentTime(*args, **kwargs)
def currentTime( *args, **kwargs ):
    """
Modifications:
    - if no args are provided, the command returns the current time
    """

    if not args and not kwargs:
        return cmds.currentTime(q=1)
    else:
        return cmds.currentTime(*args, **kwargs)
示例#3
0
 def setTime(self, val):
     cmds.currentTime(val)
示例#4
0
 def getTime(self):
     return cmds.currentTime(q=1)
示例#5
0
def setCurrentTime( time ):
    """set the current time """
    return cmds.currentTime(time)
示例#6
0
def getCurrentTime():
    """get the current time as a float"""
    return cmds.currentTime(q=1)
示例#7
0
 def setTime(self, val):
     cmds.currentTime(val)
示例#8
0
 def getTime(self):
     return cmds.currentTime(q=1)