Skip to content

Question about plugins #903

Answered by luboslenco
MrAdrianPl asked this question in Q&A
Discussion options

You must be logged in to vote

For vector:

// ...

{
	id: 0,
	node_id: 0,
	name: "Vector",
	type: "VECTOR",
	color: 0xff6363c7,
	default_value: new Float32Array([0.0, 0.0, 0.0])
}

// ...

let vec = arm.MaterialParser.parse_vector_input(node.inputs[0]);
if (vec != 'vec3(0, 0, 0)') {
	// Link is connected to this socket
}

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MrAdrianPl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #901 on May 04, 2021 13:49.