Jump to content

Im making a custom part using blender with a animation how can i make a right click menu to display a button to Extend the part(play an animation)


Recommended Posts

On 11/27/2022 at 12:28 PM, Linuxuser1234 said:

Im making a custom part using blender with a animation how can i make a right click menu to display a button to Extend the part(play an animation)

You need the stock animate generic module in your config for your part.

    MODULE
    {
        name = ModuleAnimateGeneric
        animationName = Fuel (Change this to the unique name you gave your animation)
        startEventGUIName = Open Port (change this to what you want your button to read)
        endEventGUIName = Close Port (change this to what you want your button to read)
        actionGUIName = Fuel Hatch (change this to what you want it to read in the assignment screen)
        //defaultActionGroup = Gear ( remove the 2 forward slashes to have it auto assigned to the landing gear button)
        layer = 2 ( this only relates in the config if you have more than one animation in your config file, so if you hade a second animation set up in a second ModuleAnimateGeneric module you would give it a different number. Does not relate to layers inside blender.)

        animSpeed = 1 (best to leave this alone)

    
    }

Obviously you would remove all the Bolded stuff in your own setup. When you right click on your part, the button will be there to use.

 

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...