Jump to content

BLSmith

Copy all object names to individual tags

Recommended Posts

Lets say you were given a model consisting of 500 objects. Those 500 object names are part numbers, however the numbers are very hard to work with so you decide you want to rename "57286105_PRT45" to "Piston Head." However, you don't want to lose the part number information. Is there a quick way to store the original object name within that object so that it can be renamed manually? 

 

What I did was created a blank "To-do" tag to all 500 objects and have been manually CTRL+C/CTRL+V each individual object name to this tag. Now this is pretty tedious:

 

However, I'm just curious if there is a better way. Thanks all! 

Share this post


Link to post
Share on other sites

Oh there is a better way my friend - check out the Naming tool ! (Tools menu) which should help if you want to keep the part number in the title after what you rename it for example....

 

See second half of this tip...

 

 

CBR

Edited by Cerbera
Clarified...

Share this post


Link to post
Share on other sites

Hi Cerbera,

 

My impression of the naming tool is that if I had a bunch of objects named: 

  • Alpha 57286105_PRT45
  • Alpha 57286235_PRT4
  • Alpha 57286455_PRT23
  • Alpha 57286675_PRT12
  • Alpha 57286975_PRT41

You could simply replace "Alpha" to whatever name you want, or add a prefix before "Alpha." Using the example, "Alpha 57286105_PRT45" you could add a prefix called "Piston Head" however, your object name is now: "Piston Head Alpha 57286105_PRT45". Is there any way to take the original file name, and hide it somewhere within the object so that the name is only "Piston Head." 

Share this post


Link to post
Share on other sites
1 minute ago, BLSmith said:

Is there any way to take the original file name, and bury it somewhere within the object so that the name is only "Piston Head." 

No, not AFAIK.

 

CBR

Share this post


Link to post
Share on other sites

I had kind of hoped it would have saved it in like the "objects information" or something, or a tag that could be created that would contain the original object name within it. Understood though, I'll keep adding the original object name to a "to-do" tag. 

 

Thanks Cerbera!

Share this post


Link to post
Share on other sites

With a bit of scripting (and some knowledge of the Cinema 4D SDK) you can store whatever you want into the object, or a tag.

The only issue there is ... you need to store it in a "safe" place. Safe in the sense of "not overwritting other important information".

So, what you could do is obtain a unique plugin ID from the official MAXON plugincafe. And write the original object name into the object using the obtained plugin ID as key of a BaseContainer.

Not sure if you want to go this route, so I won't go into much detail, just mentioning this as a possible solution.

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

  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.


  • Recently Browsing   0 members

    No registered users viewing this page.

YOUTUBE CHANNEL:

ABOUT US:

C4D Cafe is the largest CINEMA 4D community. We provide facilities for discussion, showcasing and learning our favorite software :) Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, get your own private messenger, post status updates, manage your profile and much more. If you need to find solution to your problem or otherwise ask for help, Cafe is the right place.
×
×
  • Create New...