View > Direction > Menu items trough script?
Moderators: Víctor Paredes, Belgarath, slowtiger
- synthsin75
- Posts: 10008
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: View > Direction > Menu items trough script?
Wow, that camera tool looks really impressive, Lukas!
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
- hayasidist
- Posts: 3560
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: View > Direction > Menu items trough script?
ok -- I admit it -- that line passed me by first time --- Occam!!!
find the camera channels: (e.g. code based on: https://mohoscripting.com/snippets/4)
CHANNEL_CAMERA_TRACK
CHANNEL_CAMERA_ZOOM
CHANNEL_CAMERA_ROLL
CHANNEL_CAMERA_PANTILT
and mute / unmute them:
Channel:Mute(bool)
??!
Re: View > Direction > Menu items trough script?
Thanks, it has proven useful in a few shots already! I'm still finishing up some loose ends and will post it soon.
That might actually be a lot easier indeed! And the camera gizmo isn't in the way when animating. I tried it at first but channel.value no longer returned the correct value. But just found out channel:GetValue(moho.frame) works just fine on muted channels. Thanks, I'll give it a shot!hayasidist wrote: ↑Tue Oct 12, 2021 9:12 amok -- I admit it -- that line passed me by first time --- Occam!!!
find the camera channels: (e.g. code based on: https://mohoscripting.com/snippets/4)
CHANNEL_CAMERA_TRACK
CHANNEL_CAMERA_ZOOM
CHANNEL_CAMERA_ROLL
CHANNEL_CAMERA_PANTILT
and mute / unmute them:
Channel:Mute(bool)
??!
Re: View > Direction > Menu items trough script?
I'm not sure what path to take anymore... I'll just leave this here for now:
Here's two alpha version of the tool: LK_Camera-Alpha
There's a LK_Camera_Mute version and a LK_Camera_Orbit version. Both have their issues.
The Mute version toggles the camera on/off by muting the camera channels. (Leaving out pan/tilt completely and its advised to simply not use zoom too much). We usually zoom in/out by adjusting the Z position of the camera, instead of the zoom tool.
The orbit version switches between 'front' (orbit) view and 'camera' view. Which seems an extreme way to do it, but it does require less modding of the original camera tools that are invoked on onmousedown etc, so I might prefer that one.
What I'm trying to achieve is the ability to toggle the camera on/off in any situation without the viewport jumping around. In any camera key situation. And it would be great to be able to set the camera position etc in both modes easily.
The drawn paths already work really well so far. I find it very useful.
The color buttons also have an 'alt' behaviour. They adjust all keys of that same color to the current position.
Here's two alpha version of the tool: LK_Camera-Alpha
There's a LK_Camera_Mute version and a LK_Camera_Orbit version. Both have their issues.
The Mute version toggles the camera on/off by muting the camera channels. (Leaving out pan/tilt completely and its advised to simply not use zoom too much). We usually zoom in/out by adjusting the Z position of the camera, instead of the zoom tool.
The orbit version switches between 'front' (orbit) view and 'camera' view. Which seems an extreme way to do it, but it does require less modding of the original camera tools that are invoked on onmousedown etc, so I might prefer that one.
What I'm trying to achieve is the ability to toggle the camera on/off in any situation without the viewport jumping around. In any camera key situation. And it would be great to be able to set the camera position etc in both modes easily.
The drawn paths already work really well so far. I find it very useful.
The color buttons also have an 'alt' behaviour. They adjust all keys of that same color to the current position.