Gsharp Training Material Home Table of Contents

L1 - Basic GSL

If you have worked through the Gsharp Tutorial then you have already covered Basic GSL.

With Gsharp you can automatically create GSL so in order to complete this section you only need to know where the Generate GSL option can be found (it's on the Tools menu of the ScriptBuilder).

Now go onto the next section ...

Ok. If you really do want to know more:

Look at the structure of the GSL that you have created in the ScriptBuilder. You will notice that there are two sorts of commands create and set:

create Object gsharp_1.object.name
 (  XuNresourceName = value,
    XuNresourceName2 = "value2"
 );
set gsharp_1.object.name
 (  XuNresourceName = value,
    XuNresourceName2 = "value2"
 );

As you can see they almost exactly the same syntax, apart from you must specify the object type for the create function.

Each resource=value pair corresponds to a resource that you have set interactively. If you were to untoggle this resource in the Editor then it would no longer appear when you generate GSL. If you were to use the defaults for all the resources in an object then the create call is simplified to:

create Object gsharp_1.object.name;