3ds MAX SDK : How to Rotate object in Dialog by Slider ?

3ds MAX SDK : How to Rotate object in Dialog by Slider ?

Anonymous
Not applicable
893 Views
2 Replies
Message 1 of 3

3ds MAX SDK : How to Rotate object in Dialog by Slider ?

Anonymous
Not applicable

I try to use void Rotate(TimeValue t, const Matrix3& tmAxis, const AngAxis& val, BOOL localOrigin=FALSE, BOOL affectKids=TRUE, int pivMode=PIV_NONE, BOOL ignoreLocks=FALSE) this function in inode.h  [class INode:]

but when i get Slider move  Event me need to get TimeValue,

 

Interface* IF = static_cast<Interface *>(GetCOREInterface(MAIN_MAX_INTERFACE));
TimeValue t = IF->GetTime();

// t = 0 ;

and when i call  Rotate function - >> node->Rotate(t, tmAxis, axis, TRUE, TRUE, PIV_NONE, FALSE);

3ds max is hunging..

 

Me need to do rotate selected object in Dialog by Slider, how i can do it?

0 Likes
Accepted solutions (1)
894 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

or How to Drag Animation Time Slider  by code?

0 Likes
Message 3 of 3

istan
Advisor
Advisor
Accepted solution
0 Likes