[Closed] Parameters Help
Hi
we have 2 boxes in the scene box001 and box002
a=$box001 –OK
b=$box002 –OK
b.parent = a
it works. but my problem is
—=========
ah=(EmptyModifier())
caDef = attributes dd
(
rollout bgaRoll “ ”
(
button btn “Parent_Object”– pos:[5,140] width:150
fn aaa =(n.parent = nn)
on btn pressed do
(
n=$box001
nn=$Box002
aaa()
)
)
)
addModifier $ ah
custAttributes.add ah caDef
append AH.refNodes (nodeTransformMonitor node:$ forwardTransformChangeMsgs:false)
—=========
We can’t say ( n=$box001 ) in attribute holder we should use Parameters and assign rollout and …
what should i write to assign an object in attribute holder.
Thanks in advance
ah=EmptyModifier()
caDef = attributes dd
(
rollout bgaRoll " "
(
button btn "Parent_Object"-- pos:[5,140] width:150
fn aaa n nn =
(
n.parent = nn
)
on btn pressed do
(
n=$box001
nn=$Box002
aaa n nn
)
)
)
addModifier $ ah
custAttributes.add ah caDef
--append AH.refNodes (nodeTransformMonitor node:$ forwardTransformChangeMsgs:false)
Thanks for your reply
But
when you say n=$box001 later changing the box001’s name you face problem similar (Dependson)
but when use parameters although you change the name there is no problem.
here no needs to change the name in this example ,how about when you have a character then want a copy o it.
Thanks anyway.