Hello
I would like to add a button to knife tool which would set the direction to a specified vector let's say 1,0,0
Is there any way to do it?
Not being good at this I just tried to add “set dirx=1” as a callback script to set at least one component of this vector but with no succes
how to add a button to set vector direction
2128 5 0- bobcat
- Member
- 41 posts
- Joined: July 2014
- Offline
- Alexey Vanzhula
- Member
- 538 posts
- Joined: Dec. 2006
- Offline
- goldfarb
- Staff
- 3456 posts
- Joined: July 2005
- Offline
to the far right of the Callback Script is an icon -> “H”
this means the script needs to be written in valid HScript
you can click the “H” and you'll get a dropdown where you can select python instead - then write the script in python
here is a simple Hscript you can use for +x:
opparm . dist ( 1, 0, 0 )
to see the help for opparm in Hscript you can open a Textport and type : help opparm
this means the script needs to be written in valid HScript
you can click the “H” and you'll get a dropdown where you can select python instead - then write the script in python
here is a simple Hscript you can use for +x:
opparm . dist ( 1, 0, 0 )
to see the help for opparm in Hscript you can open a Textport and type : help opparm
- bobcat
- Member
- 41 posts
- Joined: July 2014
- Offline
- goldfarb
- Staff
- 3456 posts
- Joined: July 2005
- Offline
- bobcat
- Member
- 41 posts
- Joined: July 2014
- Offline
-
- Quick Links