Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5791

Geometry change with imported module (scripting basics)

$
0
0

Greetings,
another boring nooby question from me :}
For example I have main script and imoprted module. Inside main script i create a Mesh with:

sc.doc.Objects.AddMesh(Mesh)

Then I pass Guid of this Mesh to module function, and select it with

My_Mesh_Ref = sc.doc.Objects.FindGeometry(My_Mesh_Guid)

Then this imported function makes some modifications with this Mesh Reference. I’m sure that they are because I perform an inspect for that.
After that while making just the exact same inspection but in the main script it turns out, that the original mesh remains the same.
I’m just missing something important… how do I update original Mesh with its modified reference?

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5791

Trending Articles