Jump to content
3DCoat Forums

Scripting: Sending keyboard input in absence of "Apply" button.


SGK
 Share

Recommended Posts

  • Member

Hello.

 

My question is simple, how do I input keyboard actions through Angel Script?

Have looked at both the scripting docs for 3D Coat and the links to the Angel Script homepage but have not found anyway to do this.

I understand that this type of function might be omitted because of security reasons from a scripting language.

 

What I'm trying to do is the following.

Create a script that takes the current selection from the retopo rooms Select tool and clone it in place and then delete the selection.

The reason for this is so that the model gets hard split UV islands.

So I entered the command for clone into the script and that works, (nice way of entering script commands that you can just MMB+RMB to copy the UI element ID, very good feature).

The problem is that since when you get the transform widget from the clone tool there is no "Apply" button or other way of confirming except by pressing "Enter".

So is it possible to do keyboard input through the script engine or will I have to use something like Auto-hotkey or other macro program?

 

Also is it possible through the scripting functions to collapse(merge) a retopo layer to another?

The reason for this is that I want to create another script that takes all the cloned parts and merge that into one layer.

 

Thanks in advance for any help.

 

/Stefan

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...