Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / macro works when executed from a button but not when executed from the keyboard
  RSS 2.0 ATOM  

macro works when executed from a button but not when executed from the keyboard
Rate this thread
 
63643
 
Permlink of this thread  
avatar
  • Total Posts: 13
  • Joined: 23 August 2011 11:54 AM

Hello all !

I wrote a very simple macro that makes an editable poly display with hard edges :

macroScript My_Script_Name category:"My_Category"
(
 
select $My_Object_Name
 macros
.run "PolyTools" "Hard"
)

The thing is it works fine when the macro is affected to a button but not when it is affected to a keyboard key : when executed from the keyboard, the object is selected but the “hard” is not applied.

Any suggestions...? I thought maybe it has something to do with the context (with the keyboard I am not in the proper context)...?

Thanks in advance,

Yannick



3ds Max 2012
AMD Phenom II X6 @ 3200 MHz, 8GB RAM
NVIDIA GeForce GTS 450
Windows 7 x64

Replies: 0
avatar
  • Location: Sarnia, Ontario CANADA (ehh)
  • Total Posts: 262
  • Joined: 22 August 2006 08:13 AM
  • Permlink of this post

post in maxscript section

yannick1976 18 January 2012 03:46 AM

Hello all !

I wrote a very simple macro that makes an editable poly display with hard edges :

macroScript My_Script_Name category:"My_Category"
(
 
select $My_Object_Name
 macros
.run "PolyTools" "Hard"
)


The thing is it works fine when the macro is affected to a button but not when it is affected to a keyboard key : when executed from the keyboard, the object is selected but the “hard” is not applied.

Any suggestions...? I thought maybe it has something to do with the context (with the keyboard I am not in the proper context)...?

Thanks in advance,

Yannick



Replies: 0
avatar

So I did (post in maxscript forum)
Not sure where my post fits best => mods feel free to delete either !



3ds Max 2012
AMD Phenom II X6 @ 3200 MHz, 8GB RAM
NVIDIA GeForce GTS 450
Windows 7 x64

Replies: 1
/img/forum/dark/default_avatar.png

Moved this thread from Max2012, removed the duplicate as they are not allowed.

Works fine here. See if the Keyboard Override Shortcut Toggle has any impact.

Author: Steve_Curley

Replied: 19 January 2012 07:15 AM