Looking for Widget example

Technical questions, etc..
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Looking for Widget example

Post by froo »

Hi everyone.
I am looking for an example of a widget in action.
I am studying the widget example in the SDK, but can't get it working.
Any help would be most appreciated.

thanks!

Froo
User avatar
LeonRegis
Captain
Posts: 1946
Joined: 18 Aug 2009, 17:36
Type the number ten into the box: 0
Location: Brazil/Earth/Orion Arm/Milky Way/4th Dimension/This Universe/Multiverse???/Singularity???

Re: Looking for Widget example

Post by LeonRegis »

froo wrote:Hi everyone.
I am looking for an example of a widget in action.
I am studying the widget example in the SDK, but can't get it working.
Any help would be most appreciated.

thanks!

Froo
Try a PM to Design Devil, he should know about it (i guess)
Be the change you want to see in the world. - Mohandas Gandhi
stan
Master Chief Petty Officer
Posts: 584
Joined: 21 May 2009, 17:20

Re: Looking for Widget example

Post by stan »

Jason the widget sample should work..you need a bitmap on a face or complete object to get it to work. I have it if need be.
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Looking for Widget example

Post by froo »

Thanks stan. I compiled it, and created it via script command, using:

Node.Create('Examples Plugin/SDK Widget Example', Space.CurrentScene() );

Then I created a cube in the scene, clicked the newly created widget, then clicked
the cube. I did not apply a bitmap to any face, nor did I drop a bitmap onto the object.
Is that required? It did not highlight. What am I doing incorrectly?

thanks!

Jason
stan
Master Chief Petty Officer
Posts: 584
Joined: 21 May 2009, 17:20

Re: Looking for Widget example

Post by stan »

opps for some reason I though the old sdk widget.
I have a working example I could send you made from the 7.6 sdk that is part of my layers system.

not sure of your new email addy in denver.
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Looking for Widget example

Post by froo »

I think, we are talking about the same thing. Do you mean, the widget example,
in the RsExamplesPlugin package, in the SDK? That is the one I am using.

My email addy is the same; I'll send you a PM.

Thanks stan.

Also I notice, the widget examples in the ts7 Developer's Guide (DG) are really complex.
Hope I don't have to create something like that.

Basically, I need to create a widget that interacts with the control surface for the nurbs plugin.
The control surface will consist of, say, 4x4 vertices. You pull a vertex, and the nurbs surface reacts accordingly.
stan
Master Chief Petty Officer
Posts: 584
Joined: 21 May 2009, 17:20

Re: Looking for Widget example

Post by stan »

as for the sdk example once created you need to hook it up to a gesture on an active widget. I hooked it up to my axis guide quickly to show it working. it selects in red.
Attachments
widget.jpg
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: Looking for Widget example

Post by froo »

Thank you for your help stan. :bananacheers:

I will work on this tonight and report back.

Return to “TechForum”