You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operators currently access the scene properties to execute. This should be changed so they are passed in:
# currentbpy.context.scene.MN_import_wwpdb_code='4OZS'bpy.ops.mn.impmort_wwpdb()
# what should be donebpy.ops.mn.import_wwpdb(code='4OZS')
# in the ui the code is passed in from the scene property value# but the value can be set if we call the operator elsewhereop=layout.operator('mn.import_wwpdb')
op.code=context.scene.MN_import_wwpdb_code
The text was updated successfully, but these errors were encountered:
Operators currently access the scene properties to execute. This should be changed so they are passed in:
The text was updated successfully, but these errors were encountered: