Need help with adding an element

  • moony
    5th Feb 2022 Member 0 Permalink

    I am trying to make a new element but for some reason, it won't show up in the menus.

    Can anyone help? It should be under the LIQUIDS tab, but it's not there.

    I saw someone asking this same thing in the comments of a youtube video, but I can't find it.

    Edited once by moony. Last: 25th Nov 2022
  • ArolaunTech
    9th Feb 2022 Member 0 Permalink

    Can you put the code here so we can help? Maybe it is with elements.property:

     

    elements.property(<insert new element name here>, "MenuSection", 7)

     

    will make the element <insert new element name here> be in the Liquids tab.

     

    Also remember, elements are accessed with the variable you make them in:

     

    new = elements.allocate(<something>,<something>)

     

    or their element identifier, which is:

     

    "elements.", then the first argument to the allocate function, then "_PT_", then the second argument to the allocate function

     

    (everything must be in all caps. elements.allocate("blah","elem"), for example would create the element identifier "elements.BLAH_PT_ELEM".)