PDA

View Full Version : Connect dialog parameter and Bend angle(for example).


Tak Tak
02-28-2005, 09:13 AM
Hi,

I'm know how to wire custom attribute(added to modifier like PEN Attribute Holder 2) and bend angle(for example), but I 'm wondering how it's possible to wire parameters to custom dialog parameters coz there is no "right click and wire parameter..." option.

rollout AAA "AAA" width:50 height:105
(
slider sld1 "Slider" pos:[6,4] width:40 height:99 orient:#vertical
)createDialog AAA 50 105
There is simple dialog with slider, where I want to wire parameter of bend(for example).

If you know how to do this, please let me know!
Thanks.

Tak Tak
02-28-2005, 09:23 AM
OK, I solve this problem!!! Here is simple script.

rollout AAA "AAA" width:50 height:105
(
slider sld1 "Slider" pos:[6,4] width:40 height:99 orient:#vertical

on sld1 changed val do
try ($Cylinder01.modifiers[#Bend].BendAngle = sld1.value) catch()
)
createDialog AAA 50 105

Scripting is fun:bounce:

Tak Tak
02-28-2005, 09:35 AM
Hmm... I found little problem with this style of controlling.
I tested to animate bend angle with my floating dialog slider and realized terrible thing. All animation keys are keyed to bend modifier directly! Is it possible to key only slider so I don't have to search Cylinder01 -> Bend modifier -> Angle... always when I want to tweak my curves?

CGTalk Moderation
02-28-2006, 10:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.