Re: Force render when changing hidden slider bug?
Re: Force render when changing hidden slider bug?
- Subject: Re: Force render when changing hidden slider bug?
- From: Peter T <email@hidden>
- Date: Tue, 1 Feb 2011 14:12:20 +0000
I was really hoping one of the collapsed group or hidden parameters behaviours would work, so a custom UI could drive native controls underneath?
Actually, I saw a work-around - change the custom UI's parameter value, in my case a simple NSNumber value toggling between YES and NO, to cause the renderOutput: method to be called for me.
This works, but since I've added code like the following in my custom NSView subclass (mouseDown: event, say):
[customApiAction startAction:self];
NSNumber *dummy = nil;
[apiParameterRetrieval getCustomParameterValue:&dummy fromParm:PARAMETER_ID];
BOOL toggle = ![dummy boolValue];
[apiParameterSetting setCustomParameterValue:[NSNumber numberWithBool:toggle] toParm:PARAMETER_ID];
[customApiAction endAction:self];
the rendering updates, shown in the Canvas window, are much slower? Native parameters don't suffer from this, and receive all, or nearly all render update changes (when visible in UI of course) regardless how fast or slow you move a float slider parameter say?
Any tips grateful.
Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden