Python - Renaming VariantSets

Python - Renaming VariantSets

andreasK3K4G
Enthusiast Enthusiast
350 Views
0 Replies
Message 1 of 1

Python - Renaming VariantSets

andreasK3K4G
Enthusiast
Enthusiast

Hi all,

i want to rename VariantSets to put a prefix before each existing variantset, before adding new ones.

 

 thisVarSet.setName(str(new_name))


Renaming works, but is not visible in the VariantSet Module. The old names are visible, but now without function.

I checked with a script, if the name is changed, and get true.

Only when i save and reopen the scene, every thing is renamed.

 

So my question, how can i update the view in the VariantSet Module?

 

Kind regards

Andreas

0 Likes
351 Views
0 Replies
Replies (0)