Affecting Geo Nodes modifier from script
Hi, I am trying to use a script to modify values of an object with a geometry nodes modifier on it, if I use these examples, it sort of works, but it doesn't update the UI or 3d viewport. Is there a better method or approach to this?
bpy.data.objects['Object'].modifiers["GeoNodes"]["Socket_0"] = 3
(if the object is active selected)
bpy.context.object.modifiers["GN_Trophy"]["Socket_0"] = 1
1
3 comments
Lucas Feld
2
Affecting Geo Nodes modifier from script
CG Python Academy (Free)
skool.com/cgpython
3D artists learning Blender Python.
Leaderboard (30-day)
Powered by