main menu selection

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/10/2012 at 08:08, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   all 
Platform:   Windows  ;   Mac OSX  ; 
Language(s) :     C++  ;

---------
Hi,

is it possible to retrieve selected options from the main menu? In my case, I want to adopt the play mode selection from the animations menu. I can't find anything in the prefernces container or at any other place.

Thanks,
Klaus

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/10/2012 at 09:00, xxxxxxxx wrote:

Hi Klaus,

These settings are private (DOCUMENTSETTINGS_ANIMATIONSYSTEM). The IDs aren't defined in CINEMA resources but here's how to get the current play mode selection:

BaseContainer *bc = doc->GetSettingsInstance(DOCUMENTSETTINGS_ANIMATIONSYSTEM);
LONG playMode = bc->GetLong(10034); // 0=Simple, 1=Cycle, 2=Ping-pong

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/10/2012 at 09:18, xxxxxxxx wrote:

Fantastic Yannick! Get/set also works fine in Python.
Excellent for generating spline via Tracer for a single doc run.

Cheers
Lennart

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/10/2012 at 09:23, xxxxxxxx wrote:

Quick and easy. Thanks Yannick.