People, help me solve the problem with two cameras.
The first camera operates on arcball.
Second camera with a walkigenerator.
When you move the active camera, the inactive one also moves. This disturbs the view of the inactive camera.
I don’t know how to program.
The solution is probably simple)
In this case, the Set Trait Paused node should help, in which we specify Trait and the value, but it works only for logical nodes, it will not work on Bundle and Trait. Although I think that we need to expand the capabilities of such a site or call it differently.
As a result, the simplest solution, as I see it, is to remember the position of the camera when switching and to set it back when returning.
can you tell me what node design can replace the code?
“object.transform.rotate (object.transform.world.right (), -mouse.movementY / 100);”
difficulty with “object.transform.world.right”.
Trying to intercept the slider action when hovering over it. To disable scene rotation.
I collect my own arcball on the nodes. the hex script is not paused.
I apologize for the offtopic. I would not like to post a new topic because of this question
Made a node for turning using the ArcBall algorithm from the Bundle. It works for me similarly in the example. In this case, it will be possible to pause.
python file is added to ..\ArmorySDK\armory\blender\arm\logicnode\transform\
haxe file is added to ..\ArmorySDK\armory\Sources\armory\logicnode\
An example of a project with its own nodes (the description and file name in python are slightly different): switch_move_camera_custom_node.zip
Blender can be unstable with custom nodes.
I don’t know whether to add such a node to the engine source, whether it is necessary or possible to modify the Rotate Object node. This is how others see fit.
I wonder in your example how the variant with the node will work?