Rename or move a Viz file through Template Wizard

ruimac

Active member
I know I can send commands to Viz from Template Wizard through QuerySingle or SendSingleCmd.
Is there any way to control the GraphicHub, renaming a Viz File, or moving it to a different folder?
 
There are several commands to control the GH, the one I think will help you is MOVE.
to trigger it you write:
<POOL Type> MOVE <String from> <string to>
Example: IMAGE MOVE IMAGE*Vizrt/test/my_image IMAGE*Vizrt/newFolder/my_image
The thing is I'm not sure if this is the right syntax because I couldn't get it to work, but maybe some else can pick it up from here 😅


Pool​

Inherits: OBJECTBASE

Derived classes: CFontPool, CVAudioClipPool, CVClipPool, CVSubstancePool, CVbaseFontPool, CVcharStylePool, Geompool, Imagepool, ImportPool, MaterialAdvancedpool, Materialpool, Scenepool

Commands​

CommandArgumentsInfo
{ri}--
ADD_GROUPString location
String folder_name = ""
Add a folder to the pool
CACHE_CLEANUP-Remove all path to UUID mappings from memory
CLEANUP-Remove all unused objects from memory
CLOSEString location = ""
Enum = DEFAULT
DEFAULT
FORCE
Remove a pool object from memory. This command will be ignored if the object is in use
COPYString from
String to
Copy a pool element
DEC_REFERENCE_COUNTString locationDecrements a pool object's reference count to unlock it.
DELETEString location
Int delete_references = 0
Delete an object or a folder
EXISTString location = ""Does a pool element exist
FOLDER_EXISTString folder = ""Checks whether the specified folder exists.
FORCE_DELETEString location
Int delete_references = 0
Delete a folder even if it is not empty
GETString folder = ""Get all objects in a folder
GET_ALL_GROUPS-Get all folders of the pool
GET_DETAILString folder = ""Gets the names of files in the specified folder.
GET_DETAIL2String folderGet detailed information of all objects in a folder
GET_EXTERNAL_FILE_REFERENCESArgList dbpathReturns all external file references contained in a scene.
GET_GROUPSString location = ""
Int sub_levels = 0
Get all folders inside a folder, but only one level deep
GET_GROUPS_DETAILString folder = ""Gets the names of folders and projects in the specified folder.
GET_GROUPS_DOWNString = ""Get all folders inside a folder (including all sub_folders)
GET_GROUPS_DOWN_1String location = ""Get all folders inside a folder 1 level down
GET_GROUPS_DOWN_2String location = ""Get all folders inside a folder 2 levels down
GET_ICONString location = ""Get the icon of a pool object
IMPORT_GET_NAMEFileName sourcePathGets the filename under which an imported file will be stored in the db.
INC_REFERENCE_COUNTString locationIncrements a pool object's reference count to lock it.
INFO-Which pool object are in memory right now
IS_CHANGEDString locationWas the object changed since it was loaded from disk
IS_IMPORTABLEFileName Can a file be imported into the pool
LOADString location = ""Load a pool object into memory
LOAD_ALLString folder
Bool keep_in_memory = 0
Load all objects of a certain pool folder into memory
LOADBGLString location = ""Load a pool object into memory in the background
MARK_UNCHANGEDString locationMarks a pool object unchanged.
>MOVEString from
String to
Rename or move a pool object
NEWString name = ""Create a new pool object
RELOADString location = ""Reload a pool object. This will restore the state of the object to the state when it was saved
RELOADBGLString location = ""Reload a pool object in background. This will restore the state of the object to the state when it was saved
RESTOREString locationTries to restore a corrupt file.
SAVEString location = ""Write a pool object from memory to disk
SAVE_ASString location
String new_location
Save a pool object under a different name
SAVE_AS_AND_RELOADString location
String new_location
Saves a pool object under a different name and reloads the (original) object
SAVE_TO_DATABASEString location
String new_location
Write a pool object, which only exists in memory (e.g. NEW), to disk

Properties​

{id}-
ON_OBJECT_BY_NAME-
 
As far as I know, Template Wizard is mainly intended for controlling Viz Engine and template-related workflows. Operations like renaming Viz files or moving assets within GraphicHub are typically handled through GraphicHub management tools or APIs, not via QuerySingle or SendSingleCmd.

You may want to check whether your version provides a GraphicHub API or scripting interface for asset management tasks.
 
Back
Top