Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.

Does there anyone know how we generate node types we want? #79

Open
sduerpang opened this issue Jan 30, 2020 · 3 comments
Open

Does there anyone know how we generate node types we want? #79

sduerpang opened this issue Jan 30, 2020 · 3 comments

Comments

@sduerpang
Copy link

For example, here is some code from bsSpaz.py
if self.shield is None: self.shield = bs.newNode('shield', owner=self.node, attrs={'color':(0.3, 0.2, 2.0), 'radius':1.3})
it generate a shield type Node and assign its color and radius attributes , my question is how do we know 'shield' is one of the newNode's type, is there a reference list ? Also , I want to set a light to spaz, current solution is to generate a 'light' type node which is introduced in the api document ,and update its position to match the target spaz, is there any convient way to do this ?
Thanks for any help😀

@sduerpang
Copy link
Author

also , how do we get node's attribute's key ?

@SmooothSoundz
Copy link

SmooothSoundz commented Jan 30, 2020 via email

@TheMikirog
Copy link
Contributor

Thing is, there's no official reference list. All of the knowledge we know are from just analyzing the code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants