Whenever I attempt to run it, whether using a new blank vector graphic or one previously created with a single existing piece of text, step 1 executes OK. I am asked for the text, then select the text tool and set font, size, etc.: but step 2 then fails. I get the following output:
Code: Select all
Executing RunScript
Executing ImageInfo
Script 'Pause Script Demo' has completed successfully.
Executing RunScript
Traceback (most recent call last):
File "<string>", line 85, in Do
File "<string>", line 149, in DoNextStep
File "<string>", line 1, in <module>
File "<string>", line 45, in DoStep2
TypeError: 'NoneType' object has no attribute '__getitem__'
Script 'Pause Script Demo' has completed with an error.
Code: Select all
44 info = GetToolInfo(Environment, 'Text')
45 segment = info['Segments'][0]
info['Library'] is set to: ToolText
info['LocalName'] is set to: Text
return value is set to: {'Matrix': None, 'Segments': None, 'SavedText': None, 'FinalApply': False, 'CreateAs': 0, 'GeneralSettings': {'AutoActionMode': 0, 'PreviewVisible': True, 'ScreenControl': 1, 'ExecutionMode': 0, 'Version': ((19, 0, 0), 1), 'PreviewMode': 1, 'AutoProof': False}, 'RememberText': False}
So it appears that the failure is due to 'Segments' being defaulted to None; though I've yet to find out what 'Segments' actually are. But, looking at the full list of return values from the call to GetCommandInfo (too long to reproduce here), I notice that the value of the 'Deprecated Command' attribute is set to 1. Does this mean that this is a deprecated command? If not, what can I do to prevent calls to GetToolInfo from bombing out?
