Update
This commit is contained in:
14
script/test/TestDate.py
Normal file
14
script/test/TestDate.py
Normal file
@@ -0,0 +1,14 @@
|
||||
cycle=0
|
||||
frame_index=0
|
||||
short_name=False
|
||||
set_exec_pars(open=True)
|
||||
root = "" if short_name else (get_exec_pars().path + "/")
|
||||
prefix = get_context().setup.expandPath("i{date}%02d_{dseq}%03d")
|
||||
print prefix
|
||||
if cycle < 0:
|
||||
ret = root + prefix + ".tif"
|
||||
else:
|
||||
ret= root + prefix + "/i{seq}%03d"+ "_" + str(cycle) + ("_%d" % frame_index) + ".tif"
|
||||
|
||||
print ret
|
||||
|
||||
Reference in New Issue
Block a user