Jump to content
Developer Wiki and Function Reference Links ×

Batch "Add Suffix or Prefix' to Resource name script


Guest unlimited

Recommended Posts

Guest unlimited

Hi all,

 

Does anyone know of a Marionette that would allow the batch adding of a Suffix ( or prefix) to a set of resources.

 

EG.

 

I have a bunch of images and want to give them the suffix IF. Then I can create the same images as textures and then give the texture names the suffix TX.

 

Many thanks,

Martyn

 

Link to comment
  • Marionette Maven

Hi Martyn,

 

Here's a preliminary script that may help. There are a handful of custom nodes in here.

 

What this script does:

- queries the active document for image resources (the ones that appear in the RM)

- makes a duplicate of the image resource and names it based on its original name and an added suffix

 

Notes:

If run more than once, many resources may be created.

It is also possible to just rename the original resource rather than making the duplicate by removing the copy node.

 

I would recommend saving a copy of whatever file you use this on as a backup in case unexpected results arise.

 

 

renameImageRes_MFarrell.vwx

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...