Message 1 of 5
Interfaces and Parameters

Not applicable
07-07-2010
02:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have found and extraordinary bug working with interfaces and parameters.
I am currently writing a plugin that propagates information directly from the ui to parameters
like this:
However the spinner only seems to propagate values on button up.
Or rather the viewport does not update. Even if I add the completeredraw
function. But if I add a line in the rollout code like:
The callback seems to run on any value change and the viewport updates fine.
This seams a bit odd to me. If anyone have any answers to why this is I would be grateful.
If not this is the solution: Add an line in your ui that doesnt run anything, but picks up the values from the ui. This is most critical on spinners.
// K
I am currently writing a plugin that propagates information directly from the ui to parameters
like this:
rollout mapsRollout "Main"(
spinner TheValue_Spn
)
parameters maps rollout:mapsRollout (
TheValue type:#float ui:TheValue_Spn default:1.0f;
)
However the spinner only seems to propagate values on button up.
Or rather the viewport does not update. Even if I add the completeredraw
function. But if I add a line in the rollout code like:
rollout mapsRollout "Main"(
spinner TheValue_Spn
on TheValue_Sp changed value do ()
)
The callback seems to run on any value change and the viewport updates fine.
This seams a bit odd to me. If anyone have any answers to why this is I would be grateful.
If not this is the solution: Add an line in your ui that doesnt run anything, but picks up the values from the ui. This is most critical on spinners.
// K