Octane 4 vs 3 NT_GEO_GROUP pin info

Forums: Octane 4 vs 3 NT_GEO_GROUP pin info
Forum for OctaneRender Lua scripting examples, discussion and support.

Octane 4 vs 3 NT_GEO_GROUP pin info

Postby Simon_SI » Thu Apr 25, 2019 4:54 pm

Simon_SI Thu Apr 25, 2019 4:54 pm
I'm trying to query pin names/labels for the NT_GEO_GROUP and have found that this used to work in Octane 3.06.4 but now no longer works in Octane 4.04. Has this API changed? I've checked in the documentation and there are no differences that I can see. For example with the following script:

Code: Select all
local geogroup = getNodeTypeByName("MyGeoGroup", octane.NT_GEO_GROUP)
if (geogroup ~= nil) then
  print(geogroup:getPinCount())
  for jj=1,geogroup:getPinCount() do
    local lp = geogroup:getPinInfoIx(jj)
    print("description " .. lp.description .. " type " .. lp.type .. " label " .. lp.label .. " name " .. lp.name)
  end
end


Octane 3.06.3 Output:
1
description Geometry Input type 12 label Input 1 name Input 1

Octane 4.04 Output:
1
description Geometry Input type 12 label name unknown

I can see in the Node inspector UI that for both versions the pin details have the name as "Input 1", so am confused why I cannot query this string in the newer version of Octane?
Simon_SI
 
Posts: 2
Joined: Thu Apr 25, 2019 4:43 pm

Re: Octane 4 vs 3 NT_GEO_GROUP pin info

Postby Simon_SI » Fri Apr 26, 2019 9:48 am

Simon_SI Fri Apr 26, 2019 9:48 am
As a follow-up, this change in behaviour appears to be between Octane 4.02.1 and 4.03. I see in the release notes, Fixed octane.node.getPinInfoIx().name which was returning the label instead of the pin name., which is presumably the change, however, I no longer appear to get either the name or the label now.
Simon_SI
 
Posts: 2
Joined: Thu Apr 25, 2019 4:43 pm

Re: Octane 4 vs 3 NT_GEO_GROUP pin info

Postby lance_uppercut » Sat Mar 21, 2020 11:40 pm

lance_uppercut Sat Mar 21, 2020 11:40 pm
Yes, I'm seeing the same issue in Octane 4.04.
And I don't see any other way of accessing the names of material input pins!

I've sent a bug report email, hope this gets solved soonish...
lance_uppercut
Licensed Customer
Licensed Customer
 
Posts: 11
Joined: Fri Jan 23, 2015 12:51 am
Location: Toronto, Canada

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 5 guests

Thu Mar 28, 2024 10:27 pm [ UTC ]