View Full Version : [HELP] Slider Bar Linking To xRay function
wmsmith 09-23-2005, 03:54 PM How could i link a slider bar, to control the xray function of a selected object?
The higher the slider the more the transparent it becomes?
left to right opaque to transparent.
Thanks.
|
|
wmsmith,
The visiblity of a object is by default a boolean (true or false).
If you assign a bezier_float controller to this property you can have a slider controlling this value:
You will find this under:
General Node Properties
for example:
$.visibility = bezier_float()
$.visibility.controller.value = 0.5
asign each of your planes the controller and change the controller value in the spinner/slider on changed event.
hope this helps
Georg
wmsmith
09-23-2005, 04:33 PM
so if you assign a bezeir_float() , then u can adjust it from anything from 0 -> 1 right?
This in turn will make it see- through?
yes, I hope so.
this is a really bad hack:
rollout floating "seeThru"(
spinner seeit "" range:[0,1,1] type:#float
on seeit changed val do (
try(
if $.visibility==true or $.visibility==false then $.visibility=bezier_float()
$.visibility.controller.value=val
)catch()
)
)
createDialog floating 100 50
but it demonstrates the use.
Georg
wmsmith
09-23-2005, 04:52 PM
Thanks dude, ill give that a go when i go home.
j-man
09-23-2005, 05:59 PM
What about using manipulators and parameter wiring? if you can't do the visibility track you caould do the material!
J¬
j-man
09-23-2005, 06:01 PM
Oh,
I see you're after something else from your other post < :
J¬
CGTalk Moderation
09-23-2005, 06:01 PM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.