Hello.
I want to make hotkeys for these selecting tools. Pick point/edge/polygon referance. Probably I will need to make a script button for it. When I use these tools there is in no code in script editor to make a script button.
Hotkeys for referances
Hotkeys for referances
- Attachments
-
- Скриншот 2017-05-12 13.48.28.png (14.85 KiB) Viewed 2044 times
Re: Hotkeys for referances
Im no good in scripting so i cant write the script exactly, but you need a script that:
Enables pick session (stores selected object and selected point )
and then applies
SetTransientReferencePlane("selected object.selected point");
Enables pick session (stores selected object and selected point )
and then applies
SetTransientReferencePlane("selected object.selected point");
Re: Hotkeys for referances
I am no good with scripting too, but these jscripts are working for me:
Would be nice to set component manipulation mode to Ref via script as well. Maybe someone knows how to do it.
Code: Select all
var selectPoint = PickElement( "point", "Select point", "Select point" );
var point = selectPoint.Value("PickedElement");
SetTransientReferencePlane(point);
Code: Select all
var selectEdge = PickElement( "edge", "Select edge", "Select edge" );
var edge = selectEdge.Value("PickedElement");
SetTransientReferencePlane(edge);
Code: Select all
var selectPolygon = PickElement( "polygon", "Select polygon", "Select polygon" );
var polygon = selectPolygon.Value("PickedElement");
SetTransientReferencePlane(polygon);
Re: Hotkeys for referances
You can set Transform to Reference with:
Application.SetTransformRefMode(3)
This is the python script version.
Cheers
CYTE
Application.SetTransformRefMode(3)
This is the python script version.
Cheers
CYTE
Re: Hotkeys for referances
Thank you guys! You're amasing!
How to pick these tools on screenshot? For easier use I need an ability to pick referance after selecting polygons/edges/points that I want to transform.
How to pick these tools on screenshot? For easier use I need an ability to pick referance after selecting polygons/edges/points that I want to transform.
Re: Hotkeys for referances
I found JScript version of this:CYTE wrote:You can set Transform to Reference with:
Application.SetTransformRefMode(3)
This is the python script version.
Cheers
CYTE
Code: Select all
SetUserPref("3D_TRANSFO_REFERENTIAL_CHANGED", 3);
Re: Hotkeys for referances
Guys thanks for replies. I need exactly these buttons for purpose. The difference is that these buttons have a picker to pick point/edge/poly referance. I can select polies edges or points and set the transformation axes after. Very handy.
- Attachments
-
- Скриншот 2017-09-03 13.06.14.jpg (58.89 KiB) Viewed 1522 times
Who is online
Users browsing this forum: No registered users and 34 guests