Skip to content

Can i execute SD Graph in runtime mode? #6

@ShockWave2048

Description

@ShockWave2048

Hi FernRP!
Can i execute SD Graph in runtime mode?
I tried this code, no errors, no reaction from the a1111 terminal.
Thanks for answer!

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FernNPRCore;
using FernNPRCore.SDNodeGraph;
using UnityEngine.SceneManagement;

public class SDGTest : MonoBehaviour
{
    public StableDiffusionGraph sd;

    void Start()
    {
        sd.LinkToScene(SceneManager.GetActiveScene());

	SDStartNode ss;
	sd.nodes.ForEach((n) => 
        { 
            if (n != null && n is SDStartNode) 
            { 
                ss = n as SDStartNode;
				ss.OnExecute();
	    } else { return; }
        });
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions