I have been trying to create a scripted modifier. All works fine. The only thing is I want to display the current Z position of the object in the modifier. This will require me to update the modifier everytime the object updates. Can someone please guide me on how to update a modifier on the movement of its base object?
sample code:
plugin modifier accessBaseObject
name:"Access Details" classID:#(0x260e697e, 0x64b63822) replaceUI:true version:1
(
parameters main rollout:params
(
enterValue type:#float animatable:true ui:spnEnterValue default:0.0
on spnEnterValue set val do (print $.name)
)
rollout params "Modifier Parameters"
(
spinner spnEnterValue "Enter Value : "
)
on update do
(
print ($CAMERA.pos.Z)
)
)
Thanks in advance, Videep