Skip to content

Can i execute SD Graph in runtime mode? #6

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; }
        });
   }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions