Opened 4 years ago

Last modified 3 years ago

#5967 assigned enhancement

add independent-rotation option to turn, roll commands

Reported by: Elaine Meng Owned by: Tom Goddard
Priority: moderate Milestone:
Component: Scenes/Animation Version:
Keywords: Cc: semchonok@…
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

now that we have a "rotate independent" mouse mode, would be nice to also have this capability for turn and roll commands in scripts. Use case is side-by-side comparison of models like in the Chimera "COX Inhibitors" demo, also seen in movies others have made using Chimera.

Change History (3)

comment:1 by Elaine Meng, 3 years ago

Cc: semchonok@… added

comment:2 by Elaine Meng, 3 years ago

Although it would still be nice to have a separate option, currently independent rotation can be scripted by using separate turn (or roll) commands as in this example from Tom Goddard:

You can use the "model" and "center" options of the turn command to rotate each model about their own center. For example, rotating 2 models in 1 degree steps around the y axis for a total of 360 degrees

movie record
turn y 1 360 model #1 center #1
turn y 1 360 model #2 center #2
wait 360
movie encode side-by-side-spin.mp4

In this example the two models rotate at the same time. The turn command like other commands that create a motion returns immediately before any motion is done to allow you to start simultaneous motions. Then you use the "wait 360" command to wait until 360 frames have been rendered, then the .mp4 movie file is made.

Last edited 3 years ago by Tom Goddard (previous) (diff)

in reply to:  3 ; comment:3 by semchonok@…, 3 years ago

Thank you very much for your tips.

Works as a charm.


How 1 more question if you please -



Is it possible to record a movie while your 3D map constantly changing its threshold volume level (from low to high - which is possible to set) ? 

If yes, how? 


Thank you in advance.

Sincerely,
Dmitry



Note: See TracTickets for help on using tickets.