How to get all modifiers from object selected?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
fajar's picture

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's picture

.

(
	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:""
)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.