GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Path object default value


#1

According to the help for scripting objects "You can also refer to an object's default value using the special def_value property name."

DOpus.output("path = " + d.func.sourcetab.path.def_value);

returns...

path = undefined


#2

You can use it like this:

DOpus.Output("Selected items in " + clickData.func.sourcetab.path + ":");

For string operations it needs to be converted first with String().


#3

Yes thanks @lxp, I know how to get the result I am after but my reading of the path object description combined with the def_value description suggests to me that my example should return a path string.

image


#4

def_value was only supported on the collection objects. In the next update, it should be supported on all other objects that have default values.