GetURLAt

Description

Retrieve the text of the URL contained in the annotation at the view coordinate specified.

Scripting Syntax

oReturn = GetURLAt( InputObj, View, X, Y );

Return Value

Returns the URL text, empty if there is no URl at the specified position.

Parameters

Parameter Type Description
InputObj String List of annotations.

Default Value: Currently selected objects

View Number The ID of the view to query. This ID correspond to the one given in the Tool SDK tool context.
X Number The X view coordinate to query.
Y Number The Y view coordinate to query.

Examples

Python Example

Application.NewScene("", False)

annot = Application.GetPrim("AnnotationObject", "annot")

annot.message = "hello, http://www.autodesk.com , I'm %s" % annot.Name

Application.Desktop.RedrawUI()

Application.Refresh()

Application.Desktop.RedrawUI()

url = Application.GetURLAt("annot", 0, 620, 270)

Application.LogMessage(url)

# INFO : http://www.autodesk.com