Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there. I've really started to like this community in terms of the support it gets so thumbs up to that :).
But regarding my issue, I'm trying to get this model...
...to rotate with a slider. As I increase the slider the rotation speeds up. Heres my code for the windmill so far:
string $windmillwindow = `window -t "Windmill & Farm Creator" -wh 600 500`; frameLayout -collapsable true -label "Farm Options"; gridLayout -cellWidthHeight 150 100 -numberOfColumns 4; button -label "Create \n Land" -bgc 0.2 1 0.2 -command "showtheland()"; button -label "Create \n Buildings" -bgc 0.2 1 0.2 -command "createbuildings()"; button -label "Remove \n Land" -bgc 1 0.2 0.2 -command "hidetheland()"; button -label "Remove \n Buildings" -bgc 1 0.2 0.2 -command "removebuildings()"; setParent..; frameLayout -collapsable true -label "Windmill Options"; gridLayout -cellWidthHeight 150 50 -numberOfColumns 4; button -label "Start Spin" -command "fan.rotateY = $speed * (360 / 6.2830) * time"; //broken:( button -label "BLANK"; button -label "BLANK"; button -label "BLANK"; setParent..; frameLayout -collapsable true -label "Timeline"; gridLayout -cellWidthHeight 300 50 -numberOfColumns 2; symbolButton -image "timeplay.png" -command "playscene()"; symbolButton -image "timerewSequencer.png" -command "resettimeline()"; setParent..; if (`window -ex $windmillwindow`) showWindow $windmillwindow
At the moment its set to a button but for me to get a slider working with this is **** hard, can someone suggest how I can go about this? Thanks
Solved! Go to Solution.