Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

started f360 driver development #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

InTostor
Copy link

@InTostor InTostor commented Jun 6, 2022

toster, from youtube.
demo: https://explorers.net.ru/mm_driver_demo.3gp

@mattogodoy
Copy link
Owner

Thanks for the scripts!

When I have the time I'll take a look into it and see how we can integrate them in this project.

@InTostor
Copy link
Author

I'm stuck on camera translation. It is rotating to X aixs instead of moving. Could you help me with it? (code will be in next commit)

@mattogodoy
Copy link
Owner

Can you give me some brief instructions on how to install and use this script?

I just had a kid and have virtually no time, but I'll try to take a look into it :)

@InTostor
Copy link
Author

InTostor commented Jun 14, 2022

Well, script. Yaw and zoom is working, for translations there is two methods: transformCameraByMatrix - transforms camera point by specific matrix and transformCameraByVector - transforms camera point by specific 3d vector. The goal is to move camera left and right.

I tiried to calculate vector, that will be perpendicular to the vecUp and to the (camera.eye - camera.target) vector
but camera is moving to the X axis (tries to align with)

edit:
i will experiment with this:
https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-d2e83d0b-781c-4faf-91ff-6cd31cc2174d
(no manual vector calculation, just rotating 90degree from eye-target vector around vecUp

camera object docs
https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-GUID-2358aa1b-6965-4e46-b6af-d38e6e2f0f68

@mattogodoy
Copy link
Owner

You are right, script is an oversimplification. It's just I don't know how are these called for Fusion360. Plugins maybe?

My question was on how to test it in Fusion360, but I think I found something in the docs you linked:
https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-9701BBA7-EC0E-4016-A9C8-964AA4838954

I'll take a look when I have some time.

@InTostor
Copy link
Author

This script in fusion is addin. About testing:
1.put addin into AppData\Roaming\Autodesk\Autodesk Fusion 360\API
2. edit script there
3. shift+s in f360, start addin
4. repeat
(i know that this way is weird, but i didn't found better way)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants