02 February 2006, 12:31 PM
For a game I am making I am adding some custom objects to 3dsmax, which are then handled by my exporter. For one of these, I want to center the pivot each time a spinner is changed. The problem is: centerPivot wants a node, how do I get the node of the current object? Using "this" or "delegate" does not work, nor does "(getNodeByName this.name)", because apparently "this" does not have a "name". So how do I get the node? This is the code I am talking about (stripped away everything that is not necessary for this question):
plugin Helper CRBoost
parameters main rollout:params
heightCustom type:#float ui:heightSpinner default:3
rollout params "Boost Parameters"
spinner heightSpinner "Height" range:[-10000000, 10000000, 3]
on heightSpinner changed val do