ScriptSpot home

Forum topic · General Scripting

How to get all modifiers from object selected?

By Eduardo · 2016-11-30

Description

How to get all modifiers from object selected?

Thanks you

Comments (2)
fajar

also you can use this fn

also you can use this


fn getSelectionModifiers node = 
(
local x= #()
if node != undefined do  
  (
     join x node.modifiers
  )
x
)

-- getSelectionModifiers $ // this is how to use it

miauu

.


(
	if selection.count == 1 then
	(
		curO = selection[1]
		if curO.modifiers.count != 0 then
		(
			modsArr = for m in curO.modifiers collect m
			print modsArr
		)
		else
			messagebox "No modifiers" title:""
	)
	else
		messagebox "Select one object" title:""
)