Awesome..

Thanks so much!




On Thu, Aug 23, 2012 at 10:20 PM, Diogo Girondi <[email protected]>wrote:

> Python should also work
>
> [python os.path.split(nuke.thisNode().knob('file').value()).__getitem__(0)]
>
> [python os.path.split(nuke.thisNode().knob('file').value()).__getitem__(1)]
>
> [python os.path.join(os.path.split(s).__getitem__(0),
> os.path.split(s).__getitem__(1))]
>
>
> cheers,
>
> diogo
>
>
> On Thu, Aug 23, 2012 at 8:40 PM, chris <[email protected]> wrote:
>
>> hi toki,
>> something like this should work:
>>
>> [join [lrange [split [file dirname [value
>>  Read1.file]] "/"] 0 end-4] "/"]
>>
>> chris
>>
>>
>>
>>
>> On 8/23/12 at 1:21 AM, (Toki Wartooth) wrote:
>>
>>  Hi..
>>>
>>> I'm trying to split the path at a certain point, meaning that I'd like to
>>> take the path of a read node and chop it off a some point.
>>>
>>> So, if I have Read1 =
>>> //server/share/show/sequence/**shotname/images/2d/comps/v001/
>>> filesequence.####.dpx
>>>
>>>
>>> I'd like to chop it down to //server/share/show/sequence/**shotname
>>>
>>> I started with something like [file dirname [value Read1.file]] which
>>> gets
>>> me to //server/share/show/sequence/**shotname/images/2d/comps/v001
>>>
>>> and I thought perhaps lindex, or split might be in order, but I'm not
>>> getting what I want.  Any thoughts?
>>>
>>>
>> ______________________________**_________________
>> Nuke-users mailing list
>> [email protected].**co.uk<[email protected]>,
>> http://forums.thefoundry.co.**uk/ <http://forums.thefoundry.co.uk/>
>> http://support.thefoundry.co.**uk/cgi-bin/mailman/listinfo/**nuke-users<http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users>
>>
>
>
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to