Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

seam clear hotkey script

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
slava.lobanov.1990
524 Views, 6 Replies

seam clear hotkey script

Hello. Can I somehow create a script that will work through a hotkey that will remove the blue seam from the model?

Now this can be done through the clamped alt in the seam editing mode. I need this option without activating this mode.

The hotkeys have Edge Sel to Pelt Seam (Add)  this marks the seam on the desired edges. I need a reverse operation on another button.

I saw a video of a paid script and there was a button to clean the seams. How to make only this option separately without everything else?

Labels (1)
6 REPLIES 6
Message 2 of 7

 

macroScript HideSeams
	category:"UVW Unwrap Helpers"
	toolTip:"Hide Seams"
(
	try ((modpanel.GetCurrentObject()).setPeltSelectedSeamsByNode #{} selection[1]) catch()
)

 

how to assign a hotkey to a macro, you probably know yourself

 

Message 3 of 7

macroScript HideSeams
	category:"UVW Unwrap Helpers"
	toolTip:"Hide Seams"
(
	local modi = undefined
	fn enabled = (iskindof (modi = modpanel.GetCurrentObject()) Unwrap_UVW)
	on isEnabled do (enabled())
	on execute do if enabled() do (modi.setPeltSelectedSeamsByNode #{} selection[1])
)
Message 4 of 7

That's what you need. This is the only way he removes all the seams from the entire object at once. It is necessary to remove only from the selected edges.

Message 5 of 7



Message 6 of 7


@slava.lobanov.1990 wrote:

That's what you need. This is the only way he removes all the seams from the entire object at once. It is necessary to remove only from the selected edges.


macroScript HideSeams
	category:"UVW Unwrap Helpers"
	toolTip:"Hide Seams"
(
	local modi = undefined
	fn enabled = (iskindof (modi = modpanel.GetCurrentObject()) Unwrap_UVW)
	on isEnabled do (enabled())
	on execute do if enabled() do 
	(
		ss = #{}
		if keyboard.shiftPressed do
		(
			ss = modi.getPeltSelectedSeams()
			ee = modi.getSelectedGeomEdges()
			ss -= ee
		)
		
		modi.setPeltSelectedSeams ss
	)
)

 

with SHIFT clear selected edges, without SHIFT clear all

Message 7 of 7

Thank.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report