Pins script commands - questions

Rhino 3D (Export script developed by SamPage; Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Post Reply
User avatar
formatio
Licensed Customer
Posts: 131
Joined: Sun May 18, 2014 11:00 am
Location: EU
Contact:

Hi Paul

I tried to play with pins and commands a little and have some questions.

1. Is it possible to change the value of parent pins i.e. [Resolution] or [Kernel] or [Environment] ?
2. Is there a way (at current state) to get a current value of specified pin (via rhino script or commands) to manipulate it further?
3. Could we get a list of pin names to use (since I couldn't find any way to retrieve it - lua, api, browser - too much for me :)
4. I'm asking about pin names list because I can't get to work pin names that consist of two parts i.e Hotpixel removal - [hotpixelremoval] throws message "Pin not found".
5. What values pins with disabled/enabled should have?
6. What value resolution pin should have - 512x512? or 512px512px? (if it is editable)

Regards,
Mac
User avatar
face_off
Octane Plugin Developer
Posts: 15717
Joined: Fri May 25, 2012 10:52 am
Location: Adelaide, Australia

1. Is it possible to change the value of parent pins i.e. [Resolution] or [Kernel] or [Environment] ?
Not sure what you mean by this. You cannot change the Kernel type - but you can change the float and int pins of the kernel.
2. Is there a way (at current state) to get a current value of specified pin (via rhino script or commands) to manipulate it further?
Good question. Can a RhinoScript command return a value? Looking at the Rhino API, it looks like a RhinoScript command is one way - so it does something and returns success or failure - I don't think it can return a value. I posted this question on the McNeel forum.
3. Could we get a list of pin names to use (since I couldn't find any way to retrieve it - lua, api, browser - too much for me :)
4. I'm asking about pin names list because I can't get to work pin names that consist of two parts i.e Hotpixel removal - [hotpixelremoval] throws message "Pin not found".
Open Octane Standalone, Script->Open LUA Browser->Items tab->select the NT_IMAGER_CAMERA->check the name of the Hotpixel Removal pin (ie. it is "hotpixel_removal").
5. What values pins with disabled/enabled should have?
Only Float and Int pins types are supported. I will add Bool pin types in the next release.
6. What value resolution pin should have - 512x512? or 512px512px? (if it is editable)
You cannot current use OctaneChangePinValue to set the resolution value. If you need this, I will add a new command in the next release to set the resolution.

Paul
Win7/Win10/Mavericks/Mint 17 - GTX550Ti/GT640M
Octane Plugin Support : Poser, ArchiCAD, Revit, Inventor, AutoCAD, Rhino, Modo, Nuke
Pls read before submitting a support question
Post Reply

Return to “Rhinoceros 3D”