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
Trying to set up one-click extrapolation types using these buttons but inserting a command with a parameter throws out a syntax error.
In the preset shelf itself, the code reads item_sub_1.button_operator = 'graph.interpolation_type(type='BEZIER')'
Which results in the error Failed to execute the preset: SyntaxError('invalid syntax', ('C:\\Users\\Username\\AppData\\Roaming\\Blender Foundation\\Blender\\3.0\\scripts\\presets\\shelves\\test.py', 16, 62, "item_sub_1.button_operator = 'graph.extrapolation_type(type='BEZIER')'\n"))
Using the code item_sub_1.button_operator = 'graph.interpolation_type'
Wont cause any errors but that only brings up the interpolation type menu instead of setting it to Bezier automatically.
The text was updated successfully, but these errors were encountered:
ExpnandBanana
changed the title
Invalid syntax error on commands with parameters
Invalid syntax error on operator commands with parameters
Jan 8, 2022
Trying to set up one-click extrapolation types using these buttons but inserting a command with a parameter throws out a syntax error.
In the preset shelf itself, the code reads
item_sub_1.button_operator = 'graph.interpolation_type(type='BEZIER')'
Which results in the error
Failed to execute the preset: SyntaxError('invalid syntax', ('C:\\Users\\Username\\AppData\\Roaming\\Blender Foundation\\Blender\\3.0\\scripts\\presets\\shelves\\test.py', 16, 62, "item_sub_1.button_operator = 'graph.extrapolation_type(type='BEZIER')'\n"))
Using the code
item_sub_1.button_operator = 'graph.interpolation_type'
Wont cause any errors but that only brings up the interpolation type menu instead of setting it to Bezier automatically.
The text was updated successfully, but these errors were encountered: