Editable Splines to make Roto GMask from JSON file

The attached video shows the overall aim: ML vector Roto

IN the folder there is a script that gets the JSON data into Nuke using Python.

But I have been unable to make a GMask using anything in Nuke.

If you could give me some pointers that would be awesome.

ChatGPT just gave up

Why Python can’t do it either (now fully explained)

Python in Flame is a sandboxed automation layer:

  • Node graph :check_mark:

  • Attributes :check_mark:

  • Batch wiring :check_mark:

  • File I/O :check_mark:

But geometry lives entirely outside that sandbox.

The reason your introspection showed only flame.PyNode is because:

  • Python sees the node shell

  • Geometry is owned by a private C++ object

  • No bridge exists

This is by design, not an oversight.

4 Likes

Uh?

1 Like

I’m guessing he mistakenly pasted the conversation he had with chatGPT about Nuke.

Here’s @samhodge_aiml ‘s message on Discord

This is what the LLM served up but it was tripping hard, it ended up confessing that it was licked: Why Python can’t do it either (now fully explained)

Python in Flame is a sandboxed automation layer:

Node graph :check_mark:

Attributes :check_mark:

Batch wiring :check_mark:

File I/O :check_mark:

But geometry lives entirely outside that sandbox.

The reason your introspection showed only flame.PyNode is because:

Python sees the node shell

Geometry is owned by a private C++ object

No bridge exists

This is by design, not an oversight.

Sorry brain partially disengaged. I was juggling a few thoughts while running out the door to a health appointment.

I have been unable to replicate the results that I have made in Nuke using the following script:

https://drive.google.com/file/d/1TU1RlEd_9Yi-9l3ebT1zpupvRxkO6akX/view?usp=drive_link that works well in Nuke

With this data file

Which is based on a few frames of this Pexels clip

https://www.pexels.com/video/a-man-on-a-skateboard-is-riding-under-a-bridge-4612888/

So basically I am asking what would it need to import this data into Flame as a GMask?

not sure if it helps , but here is a “raw dump” of a gmask tracer node (no keyframes) :

gmastracer.raw.zip (1.1 KB)

calling @fredwarren

1 Like

I should get back to this because I got it into Silhouette which supports GMask Export feel free to open up the following Silhouette files

SFX zipped

SFX zipped

Videos

1 Like

This linked post show it end to end

1 Like

@samhodge_aiml - non-trivial
thanks for sharing
great work as always

1 Like

(post deleted by author)

Hey I managed to get the data into Flame

It seems that people would be interested in seeing this as people have been helping me out with solutions to get animated GMask Data into Flame

I did have a query abotu how to make shape interpolated data motion blur.

I was searching around for the button to press but nothing stood out.

@samhodge_aiml did the grunt work and completed the port it seems. Here’s the link for his work. Hope it doesn’t get flagged and I don’t get banned.

1 Like