2 questions about modifier.

2 questions about modifier.

Anonymous
Not applicable
326 Views
3 Replies
Message 1 of 4

2 questions about modifier.

Anonymous
Not applicable
1. How to change modifier's tangents from smooth(auto,etc.) to step? (not on Max but in code).

2. Modifier's values shows as "??" in Track View(see attachment), but i set their titles in ParamBlock2.

static ParamBlockDesc2 _movebleobject_param_blk ( _movebleobject_params, _T("params"), 0, &_MovebleObjectDesc,
P_AUTO_CONSTRUCT + P_AUTO_UI, PBLOCK_REF,
//rollout
IDD_PANEL, IDS_PARAMS, 0, 0, &shaderDlgProc,
// params
From, _T("frm"), TYPE_INT, P_ANIMATABLE, 0,
p_default, 0,
p_range, 0,15000,
p_ui, TYPE_INTLISTBOX, IDC_COMBO1, 0,
// p_accessor, &myAccessor,
end,
To, _T("t"), TYPE_INT, P_ANIMATABLE, 0,
p_default, 0,
p_range, 0,15000,
p_ui, TYPE_INTLISTBOX, IDC_COMBO2, 0,
// p_accessor, &myAccessor,
end,
Slot, _T("slt"), TYPE_INT, P_ANIMATABLE, 0,
p_default, 0,
p_range, 0,19,
p_ui, TYPE_INTLISTBOX, IDC_COMBO3, 0,
// p_accessor, &myAccessor,
end,
end
);

What i did wrong?

0 Likes
327 Views
3 Replies
Replies (3)
Message 2 of 4

PAMD76
Enthusiast
Enthusiast
Hi,

You can do this for question 2:

In your accessor (myAccessor) just over ride the ::GetLocalName( ReferenceMaker*, ParamID , int ) function...just return a string for the correct paramID that's sent down.

...hope that helps.
Director / Technology Programmer.
Red Wasp Design & Plastic Ant Software
0 Likes
Message 3 of 4

PAMD76
Enthusiast
Enthusiast
(Question 2)

This is why it's not working by the way...

static ParamBlockDesc2 _movebleobject_param_blk ( _movebleobject_params, _T("params"), 0, &_MovebleObjectDesc,
P_AUTO_CONSTRUCT + P_AUTO_UI, PBLOCK_REF,
//rollout
IDD_PANEL, IDS_PARAMS, 0, 0, &shaderDlgProc,
// params
From, _T("frm"), TYPE_INT, P_ANIMATABLE, IDS_MYNAME, <--------------- You need the resource string ID in here.
p_default, 0,
p_range, 0,15000,

...the first solution I gave will work if you need dynamic names.
Director / Technology Programmer.
Red Wasp Design & Plastic Ant Software
0 Likes
Message 4 of 4

Anonymous
Not applicable
(Question 2)

This is why it's not working by the way...

static ParamBlockDesc2 _movebleobject_param_blk ( _movebleobject_params, _T("params"), 0, &_MovebleObjectDesc,
P_AUTO_CONSTRUCT + P_AUTO_UI, PBLOCK_REF,
//rollout
IDD_PANEL, IDS_PARAMS, 0, 0, &shaderDlgProc,
// params
From, _T("frm"), TYPE_INT, P_ANIMATABLE, IDS_MYNAME, <--------------- You need the resource string ID in here.
p_default, 0,
p_range, 0,15000,

...the first solution I gave will work if you need dynamic names.

thx. it helps.

Any suggestions about my first question ?
0 Likes