A new version of Cineversity has been launched. This legacy site and its tutorials will remain accessible for a limited transition period

Visit the New Cineversity
   
 
rename objects by projectname
Posted: 16 November 2020 01:34 PM   [ Ignore ]  
Total Posts:  1
Joined  2016-02-19

Hi there,
i wanna automatically rename a null-object with the filename.
Is there a simple way to set this up, maybe in xpresso or python (i never used python bevore)?
I mean something like the token at the renderpath, just for naming an object?
I wanna have a null-object in every c4d-file based on the filename, as a starting hirachie.
That would save me a ton of time.

Profile
 
 
Posted: 16 November 2020 05:56 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi J.Sek-Design,

In Xpresso, there is no option to my knowledge to get the file name. Of course, you can use a UserData entry on the Null and drag the file into it, then connect this to the Null’s name, but it is an absolute path, and it is not updated.

You need to check in the Python Forum if someone can support your idea there.
https://plugincafe.maxon.net

BaseDocument.GetDocumentName(self)

All the best

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile