PDA

View Full Version : LayoutTool class sample code



adamredwoods
11-06-2007, 01:08 PM
Is there any sample code out there for the LayoutTool class?

Also, does anyone know if it can be applied if a displacement plugin is active?
For example, say you're creating a new BEND displacement plugin. You want the plugin to automatically create some UI handles without the user having to create two additional nulls.

Many thanks!

//Adam

Lightwolf
11-06-2007, 01:13 PM
Hi Adam,
check out LWGizmos that are part of the LW 9.3 SDK, they allow any plugin class in Layout to use handles.

Cheers,
Mike

adamredwoods
11-06-2007, 01:58 PM
Good info, thanks Mike!

And I found more info under the 'Handlers' description in the SDK documentation, for those who might be interested.

...
I just now read it and it looks just what I wanted. I was examining the LayoutTool class and that seems to be more of a button-activated-only tool (Splinecontrol, IKBoost), whereas a gizmo can be attached to anything, but it's up to the client-side to determine when to draw and activate.

I'll do a test with it and perhaps post a new BEND plugin when I have time.

//Adam

Lightwolf
11-06-2007, 02:04 PM
I just now read it and it looks just what I wanted.
They are very cool. I'm looking forward to the first excuse for me to code one :D

Cheers,
Mike