c4d2A OSL node UI issue.

c4d2A OSL node UI issue.

w.card
Explorer Explorer
602 Views
3 Replies
Message 1 of 4

c4d2A OSL node UI issue.

w.card
Explorer
Explorer

There seems to be a bug in OSL node parameters ui
I've compiled the latest version of the UberNoise OSL shader in the OSL node in Arnold C4DtoA
I'm using C4DtoA 4.6.7.1 (Arnold 7.2.5.1) in Cinema 4D 2024 (latest version)
The Type field in the shader parameters used to be a numeric entry but is now a dropdown list with only one entry in it (0). I am not able to change the shader type with the dropdown.
The same osl code compiles ok in Redshift, and the dropdown is populated with noise shader names.

I'd welcome any ideas on how to fix this

Many thanks,

William

0 Likes
Accepted solutions (1)
603 Views
3 Replies
Replies (3)
Message 2 of 4

peter_horvath
Autodesk
Autodesk
Accepted solution

It seems to be a bug with the negative value in the options.

	int    Type   = 0
		[[ string widget= "mapper", 
		   string help  = "Pick noise type from the list",
		   int connectable = 0,
		   string options="Simplex:-1|Perlin:0|Fractal:1|Cell:2|Worley Classic (Voronoi):3|Worley Manhattan:4|Worley Chebychev:5|Worley Minkowski 0.5:6|Worley Minkowski 4:7" ]], 

If you remove "Simplex:-1", the combo box is populated fine with the rest of the values. Of course then you can not select the Simplex mode, so if you need that, you can remove the "mapper" widget definition as a workaround, so that the parameter is displayed as a standard integer field, where you can type in -1.


// Peter Horvath
// C4DtoA developer
Message 3 of 4

w.card
Explorer
Explorer

Thanks so much for looking in to this. Your workaround works fine for me as I don't need the simplex option.

I'm not able to submit a bug report as an edu user. 

0 Likes
Message 4 of 4

peter_horvath
Autodesk
Autodesk

> I'm not able to submit a bug report as an edu user. 

No worries, I've already made a ticket for this. Thanks.


// Peter Horvath
// C4DtoA developer