I was searching with latest docs and I didnt see its there in 6.3 also but I
am not sure . And thanks for this hack Nathan its working perfect .

Thanks

kurian

On Wed, Jul 27, 2011 at 1:20 AM, Nathan Rusch <[email protected]>wrote:

>   The last time I had to deal with this, there were no knob methods for
> querying whether views had been split off. I’m not sure if this is still the
> case in 6.3, but I’ve been using something like this to work around the
> issue:
>
>  import re
> # Assumes the knob in question is assigned to 'knob'
> fullViewsString = r'default\s\{|' + '|'.join([r'%s\s\{' % v for v in
> nuke.views()])
> viewsRE = re.compile('(%s)' % fullViewsString)
> knobViews = [match.rstrip(' {') for match in
> viewsRE.findall(knob.toScript())]
>
> This will give you back a list of all the different views the knob contains
> values or curves for. If you remove the search pattern for the 'default'
> view, you’ll get all the views that have been split off. Note that this will
> only work if at least one view has actually been split; if none have, you’ll
> get an empty list.
>
> -Nathan
>
>
>  *From:* Kurian O.S <[email protected]>
> *Sent:* Tuesday, July 26, 2011 1:13 AM
> *To:* Nuke Python discussion <[email protected]>
> *Subject:* [Nuke-python] Split View Question
>
> Hi all,
>
> Is there any way that we can check a knob is splited or not ?
>
> eg :
>
> import nuke
> n = nuke.createNode("Transform")
> a = n["translate"].splitView("left")
>
> and after that I want to check something like  n["translate"].isSplited ?
> any command exists ?
>
> --
> --:: Kurian ::--
>
>  ------------------------------
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>


-- 
--:: Kurian ::--
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to