Hey guys, been a while…
I need to script a few actions centered around the draw:cameras subpalette.
In particular:
-
Store camera and rename it using a variable
-
Load an image onto the camera from the texture palette
I tried this and a few other ideas but the input text popup will block the script
[Note, "Importing plate image...", , 1]
[FileNameSetNext, #outputImagePath]
[IPress, Texture:Import]
// --- Store and Rename Camera using ZFileUtils.RenameSetNext ---
[Note, "Storing camera view with image name...", , 1]
[VarSet, imageName, [FileNameExtract, #outputImagePath, 2]] // Get filename from path
[VarSet, cameraName, [StrMerge, "test_", #imageName]] // Create the desired camera name
// Store the camera first
[IPress, Draw:Cameras:Store Cam]
// Use the exact pattern from the working example
[VarSet, buttonPath, "Draw:Cameras:Rename"]
[If, (([IExists, #buttonPath]) && ([IsEnabled, #buttonPath])),
[FileExecute, [Var, dllPath], RenameSetNext, #cameraName]
[IPress, #buttonPath]
]