Origin Widgets
- clintonman
- Captain
- Posts: 5406
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Origin Widgets
This was originally developed to make the workspace NURBS edges a little bit more like handles.
Use the ctrl button plus LMB or RMB on the widget cubes to scale from the origin instead of the center of the selection or object.
PE widget - ctrl + LMB the center sphere to set the origin to the selection.
Installation is not permanent.
The scripts have no safety checks for multiple runs - only run them one time.
Reset default context to remove the changes.
- Attachments
-
- PE Widget Updater06.RsObj
- (44.83 KiB) Downloaded 123 times
-
- Object Nav Widget Updater05.RsObj
- (40.23 KiB) Downloaded 127 times
Re: Origin Widgets
Cool, I was wondering if the other widgets could have this Mesh Origin indicator
One little caveat...
When you MMB + Drag the widget's Sphere that moves the widget, the Mesh Origin indicator moves with it
One little caveat...
When you MMB + Drag the widget's Sphere that moves the widget, the Mesh Origin indicator moves with it
- clintonman
- Captain
- Posts: 5406
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Origin Widgets
Well, don't see any way around that. I'll make a note, thanks.
Re: Origin Widgets
I tried to implement the Ctrl + LMB gesture in the Centered Object Navigation Widget/Boxes minus the Origin object
It is not working
Does it it not support this?
It is not working
Does it it not support this?
- clintonman
- Captain
- Posts: 5406
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Origin Widgets
It works with lmb and rmb already.
Edit: hm maybe something is happening, it does the scale without the ctrl...
Nope it's ok, must have been something else.
Reset default context
made sure the centered nav widget was active
ran the script and it works as expected
Re: Origin Widgets
Thank you, that did it!clintonman wrote: ↑26 Jul 2021, 00:27It works with lmb and rmb already.
Edit: hm maybe something is happening, it does the scale without the ctrl...
Nope it's ok, must have been something else.
Reset default context
made sure the centered nav widget was active
ran the script and it works as expected
Re: Origin Widgets
Origin
Exported the Visible aspect of the Static widget controller Mesh Origin
Add
Hide | Show Origin
Exported the Visible aspect of the Static widget controller Mesh Origin
Add
Hide | Show Origin
Code: Select all
if(Node.ConExists("/Widgets/Select/Default object navigation widget/Origin", "Visible")) {
RsTool.ToggleValue("/Widgets/Select/Default object navigation widget/Origin/Visible")
}
if(Node.ConExists("/Widgets/Edit/Point edit widget/Origin", "Visible")) {
RsTool.ToggleValue("/Widgets/Edit/Point edit widget/Origin/Visible")
}
RsTool.Arrow();
- clintonman
- Captain
- Posts: 5406
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Origin Widgets
Very nice, what does the RsTool.Arrow() do?trueBlue wrote: ↑26 Jul 2021, 02:07 Origin
Exported the Visible aspect of the Static widget controller
Mesh Origin.png
Mesh Origin
Add
Hide | Show OriginCode: Select all
if(Node.ConExists("/Widgets/Select/Default object navigation widget/Origin", "Visible")) { RsTool.ToggleValue("/Widgets/Select/Default object navigation widget/Origin/Visible") } if(Node.ConExists("/Widgets/Edit/Point edit widget/Origin", "Visible")) { RsTool.ToggleValue("/Widgets/Edit/Point edit widget/Origin/Visible") } RsTool.Arrow();
Re: Origin Widgets
That is the Object tool command
I used it to refresh the obj widget
I used it to refresh the obj widget
- clintonman
- Captain
- Posts: 5406
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Origin Widgets
I think I'll skip that part of it.
If you have a group member selected it will be deselected and the group will be selected.
It also exits pe mode.
Maybe you can use
Widgets.ActivateDefaultWidget(); for object
to refresh the widgets
Edit: just did a test and it works. Updates the widget without losing/changing selection. It just needs to only be run in object mode, not pe mode. Nothing needed for pe widget since it updates as soon as you make a new selection.