Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to set a modifier gizmo's position using pymxs, but it doesn't seem to work like it does in Max Script. When I execute this code I don't get an error, but nothing happens.
# Select an Editable Poly object, then execute this
import pymxs
pymxsRt = pymxs.runtime
s = pymxsRt.selection[0]
newMod = pymxsRt.UVWMap()
newMod.axis = 1
newMod.channel = 0
newMod.mapChannel = 2
pymxsRt.addModifier(s, newMod)
# does not work
s.modifiers[0].gizmo.position = pymxsRt.Point3(0,0,0)
# This doesn't work either
# s.modifiers[0].gizmo.position = [0,0,0]
Am I missing something?
Solved! Go to Solution.