playMaker

Author Topic: Cinemachine AxisState set properties - value and max speed[SOLVED]  (Read 2808 times)

westingtyler

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • My Video Game Projects Web Site
Re: Cinemachine AxisState set properties - value and max speed
« Reply #15 on: May 07, 2020, 02:15:59 PM »
Hello. this sounds great. Can you tell me which actions I need to use to use these new features?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15237
  • Official Playmaker Support
    • View Profile
Re: Cinemachine AxisState set properties - value and max speed
« Reply #16 on: May 12, 2020, 10:57:36 PM »
Hi,

action like FreeLookCameraGetXaxisSettings for example.

Bye

 Jean

westingtyler

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • My Video Game Projects Web Site
Re: Cinemachine AxisState set properties - value and max speed
« Reply #17 on: May 13, 2020, 10:31:45 PM »
I still can't seem to figure out where to retrieve the cameras' rotation values. Free Look Camera Get YAxis Settings doesn't seem to include the current rotation angle float. That's the variable I need, and it's like a needle in a haystack and I cannot seem to find it still.

I've attached an image showing the available Free Look actions, but the only ones of use seem to be Get Rig Settings and Get xAxis Setttings, neither of which exposes the rotation float. Am I missing something simple?
« Last Edit: May 13, 2020, 10:35:26 PM by westingtyler »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15237
  • Official Playmaker Support
    • View Profile
Re: Cinemachine AxisState set properties - value and max speed
« Reply #18 on: May 14, 2020, 11:11:34 PM »
hi,

 can you make a screenshot of the freelook inspector and circle out the property you want to access? I am not sure I follow what you are missing.

Bye,

 Jean


westingtyler

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • My Video Game Projects Web Site
Re: Cinemachine AxisState set properties - value and max speed
« Reply #19 on: May 15, 2020, 12:49:27 AM »
Sure, no prob. I actually posted this earlier in the thread. I've attached it again. Is that what you meant I needed to screengrab?

I think I had them pinpointed in the script to this: [AxisStateProperty]
        public AxisState m_YAxis = new AxisState(0, 1, false, true, 2f, 0.2f, 0.1f, "Mouse Y", false);.

I need to GET the property at the left side of this screen grab, remap the float into a useable range, and SET it onto the right side, and vice versa.
« Last Edit: May 15, 2020, 12:51:11 AM by westingtyler »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15237
  • Official Playmaker Support
    • View Profile
Re: Cinemachine AxisState set properties - value and max speed
« Reply #20 on: May 18, 2020, 12:06:05 AM »
Hi,

 it should be there:



Bye,

 Jean

westingtyler

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • My Video Game Projects Web Site
Re: Cinemachine AxisState set properties - value and max speed
« Reply #21 on: May 20, 2020, 03:28:26 AM »
thanks! my version doesn't have that.

you said "new version up on the asset store", but I made the mistake of buying it NOT from the asset store, so I have to use the download link in my email from the purchase. if I could switch to the asset store version that would be ideal, but if I can't, how do I get this action?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15237
  • Official Playmaker Support
    • View Profile
Re: Cinemachine AxisState set properties - value and max speed
« Reply #22 on: May 20, 2020, 07:12:06 AM »
Hi,

:) I see, I meant new version on the Ecosystem.... sorry!

Bye,

 Jean

westingtyler

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • My Video Game Projects Web Site
Re: Cinemachine AxisState set properties - value and max speed
« Reply #23 on: May 21, 2020, 07:35:17 AM »
cool this is great. So I am able to get/set the Free Look Over the Shoulder camera's X and Y values, but the first person camera is a Virtual Camera.

I can't find another action called "Virtual Camera Get/Set X/Yaxis Settings" to use it with to transition between 1st and OTS cameras.

Is the Free Look Camera Get/Set X/Y Axis action supposed to work with both the Virtual Camera component and the Free Look camera component?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15237
  • Official Playmaker Support
    • View Profile
Re: Cinemachine AxisState set properties - value and max speed
« Reply #24 on: May 21, 2020, 10:55:39 PM »
Hi,

virtual camera do not have input axis, else can you make a screenshot of the component? if it's there I can find a way to get to it.

get/set axis can only work on component that themselves feature this axis system.

Bye,

 Jean

westingtyler

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • My Video Game Projects Web Site
Re: Cinemachine AxisState set properties - value and max speed
« Reply #25 on: May 22, 2020, 04:15:24 AM »
okay. the one on the left, with the red circle around it is the value I need to get somehow. You've provided a great way to get/set the value on the right side image, but I still need a way to get the circled value on the left side image.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15237
  • Official Playmaker Support
    • View Profile
Re: Cinemachine AxisState set properties - value and max speed
« Reply #26 on: May 22, 2020, 05:12:40 AM »
Hi,

 what is this First person virtual camera? I don't have that. Can you make a screenshot where I can see the name of the component?

Bye,

 Jean

westingtyler

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • My Video Game Projects Web Site
Re: Cinemachine AxisState set properties - value and max speed
« Reply #27 on: May 23, 2020, 03:30:22 PM »
okay. i think it's a virtual camera component, and I just call it "first-person" because I use it for that.

« Last Edit: May 23, 2020, 03:32:19 PM by westingtyler »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15237
  • Official Playmaker Support
    • View Profile
Re: Cinemachine AxisState set properties - value and max speed
« Reply #28 on: May 25, 2020, 11:38:08 PM »
Hi,

 ok, done, new actions available to access these axis settings:

VirtualCameraAimPovSetYaxisSettings
VirtualCameraAimPovGetYaxisSettings
VirtualCameraAimPovSetXaxisSettings
VirtualCameraAimPovGetXaxisSettings

Bye,

 Jean

westingtyler

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • My Video Game Projects Web Site
Re: Cinemachine AxisState set properties - value and max speed[SOLVED]
« Reply #29 on: May 29, 2020, 01:43:53 PM »
Hello. Using these actions i am able to get the vertical rotation of the 1st person Virtual Camera and successfully remap the float to 0-1 for use with the OTS Free Look Camera's Axis Control Y Axis Value

But i cannot seem to SET the final value on the Free Look Camera.

Does the "Free Look Camera Set Yaxis Settings" action's Value float set the FL cinemachine component correctly? or do I need a "Free Look Camera Aim POV Set X/Y Axis Settings" action?

No matter what, the character camera still faces the ground (Y axis value=1) when exiting 1st person mode, instead of facing the direction the first-person camera was facing.

In the attached image you can see I have the right value i need, but it won't 'set' to the Free Look camera, which always defaults to 1.
« Last Edit: May 29, 2020, 01:47:58 PM by westingtyler »