Jump to content
kleer001

Remove trailing "1" at the end of a new instance of an OTL

Recommended Posts

How would you auto-magically remove the trailing "1" after an instance of a custom OTL?

It seems like there should be some on-creation script location, somewhere...

Share this post


Link to post
Share on other sites

Is it creating the 1 because another instance of that same OTL exists in the same scene path?

If something else is causing this, you can always just go to the Type Properties > Scripts window, and enter the following in the OnCreated event:

me = kwargs['node']
me.setName('MyNameWithoutA1AtTheEnd', True)

  • Like 1

Share this post


Link to post
Share on other sites

That looks perfect, I bet it'll work. Thanks mate!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×