|
|
Link Object to a Vertex Added on: Mon Aug 14 2000 |
Page: 1 2 3 4 5 6 7 8 9 10 |
I like to organize my script by using tabs. Now hit Ctrl + E and you should have a floater like this:
Lets add the next part, the selection of the child object (or the object you are linking to the vertex). Type the following after the " ) -- Close Group" since this is a new group:
group "Pick Child" (
Label childL "Select Child Object"
PickButton GetChild_PB "Get Child"
Label childnameL "Child Object: (none)"
) -- close group
This makes the second Group. This is basically the same as the last group except that you are using a different type of button.
The PickButton has the same parameters as the Button but when you push it, it puts you into a selection mode. Where you have to pick an object in the scene. As you may have noticed I like to make my names descriptive of what they are. You can pick whatever names you want. But it is much easier to use descriptive names.
If you want hit Ctrl + E to see what you just added.
Now it is time to add the link button and respective group.
group "Link ME Plz!" (
Button LinkME_Button "Link ME!" enabled:off
) --close group Since this is pretty straight forward I didn't include any labels. However there is something different with this button. After the second parameter I included enabled:off. Buttons have the property of being enabled or disabled.
Enabled is just the property to turn on or turn off the button. The default is on, but I changed it to off.
I want you to do pick the object and vertex before you link anything. That way you don't have problems. The off is a built in value, like true, false, on, and undefined.
|
|
|
|