Skip to content

started f360 driver development - #3

Open
InTostor wants to merge 4 commits into
mattogodoy:masterfrom
InTostor:master
Open

InTostor wants to merge 4 commits into
mattogodoy:masterfrom
InTostor:master

Conversation

@InTostor

@InTostor InTostor commented Jun 6, 2022

Copy link
Copy Markdown

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

@mattogodoy

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

InTostor commented Jun 14, 2022

Copy link
Copy Markdown
Author

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
Copy Markdown
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
Copy Markdown
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