Jump to content
DomC

Renaming Resources

Recommended Posts

The attached Marionette example shows, how to renames resources from the active document.

 

It contains several custom nodes:

1. "TypePopup" : An Input Node, which translate a readable popup (Line, Rectangle, ImageFill etc. ) in the internal used index number (VectorScript appendix)

2. "GetRes" : This Nodes, collects the specified resource type from the active document.

3. "ReplaceString" : This node, replace any part of a string (text) input with a new string

 

This example could be used for sorting and organize mass of ressources.

- Find/Replace Text (or Characters) in the resourceName

- add prefix or suffix to the name (As example .sym to symbols to clear names or prefix with the building number etc.)

- produce an index number to a name for sorting 

- etc.

 

RenameResources.mp4

 

 

 

RenameResouces.vwx

Edited by DomC
  • Like 1

Share this post


Link to post

Very cool. Is there a way to turn this into a menu command with a pop-up that asks for Type, Prefix, Suffix, and Find/Replace?

 

I've yet to have any luck with the Convert to Menu Command option for Marionette networks, but I also know very little about Marionette...

Share this post


Link to post

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.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...