Jump to content

name_expression = ??


---
 Share

Recommended Posts

Hi, 

While scripting the creation of elements,  I noticed you can pass an argument 'name_expression'.

Does anyone have any additional information on this argument and how it can be used?

what can I put after name_expression = ,

to have it create the element with an 'Automatically generated' name?

Thanks!

Gom_python_Name_expression.png

Link to comment
Share on other sites

Yes afaik "name_expression" will add a number to the name of whatever element you create

 

so if you set "name_expression=Plane", it will create "Plane 1", "Plane 2"

 

useful for when you are creating a bunch of new elements via script

Link to comment
Share on other sites

 Share

×
×
  • Create New...