View Full Version : is this possible?
sisis23
11-03-07, 04:08 AM
can we do renaming or deleting the files with zscript?
Hi,
There are no zscript commands that can directly delete or rename files. However the [FileExecute,.....] command can call external programs that could delete and/or rename files. Normally people associate the [FileExecute,...] command with calling procedures in .DLL files but the command can be used to call any executable file on the computer. So you could write a zscript that generates a batch file (.bat) that you can execute from within ZBrush.
Hope that helps.
Mark
EddyLoonstijn
02-15-08, 09:30 AM
Hi sisis23,
almost a ear after your threadstart I come with another answer to your question:
Yes, you can rename (not delete) in ZB
1. a tool:
[ipress,tool,oldname]
[FileNameSetNext,"ZBRUSH_ZStartup\ZPlugs\TempFolder\nwname.ztl"]
[ipress,tool:save as]
2. a texture:
[ipress,texture,oldname]
[FileNameSetNext,"ZBRUSH_ZStartup\ZPlugs\TempFolder\nwname.psd"]
[ipress,texture:export]
3. an alpha:
[ipress,alpha,oldname]
[FileNameSetNext,"ZBRUSH_ZStartup\ZPlugs\TempFolder\nwname.psd"]
[ipress,alpha:export]
Hope you find it useful
Greetings, EddyL
marcus_civis
02-15-08, 10:08 AM
This is also actually now possible using the new zscripting resource ZFileUtils dll. See here:
http://www.zbrush.info/docs/index.php?title=ZScript_FileUtils
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.