Jump to content
Private Messaging is activated - check "How to" on how to disable it ×

Rename object


---
 Share

Recommended Posts

Hello everyone, I have the following question:

can I change the name of an object during or after creation? I want “rectangle_14” to be renamed to “Rectangle 1”.

 

Rechteck = gom.script.report.create_rectangle (
            angle=0.0, 
            background=gom.Color (0, 0, 0, 255), 
            border={'cap_style': 'sharp', 'color': gom.Color (0, 0, 0, 255), 'style': 'solid', 'width': 0.1}, 
            data=gom.app.project.reports['report'].pages['page 1'].content, 
            display_size_scaling=1.0, 
            fixed_scale=1.0, 
            highlight_color=gom.Color (8, 8, 132, 255), 
            margin=1.0, 
            origin=gom.Vec2d (147.5, 101.38), 
            pivot_align_x='left', 
            pivot_align_y='top', 
            size=gom.Vec2d (265.0, 142.76), 
            spacing=1.0, 
            uses_animated_data=False, 
            uses_fixed_scale=False, 
            visible=True)
        
        print(Rechteck) # gom.app.project.reports['report'].pages['page 1'].elements['rectangle_14']

 

Thank you and best regards

Link to comment
Share on other sites

 Share

×
×
  • Create New...