|
hello, i want to create an custom parameter like “button” under my object parameters or in attribute holder and i want this button run a simple code/script for me.
for example: linking Box1 to Box2
$.parent = $Box002
i know how to work with “wire parameter” and “parameter editor” but the problem is that i cant find any way to tell them to run this script with that parameter.
if anyone know a way to do this please help me!
|
|
|
|
ok i think you wont create custom button
then
you have to create custom attributes
button= attributes scale
)
rollout button “ Rollout”
(
button btn1 “Button” pos:[29,16] width:85 height:18
on btn1 pressed do
(
your code
)
)
custattributes.add $ button
select the obj and evaluat
|
|
|