Skip to main content
Known Participant
August 10, 2021
Question

Disable the target on a PF_ADD_POINT UI parameter

  • August 10, 2021
  • 1 reply
  • 1423 views

Hi, is it possible to have a 2D [X,Y] UI input without the target?

I'm making a plugin that needs a 2 dimensional input, but the target slides around when the user adjusts the values, which is very distracting.  I grouping 2 inputs inside a topic, or using a 3D point works but both are undesirable.  Is there simply a flag that can be set to disable the target?  Sorry if this is such a silly question, I have looked but can't find anything obvious.  Thanks in advance 🙂

This topic has been closed for replies.

1 reply

James Whiffin
Brainiac
August 11, 2021

To my knowledge it's not possible. The really roundabout way would be to implement your own arb param that has the same behaviour but doesn't draw the composition target. I settled for having an X and Y slider :"(

Known Participant
August 11, 2021

Thanks James, hope you're well mate.  I'll look into that but might settle for X and Y sliders, or use a 3D Point and ignore the Z.  Takes me a while to get back into the SDK zone after months of animation projects.  Must remember to annotate my code more!  All the best, and thanks again 🙂

James Whiffin
Brainiac
August 17, 2021

Hey James, I was just checking out your Shadow plugin, it's awesome, i'm gonna buy a license for my work!  You should make another version that bevels, because existing bevel plugins are crap.  Simply combining two of your inner shadows would do it, one for shadows and another for highlights but with the highlights last with a 180 degree offset.  However I'm guessing if they're combined into a single effect it will be much faster and save the need for users to link the 180 degree offset and instance the other settings via expressions.  Although maybe it would be better if the plugin has a checkbox to lock the highlight and shadow size/softness togther.  Anyway, just an idea, hope it helps!  BTW - have you ever managed to access path data from shape layers?  That's still bugging me at the moment and might be handy in the future, although 'd still have to manually copy 3d points into my plugin


Thanks for the idea! I've never considered it because I've never made anything good with the bevel effect haha (though I'm sure other people have). Do you have any good references?

 

You can access path data from shape layers through a hack of linking the shape path to a mask path, then inside the plugin accessing that through the Mask or Path suites. Unfortunately it doesn't work for shape presets (eg rounded rectangle, star tool) as they don't have a path param that can be linked to through expressions.