Jump to content

Is it possible to align controls horizontally in VEX or VOPs?


magneto

Recommended Posts

You have the ability to do this for added parameters from the operator type properties dialog, but I couldn't find the equivalent option in VEX pragmas, or in the Parameter VOP.

Is this supported?

Would be good if I had this same ability in VEX/VOPs.

Thanks :)

Link to comment
Share on other sites

Guest mantragora

Would like to know myself for VEXs

#pragma hint parameter_name hint_type

The hint_type can be one of the following:

...

joinnext 	

Put the parameter after this one on the same row in the GUI. For narrow controls this can save space in the parameter editor. 
Example: #pragma hint myParm joinnext

  • Like 1
Link to comment
Share on other sites

Thanks alot guys. I tried the joinnext pragma, but it doesn't seem to work for menus (dropdowns).

Basically I have a string parameter in my VEX code and I use the choice pragma to turn it into a menu but then they are not put on the same row.

I tried it with other parameters, it worked, so the pragma works but just not for menus.

Anyone can repro this? Could be a bug.

Thanks.

Link to comment
Share on other sites

Here is a code that shows the problem. Let me know if you can repro it, so I can submit a bug. It works when I tried the same using parameter VOPs.

#define VOP_OP
#define VOP_SOP

#pragma opname sop1
#pragma oplabel "VEX Builder SOP"
#pragma opmininputs 1
#pragma opmaxinputs 1

#pragma choice p0 "A" "A"
#pragma choice p0 "B" "B"
#pragma choice p0 "C" "C"

#pragma choice p1 "A" "A"
#pragma choice p1 "B" "B"
#pragma choice p1 "C" "C"

#pragma choice p2 "A" "A"
#pragma choice p2 "B" "B"
#pragma choice p2 "C" "C"

#pragma hint p0 joinnext
#pragma hint p1 joinnext

sop
sop1(string p0="A"; string p1="A"; string p2="A")
{
    P.x = 0;
}

  • Like 1
Link to comment
Share on other sites

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...