Notifications
Clear all

[Closed] Macro problem?

I often have models with bolt holes drilled into them and I find that I need to texture them with threads for bolts, so I’ve found that I can isolate those holes using planar map or something and go one by one using cylindrical best align so that it’s easy to texture it with Threads.

But going one by one is painful, and I know a little maxscript so I went to fix this, unfortunately the fastest no-nonsense path was using the macrorecorder in which case I got this

$.modifiers[#unwrap_uvw].unwrap5.mappingMode 2
$.modifiers[#unwrap_uvw].unwrap5.mappingAlign 3
subobjectLevel = 3
$.modifiers[#unwrap_uvw].unwrap5.mappingMode 0

That worked out great. so I wanted to package this into a macro script so I could assign a hotkey for this

Macroscript CylBestAlignUnwrap
category:"QuickScripts"
(
$.modifiers[#unwrap_uvw].unwrap5.mappingMode 2
$.modifiers[#unwrap_uvw].unwrap5.mappingAlign 3
subobjectLevel = 3
$.modifiers[#unwrap_uvw].unwrap5.mappingMode 0
)

I select the faces I want, and run the script by hitting evaluate all on the original script and it works just fine.
If I run the script via hotkey through the macro it doesn’t work. any idea why this might happen??

1 Reply

Looks like I jumped the gun. failed to notice the keyboard shortcut override toggle.