Hey Henrik,

how's it going?

RE: where to pose Hiero/Studio questions:

Your best bet to get answers are the Nuke-python forums, rather than the
mailing lists, for no other reason than they're much better tracked by the
rest of the team :) - for the record I prefer the mailing lists too ;)

As for which the mailing list to use, I would personally use the
Nuke-Python list for all Comp, Studio, Hiero, Player, etc. python questions
as the APIs are moving closer and closer together.


RE: Make offline:

Out of interest, we're interested to know what your specific use-case is? I
suspect that you're using the APIs for a workflow we hadn't thought of.

This won't answer your question fully but the empty-string is being
translated to a valid path '/' whereas it maybe should be None or similar -
so you can do something like this to mark it as ofline:

newms = hiero.core.MediaSource.createOfflineVideoMediaSource("*/tmp/noexist*",
clip.sourceIn(), clip.duration(), clip.framerate(), clip.timecodeStart())

print newms


But what I think you really want is to change the clip such that it's not
referencing any footage at all. I'm not sure how to do that myself right
now (and I'd like to be able to for a tool I'm working on too :) but those
that do know the answer should see this and one of us should be able to get
back to you.


hope that helps

F.

On 9 July 2015 at 05:32, Henrik Cednert <n...@irry.com> wrote:

> Hehehe. Sorry, I meant to what list you post those q’s. hiero-python or
> nuke-python…?
>
> --
> Henrik Cednert
> cto | td | compositor
>
> Filmlance International
> www.filmlance.se
>
> On 9 jul 2015, at 00:42, Deke Kincaid <d...@thefoundry.co.uk> wrote:
>
> Timeline scripts for Nuke Studio go in your .nuke/Python/Startup &
> StartupUI.  If you are using the new Hiero beta then it should also read
> from there.  Hiero 1.9 reads from .hiero/Python/Startup
>
> --
> Deke Kincaid
> Media & Entertainment OEM Development Manager
> The Foundry
> Skype: dekekincaid
> Tel: (310) 399 4555 - Mobile: (310) 883 4313
> Web: www.thefoundry.co.uk
> Email: d...@thefoundry.co.uk
>
> On Wed, Jul 8, 2015 at 3:03 PM, Henrik Cednert <n...@irry.com> wrote:
>
>> Hello
>>
>> First… Seriously… Where does NUkeStudio pyton Q’s go…? Valid for both
>> HIero and nS… Hmm...
>>
>> Not sure where I got it from but I have used a py for hiero and nS called
>> make_offline.py. It uses this to set a clip to offline,
>> hiero.core.MediaSource.createOfflineVideoMediaSource("", clip.sourceIn(),
>> clip.duration(), clip.framerate(), clip.timecodeStart())
>>
>> The problem with that is that it also changes Clip and reelID to "/" in
>> spreadsheet. I'm looking for a solution to only set the path of a clip so
>> that it's offline so that it more or less looks like when you have imported
>> an EDL or XML. When I loose reel and clip I can't re-conform in a good way.
>>
>> Was looking at this and how it could be solved. We can read
>> foundry.source.reelID and store that before we use the above string. But do
>> we have access so that we can set it back when a clip is offline? Same with
>> clip name that I need to keep. I basically want to return a conformed clip
>> to its un-conformed state.
>>
>> Was looking at the FnCyclone stuffs since that seems to be used when
>> dealing with EDL's but that doesn't help much if import is XML...
>>
>> Any one with a brain in good condition that have any thoughts?
>>
>> Cheers
>>
>>
>>
>> --
>> Henrik Cednert
>> cto | td | compositor
>>
>> Filmlance International
>> www.filmlance.se
>>
>>
>> _______________________________________________
>> Nuke-python mailing list
>> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>
>>
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
>
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>


-- 
Frank Harrison
Senior Nuke Software Engineer
The Foundry
Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906
Web: www.thefoundry.co.uk
Email: frank.harri...@thefoundry.co.uk
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to