PEN
08-21-2008, 09:18 PM
What I have is something like this which doesn't work. I used to be able to cast a variable into the scope of the menu but this changed around Max 8 and Larry had to add the on open handler and allow it to set the variable. How ever the only thing that I apprear to be able to set to p is this..so.. p=this. This being the ca def or scripted plugin that the function is in. Any sugestions on getting other variables into the menu so that I don't have to hard code solutions into it?
fn mirrorNodesMenu param=
(
rcMenu menu
(
local p
menuItem clearNode "Clear Node"
on clearNode picked do
(
print p
)
on menu open do
(
p=param
)
)
)
fn mirrorNodesMenu param=
(
rcMenu menu
(
local p
menuItem clearNode "Clear Node"
on clearNode picked do
(
print p
)
on menu open do
(
p=param
)
)
)
